Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Error in consuming Webservice

Former Member
0 Likes
1,169

Hi experts,

While consuming Webservice in SAP am getting the following error

SOAP:1.007 SRT: Unsupported xstream found:
("HTTP Code 401 : Unauthorized")

can any one help me in sorting out this problem.

thanks in advance.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,125

i observed the reason for this error as not providing

authentication details i.e. user id and pwd.

once executed Web Service Consumer in SE80 and after authentication

it gives Response then when execute immediately second time without gong back

completely and not provided Authentication details this error is coming.

if i execute again from SE80 this error is not coming...

thanks

vasu

i observed the reason for this error as not providing

authentication details i.e. user id and pwd.

once executed Web Service Consumer in SE80 and after authentication

it gives Response then when execute immediately second time without gong back

completely and not provided Authentication details this error is coming.

if i execute again from SE80 this error is not coming...

thanks

vasu

6 REPLIES 6
Read only

Former Member
0 Likes
1,125

Hi Vasudev,

is it SOAP to RFC Scenario using SAP PI ?

Check this Note : 1791457 - Http/SOAP error while calling a Web Service

Regard's

Smruti

Read only

0 Likes
1,125

Hi Mohanty,

Thanks for ur reply.

i'm not using PI, i have created one RFC n for that i created Web Service.

now i'm trying to cosuming it in SAP only thro se80 i tried to check its consumption.

at first its executing but second time its giving the error.

can u give me clarity on which way i may solve it.

Read only

0 Likes
1,125

Hi Vasudev,

If you are using RFC and get "unauthorized" via HTTP, it's just a matter of checking the user+authorization of this RFC-connection and HTTP while consuming web-service.

Check the needed authorization for consuming this web-service and password-validity of this user.

I hope this will help you.

Regards,

Andre

Read only

Former Member
0 Likes
1,125

Hi Vasudev,

Kindly check your settings in SOA_MANAGER.

When i got this error my BASIS colleague did some changes in Logical port settings and then it worked.

Regards,

Vasanth

Read only

Former Member
0 Likes
1,125

This looks like an issue with the SAP User ID and password which is being used while consuming the Webservice. The SAP Security team can get the password reset if required.

Please make sure that the user ID is specific for this Webservice.

Thanks,

Krishna Teja Peddada

Read only

Former Member
0 Likes
1,126

i observed the reason for this error as not providing

authentication details i.e. user id and pwd.

once executed Web Service Consumer in SE80 and after authentication

it gives Response then when execute immediately second time without gong back

completely and not provided Authentication details this error is coming.

if i execute again from SE80 this error is not coming...

thanks

vasu