File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes consuming Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "consuming "secured" web service" Watch "consuming "secured" web service" New topic
Author

consuming "secured" web service

ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
Hi,

While consuming a web service, I get following error:



It seems that this service requires authentication to be done.

Any clue/guidence will surely help me.

[ UD: added line break ]
[ August 28, 2008: Message edited by: Ulf Dittmer ]
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42367
    
  64
I'd start with finding out the details of how to access that service. Surely there must be some documentation, or someone you can contact?


Ping & DNS - my free Android networking tools app
ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
Originally posted by Ulf Dittmer:
I'd start with finding out the details of how to access that service. Surely there must be some documentation, or someone you can contact?


We are given just the WSDL file as we do have developed Service Controls (Service Control - a control which is used to access a web service - it's in weblogic) for some of the web services - and this requires WSDL file only.
ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
I don't know why but now I am getting a different exception related to security only:


Use getCause() to see the root cause.[java.rmi.RemoteException: SOAPFaultException - FaultCode [{http://schemas.xmlsoap.org/soap/envelope/}Client.Authentication] FaultString [Failed to receive message weblogic.wsee.util.AccessException: The server at https://mydomain:8000/MyService returned a 401 error code (Unauthorized). Please check that username and password are set correctly and that you have permission to access the requested method.

[ August 27, 2008: Message edited by: ankur rathi ]
ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
I figured out how to send username and password while invoking or accessing or consuming web service in Service Control.



 
Don't get me started about those stupid light bulbs.
 
subject: consuming "secured" web service