Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

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

Avatar

Avatar
Level 1
rajenderk621606
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
rajenderk621606
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
View profile
rajenderk621606
Level 1

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

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,406 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,406 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

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. 

Avatar

Avatar
Ignite 5
Employee
workflowuser
Employee

Likes

133 likes

Total Posts

443 posts

Correct Reply

70 solutions
Top badges earned
Ignite 5
Ignite 3
Ignite 1
Give Back 50
Give Back 5
View profile

Avatar
Ignite 5
Employee
workflowuser
Employee

Likes

133 likes

Total Posts

443 posts

Correct Reply

70 solutions
Top badges earned
Ignite 5
Ignite 3
Ignite 1
Give Back 50
Give Back 5
View profile
workflowuser
Employee

08-11-2016

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

Avatar

Avatar
Level 1
rajenderk621606
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
rajenderk621606
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
View profile
rajenderk621606
Level 1

09-11-2016

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

Avatar

Avatar
Level 1
rajenderk621606
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
rajenderk621606
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
View profile
rajenderk621606
Level 1

09-11-2016

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

Avatar

Avatar
Ignite 1
Level 7
GirishBedekar
Level 7

Likes

162 likes

Total Posts

232 posts

Correct Reply

36 solutions
Top badges earned
Ignite 1
Give Back 5
Give Back 3
Give Back 10
Give Back
View profile

Avatar
Ignite 1
Level 7
GirishBedekar
Level 7

Likes

162 likes

Total Posts

232 posts

Correct Reply

36 solutions
Top badges earned
Ignite 1
Give Back 5
Give Back 3
Give Back 10
Give Back
View profile
GirishBedekar
Level 7

14-11-2016