cancel
Showing results for 
Search instead for 
Did you mean: 

SOAP Asynch Message Giving HTTP 401 Unauthorized error

Former Member
0 Kudos

Hi experts,

<Br>

We are sending ORDERS IDOC Asynchronously from ECC To XI and XI is sending it to Vendor using SOAP.

This interface was working OK and now we had HTTP 401 error. Checked URL,Username and password to the Vendor. It looks OK. It is working OK if I try it in browser.

</br>

<Br>

I tried to refresh the object by changing values and reactivating,did cache refresh..Still didn't work.When I try to check for the problem found J2EE_GUEST user was locked.Same was unlocked and tried again.

</BR>

<BR>

This IDOC is requesting for acknowledgement( trying to suppress ack by running IDX_NOALE).

But now I need to reprocess these failed messages.I was trying in different ways and it is not going thru.

Any pointers are really appreciated.

</BR>

Adapter Engine Log is as follows:

<BR>

2009-10-27 16:37:30 Success The message was successfully retrieved from the receive queue.

<BR>

2009-10-27 16:37:30 Success The message status set to DLNG.

<BR>

2009-10-27 16:37:30 Success Delivering to channel: CC_ORDERS05_TO_XYZ_SOAP

<BR>

2009-10-27 16:37:30 Success MP: Entering module processor

<BR>

2009-10-27 16:37:30 Success MP: Processing local module localejbs/sap.com/com.sap.aii.af.soapadapter/XISOAPAdapterBean

<BR>2009-10-27 16:37:30 Success SOAP: request message entering the adapter with user J2EE_GUEST

<BR>2009-10-27 16:37:30 Error Exception caught by adapter framework: SOAP: response message contains an error <BR>XIAdapter/HTTP/ADAPTER.HTTP_EXCEPTION - HTTP 401 Unauthorized

<BR>2009-10-27 16:37:30 Success SOAP: completed the processing

<BR>2009-10-27 16:37:30 Error SOAP: response message contains an error XIAdapter/HTTP/ADAPTER.HTTP_EXCEPTION - <BR>HTTP 401 Unauthorized

<BR>2009-10-27 16:37:30 Success SOAP: sending a delivery error ack ...

<BR>2009-10-27 16:37:30 Success SOAP: sent a delivery error ack

<BR>2009-10-27 16:37:30 Success Acknowledgement creation triggered for type: SystemErrorAck

<BR>2009-10-27 16:37:30 Success Acknowledgement creation triggered for type: AckNotSupported

<BR>2009-10-27 16:37:30 Error MP: Exception caught with cause com.sap.aii.af.ra.ms.api.RecoverableException: SOAP: <BR>response message contains an error XIAdapter/HTTP/ADAPTER.HTTP_EXCEPTION - HTTP 401 Unauthorized

<BR>2009-10-27 16:37:30 Success Acknowledgement sent successfully for type: SystemErrorAck

<BR>2009-10-27 16:37:30 Success Acknowledgement sent successfully for type: AckNotSupported

<BR>2009-10-27 16:37:30 Error Delivery of the message to the application using connection SOAP_http://sap.com/xi/XI/System <BR>failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: SOAP: response message contains an error <BR>XIAdapter/HTTP/ADAPTER.HTTP_EXCEPTION - HTTP 401 Unauthorized.

<BR>2009-10-27 16:37:30 Error The message status set to NDLV.

<BR>

<BR>Regards,

<BR>Ramesh

Edited by: RameshK99 on Oct 28, 2009 1:57 AM

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Problem resolved after the above.

former_member187339
Active Contributor
0 Kudos

Hi Ramesh,

If your 401 problem is solved and you want to reprocess failed messages than you can resend it through Runtime Workbench

MessageMonitoring->Adapter Engine-> Find your failed messages and resend

Regards

Suraj

Former Member
0 Kudos

Thanks for all of you..

<B>

I am talking to Vendor. They are using IIS Server to host their WebService.When I was resending they see 401 with sub status codes 2 and 5.

<B>

These sub statuses codes for HTTP 401 means

<B >2 Access is denied due to server configuration favoring an alternate authentication method

<B> 5 Authorization failed by an ISAPI/CGI application.

<B> Vendor is trying to see if they need to make modification in server configuration.

<B> If you have any ideas how to fix these in IIS server please post there.

Former Member
0 Kudos

The problem is in IIS server Configuration. Vendor changed their logging process so that user login needs domain name inforont of it. like domain\username.

made this change and Vendor made some changes at their side (not sure what change). It is working now.

Thanks to all of you for your helpful answers.

Former Member
0 Kudos

Hi Ramesh,

Have a look at dis note 821026

Regds,

Pinangshuk.

Former Member
0 Kudos

So, your issue is resending failed messages, or HTTP 401 Unauthorized ?

Former Member
0 Kudos

Can you run a sniffer tool & see the actual reason for 401 unauthorized error? 6172 weblog: Troubleshooting SOAP, HTTP and Mail Adapter Scenarios with TCPGateway by Stefan Grube...

Generally, 401 unauthorized is when the target system rejects the request... Also, What type of authentication does the target webservice have.?? B'cos i ran into a similar problem with Ms-Webservice. (they were using NTLM authentication). It works from a browser but not from PI. So we installed SOAP-AXIS adapter to support NTLM based authentication.

Regards,

Siva Maranani