cancel
Showing results for 
Search instead for 
Did you mean: 

"Unauthorized" error for SOAP receiver channel

Former Member
0 Kudos

Hi all,

I have a scenario in which I am calling a .NET web service from a UDF in which the XML payload is constructed manually. I have configured a SOAP receiver channel. Also, since the web service needs certificate authentication, I have checked the corresponding parameter in the SOAP channel and selected appropriate client certificate.

When I execute the mapping, I get the following error -

com.sap.aii.mapping.lookup.LookupException: Exception during processing the payload.Problem when calling an adapter by using communication channel SOAP_RCV_IMWS_Change (Party: , Service: IMWS, Object ID: dda07d364ca73d4ab9e89e562a971b36) XI AF API call failed. Module exception: 'com.sap.aii.af.ra.ms.api.RecoverableException: invalid content type for SOAP: TEXT/HTML; HTTP 401 Unauthorized: java.io.IOException: invalid content type for SOAP: TEXT/HTML; HTTP 401 Unauthorized'. Cause Exception: 'invalid content type for SOAP: TEXT/HTML; HTTP 401 Unauthorized'.

Is this related to error in certificate authentication process, OR wrongly formed XML payload OR anything else ?

Regards,

Shankar

Accepted Solutions (0)

Answers (2)

Answers (2)

Shabarish_Nair
Active Contributor
0 Kudos

/people/shabarish.vijayakumar/blog/2008/01/08/troubleshooting--rfc-and-soap-scenarios-updated-on-20042009 - try to follow the blog and see if this helps.

Former Member
0 Kudos

Thanks Shabarish.. Will try this.

former_member181962
Active Contributor
0 Kudos

Hi Shankar,

In order to consume this webservice, did you provide any login information anywhere?

If yes, check if you are able to consume the weservice using the same credentials (Try testing in a separate IE session).

Regards,

Ravi Kanth Talagana

Former Member
0 Kudos

No. I didn't provide any login info. The web service doesn't specify username login requirement. Instead, it needs client certificate for authentication, which I provided in SOAP receiver channel.

I am testing the web service by executing the message mapping. The web service was executed successfully from its 'Test Page' like for SAP web services we have web service navigator. So it runs ok from that test page, but gives error when called from UDF.

Regards,

Shankar