Skip to Content
avatar image
Former Member

"Unauthorized" error for SOAP receiver channel

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Dec 18, 2007 at 12:41 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

  • Dec 18, 2007 at 06:06 PM

    /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.

    Add comment
    10|10000 characters needed characters exceeded