Highlighted

Getting authorization error when calling a secured webservice from AEM Workbench.

Avatar

Avatar

rajenderk621606

Avatar

rajenderk621606

rajenderk621606

08-11-2016

I am  trying to call a secured Webservice from AEM Workbench. While loading the Webservice we are providing the WSDL url and user name and password in the specified fields. While loading the webservice we are getting 401 unauthorized error.

Error message :  Error in loading WSDL:java.io.IOException. Server returned HTTP response code: 401 for URL.

The UnSecured webservices are working with workbench. I was able to call the unsecured webservices. only secured webservice is giving the error while loading the webservice.

Please help me on this one.

Replies

Highlighted

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K
smacdonald2008

08-11-2016

Try using Apache CFX to create Java proxy classes to invoke the 3rd party WebService, IN your Java code - put the authentication information that is required to successfully invoke the WS. Once you have the logic - then use the Java to create a custom service and then use that custom service in a step in workbench. Building a cusom service that you use in workbench is the best way here. 

Highlighted

Avatar

Avatar

workflowuser

Employee

Avatar

workflowuser

Employee

workflowuser
Employee

08-11-2016

I have used SAAJ in the past to solve these kind of issues. It is fairly straight forward 

Highlighted

Avatar

Avatar

rajenderk621606

Avatar

rajenderk621606

rajenderk621606

09-11-2016

Thanks for your reply. do you have any links or example to create the java service?

Highlighted

Avatar

Avatar

rajenderk621606

Avatar

rajenderk621606

rajenderk621606

09-11-2016

Thanks for your replay. What is SAAJ? and do you have any example or link to follow?

Highlighted