Skip to Content

PO call C4C Web Service error HTTP Error response for SOAP request or invalid content-type

It is our first Interface PO to C4C with SOAP.

We can not make it work.
Please help us to troubleshoot this problem.
Is there anything we have to do with C4C?

Call C4C Web Service with SOAPUI, Succedd!

With PO, error

HTTP Error response for SOAP request or invalid content-type. Error in parsing response message.  [EXCEPTION] java.io.IOException: HTTP Error response for SOAP request or invalid content-type. at com.sap.aii.af.sdk.xi.net.MIMEInputSource.readBody(MIMEInputSource.java:546) at com.sap.aii.af.sdk.xi.net.MIMEInputSource.parse(MIMEInputSource.java:132) at com.sap.aii.af.sdk.xi.net.HTTPClientConnection.call(HTTPClientConnection.java:1269) at com.sap.aii.af.sdk.xi.net.HTTPClientConnection.post(HTTPClientConnection.java:352) at com.sap.aii.af.sdk.xi.srt.CallerServiceImpl2.call(CallerServiceImpl2.java:258) at com.sap.aii.af.sdk.xi.srt.TransportBubble.onMessage(TransportBubble.java:47) at com.sap.aii.af.sdk.xi.srt.ExtensionBubble.onMessage(ExtensionBubble.java:60) at com.sap.aii.adapter.soap.ejb.XISOAPAdapterBean.callBubbleSequenceReceiver(XISOAPAdapterBean.java:1213) at com.sap.aii.adapter.soap.ejb.XISOAPAdapterBean.process(XISOAPAdapterBean.java:959) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

Data with SOAPUI

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:glob="http://sap.com/xi/SAPGlobal20/Global"> 
  
 <soapenv:Header/> <soapenv:Body> <glob:EmployeeZEmployeeView01CreateRequest_sync> <BasicMessageHeader> </BasicMessageHeader> <Employee> <!--Zero or more repetitions:--> <Identification> <!--Optional:--> <EmployeeID>9999989</EmployeeID> </Identification>  <CurrentCommon> <!--Optional:--> <Person> <!--Optional:--> <Name> <!--Optional:--> <GivenName>名</GivenName> <!--Optional:--> <FamilyName>姓</FamilyName> </Name> <!--Optional:--> <GenderCode>1</GenderCode> </Person> </CurrentCommon> <!--Zero or more repetitions:--> <EmployeeType> <!--Optional:--> <InternalEmployeeIndicator>false</InternalEmployeeIndicator> <!--Optional:--> <ValidityPeriod> <StartDate>0001-01-01</StartDate> <EndDate>9999-12-31</EndDate> </ValidityPeriod> </EmployeeType> </Employee> </glob:EmployeeZEmployeeView01CreateRequest_sync> </soapenv:Body></soapenv:Envelope>

Data in PI monitor

After format like this:

soap-c4c.jpg (185.9 kB)
soapui-c4c.jpg (251.6 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Jan 19 at 07:51 AM

    Thank you for your input.

    Root cause is C4C web service error.

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 13, 2017 at 05:09 AM

    Hi Shen,

    It is hard to say what is wrong. Can you try adding :443 after the hostname? Can you also show us the request message and the corresponding http headers by clicking the SOAP UI raw tab?

    Regards,

    Mark

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Shen,

      Thank you for sharing the http headers. I could not find anything wrong with it. A couple of questions:

      1. Have you installed the c4c certificates in NWA trustedCAs?

      2. Are you using an http proxy?

      3. Have you tried adding 443 after https://157.1331.92.51:443/sap.... ?

      Regards,

      Mark

  • Oct 13, 2017 at 01:14 PM

    Hi Shen!

    Did you try to set SOAP action to "http://0025743084-one-off.sap.com/Y9TZFB7BY_/Y9TZFB7BY_ZManageEmployeeIn/CreateRequest" in receiver SOAP adapter's settings?

    Regards, Evgeniy.

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 13, 2017 at 03:06 PM

    Hi Shen,

    Can you please check with PO system configuration once again.

    Here is the Link

    https://blogs.sap.com/2015/06/05/creating-a-default-port-in-soa-management-for-a-consumer-proxy/

    after that run it as fresh web- service .. .

    once done let me know the result PO screen shot.

    Hope this will be help.

    I am waiting for you response.

    Br,

    Keshav

    Add comment
    10|10000 characters needed characters exceeded