cancel
Showing results for 
Search instead for 
Did you mean: 

Invalid Response Code: (401) Unauthorized sending the SOAP request to XI

Former Member
0 Kudos

Hi all,

I am getting following error when i try to send the SOAP request to XI.

Can any one please tell me what could be the problem.

Kind Regards,

Kiran

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Kiran

error code 401stands for Unauthorized

This code is used when access to a resource is protected and the client did not provide valid authentication credentials. Often the 401 response includes information that causes the user agent to prompt the user for a username and password.

for more details on error code follow the link

http://www.web-cache.com/Writings/http-status-codes.html

Check whether you have given the right credentials. If you are very sure that you have given right credentials then your problem will be solved by restarting J2EE engine

steps to restart J2EE engine

1) run transaction SMICM

2) then in the tab administration => J2EE instance(local) =>send soft shutdown with restart

by this java engine will restart and will be up in 5-10 minutes and your problem will be solved

Thanks

sandeep sharma

PS ; if helpful kindly reward points

Message was edited by:

sandeep sharma

Answers (5)

Answers (5)

Former Member
0 Kudos

are you using any tool to send SOAP message?

Also there can be a possiblity that username and password you are giving is not correct.

Thanks

Farooq

nikhil_bose
Active Contributor
0 Kudos

hi kiran,

Error: HTTP_RESP_STATUS_CODE_NOT_OK 401 Unauthorized

Description: The request requires user authentication

<u>Possible Tips:</u>

• Check XIAPPLUSER is having this Role -SAP_XI_APPL_SERV_USER

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

• If the error is in Adapter Engine

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

• May be wrong password for user XIISUSER

• May be wrong password for user XIAFUSER

– 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

thanks and regards,

nikhil bos

<i>**reward if helpful

GabrielSagaya
Active Contributor
0 Kudos

please visit

Former Member
0 Kudos

hi kiran,

ResponseCode: 401 (Unauthorized)

as per this specific error try checking that

1.check the wsdl url format

http://<server>:<port>/XISOAPADAPTER/MESSAGESERVLET?channel=:<Service>:<Channel>;

2. test the wsdl by putting the url in internet explorer and see if you are getting a dialog box for user name and password, also in this step you will confirm the working status of message servlets of web service.

3. by step 2 IE will send a message to XI, now you check your adapter

4. test ur xml instance in your soap tester, go to its properties and make sure that you had given correct user name and password over there on specified fields.

Regards,

Mandeep Virk

*reward if helpful*

aashish_sinha
Active Contributor
0 Kudos

Hi,

Check out the user permission and role.

I think this link help you the most

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

Check these links :

http://www.w3.org/2000/xp/Group/1/10/11/soap12-part2.xml

http://help.sap.com/saphelp_nw04/helpdata/en/bf/27fd3b651f6a1ce10000000a11402f/content.htm

Try soap client https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9b16d790-0201-0010-4e9b-baa...

Regards

Aashish Sinha

PS : reward points if helpful