cancel
Showing results for 
Search instead for 
Did you mean: 

The request faild with HTTP status 401: Unauthorized

Former Member
0 Kudos

Hi Experts,

I have Proxy to SOAP sceario. I gave the WSDL url to third party.

http://serverpi.xxxx.xxxxx.com:50000/dir/wsdl?p=1_37b54521ff173dee865c82295b95bacc_portTypeBindingSe...

They are developing .net application and using above webservice in the application. They successfully registered the WSDL url and able to read the methods. The problem here, while invoking the method of PI webservice the following error displayed.

"The request faild with HTTP status 401: Unauthorized."

Please help me.

Thanks - Sridhar

Accepted Solutions (0)

Answers (4)

Answers (4)

rodrigoalejandro_pertierr
Active Contributor
0 Kudos

hi,

one point to consider. if your scenario is proxy2SOAP why did you gie the wsdl to the third party??? in this kind of scenario you consume the third party WSDL importing it as external definition.

or you was wrong when typing the thread or your conceps are upside down

whatever the error relate to user credential error, so to solve it you have to mantaince the PI USER you gave to third party.

use XML Spy or SOAP UI to test your scenario and make sure the user is right.

other possibility is edit your WSDL ussing notepad for example and locate the tag ADDRESS LOCATION and the bottom of it:

<soap:address location="http://<server:port>/XISOAPAdapter/MessageServlet?channel=:<Businnes System>:System_sends_SOAP_request&amp;version=3.0&amp;Sender.Service=<Businnes System>&amp;Interface=<namespace>

copy the location and paste in your browser, it will requiere to you to authenticate and should get a message like

Message Servlet is in Status OK

Status information:

...

....

...

Thanks

Rodrigo

Former Member
0 Kudos

Create a Service user login on PI system, then put login credentials in endpoint url when client calling.

http://<server:port>/XISOAPAdapter/MessageServlet?channel=:<Businnes System>:System_sends_SOAP_request&version=3.0&Sender.Service=<Businnes System>&Interface=<namespace>&sap-user=<USER>&sap-password=<PASS>

baskar_gopalakrishnan2
Active Contributor
0 Kudos

HTTP 401 unauthorized error is due to invalid login credentials. You have to create valid service user for PI and provide it to your client.

0 Kudos

Hi there,

In order to solve this, ensure you have maintained the correct password, which MUST be the same, for all the service users

on XI. You may check all the places it should be maintained, such as Exchange Profile, SU01, SLDAPICUST, etc..

Kindly check the note below:

#936093 - XI 7.0: Changing the passwords of XI service users

Also ensure that the user has the correct role as per link below:

http://help.sap.com/saphelp_nwpi71/helpdata/en/9f/d12940cbf2195de10000000a1550b0/frameset.htm

And set the value of xiadapter.inbound.timeout.default = 600000

You may refer to note #791379 for that.

Best regards,

Caio Cagnani

Former Member
0 Kudos

Description: The request requires user authentication

Possible Tips:

u2022 Check XIAPPLUSER is having this Role -SAP_XI_APPL_SERV_USER

u2022 If the error is in XI Adapter, then your port entry should J2EE port 5<System no>

u2022 If the error is in Adapter Engine

u2013then have a look into SAP note- 821026, Delete the Adapter Engine cache in transaction SXI_CACHE Goto --> Cache.

u2022 May be wrong password for user XIISUSER

u2022 May be wrong password for user XIAFUSER

u2013 for this Check the Exchange Profile and transaction SU01, try to reset the password -Restart the J2EE Engine to activate changes in the Exchange Profile After doing this, you can restart the message

/people/krishna.moorthyp/blog/2006/07/23/http-errors-in-xi

thanks,

Bhupesh

Former Member
0 Kudos

Thank you for your reply.

Here I'm using separate user id and having Role -SAP_XI_APPL_SERV_USER . The WSDL url tested successfully from WS Navigator. Please help me.

Thanks - Sridhar