Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

problem calling webservice in weblogic but tomcat works fine  RSS feed

 
partheeban.gru thirumal
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone,

I am facing problem in calling webservice in my project which is deployed in weblogic. but the same application works fine in tomcat deployment.

Error:
javax.xml.ws.WebServiceException: Failed to access the WSDL at: http://xxx.xxx.xxx.xx:8111/XXXX/services?wsdl. It failed with:
Response: '401: Unauthorized' for url: 'http://xxx.xxx.xxx.xx:8111/xxx/services?wsdl'.

But same works fine in tomcat deployment...

i search in the net. people said, we need to force weblogic to use sun http handler, so written something like below. but its not works for me.

sun.net.www.protocol.http.Handler handler = new sun.net.www.protocol.http.Handler();
URL wsdlURL = new URL(null, "http://xxx.xxx.xxx.xx:8111/xxx/services?wsdl", handler);

please help me to solve this issue. i am in urgent...
 
Abhay Agarwal
Ranch Hand
Posts: 1376
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to Javaranch !!
Few questions
a. Please place web service client code here and full exception stacktrace
b. how is the web service is deployed in weblogic ? as Servlet ? as EJB component ?
c. please clarify where are your web service client code and web service implementation is deployed? in weblogic ? in tomcat ? are you trying to call web service (deployed in weblogic)
d. please clarify what steps you have done on Tomcat for successful deployment and working

Seem like you are using very basic Service classes to call Web service

thanks
abhay
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!