Topic
  • 2 replies
  • Latest Post - ‏2012-03-01T22:14:48Z by SystemAdmin
SystemAdmin
SystemAdmin
3556 Posts

Pinned topic web service return code 415

‏2012-02-24T21:31:52Z |
Hi,
When I am trying to invoke external web service(non-secured) from IID, I am getting

Error: WSWS3192E: Error: return code: ( 415 ) Cannot process the message because the content type 'text/xml; charset=utf-8' was not the expected type 'multipart/related; type="application/xop+xml"'.

I am sending Content-Type: text/xml; charset=utf-8 in my soap request.This app is running under WESB 7.5 on windows.

<soapenv:Body xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Fault><faultcode>HTTP</faultcode><faultstring>( 415 ) Cannot process the message because the content type &apos;text/xml; charset=utf-8&apos; was not the expected type &apos;multipart/related; type="application/xop+xml"&apos;.</faultstring><faultactor>http://RemoteHostname:80</faultactor><detail encodingStyle=""><string>WSWS3192E: Error: return code: ( 415 ) Cannot process the message because the content type &apos;text/xml; charset=utf-8&apos; was not the expected type &apos;multipart/related; type="application/xop+xml"&apos;.
.</string></detail></soapenv:Fault></soapenv:Body>

any ideas??
  • Ronn78
    Ronn78
    13 Posts

    Re: web service return code 415

    ‏2012-02-29T16:12:27Z  
    Did you try to Set Content-Type(application/xop+xml) that complies with your external web service?
    Thanks.
  • SystemAdmin
    SystemAdmin
    3556 Posts

    Re: web service return code 415

    ‏2012-03-01T22:14:48Z  
    • Ronn78
    • ‏2012-02-29T16:12:27Z
    Did you try to Set Content-Type(application/xop+xml) that complies with your external web service?
    Thanks.
    the issue here is, webservice soap/http1.1 is calling http/soap1.2(which is not comaptible)

    serviceexport-->Mediation-->*webservice*(soap1.1)
    *webservice*(soap1.2)-->mediation-->Import

    When I am trying to import soap1.2 wsdl into my tool, the tool is conevrting that into soap1.1 service(donno why). So, i corrected it from my end, and called the service, worked fine. I am not receiving 415 error now.