Skip to Content
0

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

Oct 12, 2017 at 01:41 PM

198

avatar image

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)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

4 Answers

Shen Peng Jan 19 at 07:51 AM
1

Thank you for your input.

Root cause is C4C web service error.

Share
10 |10000 characters needed characters left characters exceeded
Mark Dihiansan Oct 13, 2017 at 05:09 AM
0

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

Show 3 Share
10 |10000 characters needed characters left characters exceeded
PO



POST http://vsappidapp:50000/XISOAPAdapter/MessageServlet?senderParty=&senderService=DataCenter&receiverParty=&receiverService=∫erface=SI_Employee_Out∫erfaceNamespace=http://yongda.cn/PO/Master/Employee HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: text/xml;charset=UTF-8
SOAPAction: "http://sap.com/xi/WebService/soap1.1"
Content-Length: 740
Host: vsappidapp:50000
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.1.1 (java 1.5)
Cookie: com.sap.engine.security.authentication.original_application_url=POST#X6kfxoWj8Af4UmfHJj%2FgEbM9jqGZ1DcVFjUCdq4Q1QD1H2%2Bl0BJHPiXR7OextFv1FT6cz%2FuMRUa%2BtNzlMEJjrbgCnzBIMJVYcbLKXniil%2BNEcGf2eTTfzLEd7D8CTOYTLPGow96z3aPjxcT2sg%2Ba%2FvYD%2FkyIIuZAetxEKDRbkFvenYPEAgrNIJIQX6ZcpCv7V7A7JBms42ADZEnR%2F1of7CGgb%2FiN75EbnoInT6Fq9egF1FlmWU9A47Ed9s25Sid5Jl2AccxsP9%2Bde%2FVki52DeJvzXSTI5fXcTJxW7nwDbtEJbXM5%2Bk209SOIPmmanrLQ; saplb_*=(J2EE8361520)8361550
Cookie2: $Version=1
Authorization: Basic cnlfcGkwMTphYmNkMTIzNA==
0

SOAPUI:

POST https://my500249.c4c.saphybriscloud.cn/sap/bc/srt/scs/sap/yy9tzfb7by_zmanageemployeein?sap-vhost=my500249.c4c.saphybriscloud.cn HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: text/xml;charset=UTF-8
SOAPAction: "http://0025743084-one-off.sap.com/Y9TZFB7BY_/Y9TZFB7BY_ZManageEmployeeIn/CreateRequest"
Content-Length: 1516
Host: my500249.c4c.saphybriscloud.cn
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.1.1 (java 1.5)
Cookie: sap-usercontext=sap-client=056
Cookie2: $Version=1
Authorization: Basic cGkyYzRjOlNhcDEyMzQ1
0

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

0
Evgeniy Kolmakov Oct 13, 2017 at 01:14 PM
0

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.

Show 2 Share
10 |10000 characters needed characters left characters exceeded

Yes, not work.

0

Wouldn't you please provide your SOAP receiver adapter configuration screenshots?

Regards, Evgeniy.

1
Keshav Harake Oct 13, 2017 at 03:06 PM
0

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

Show 1 Share
10 |10000 characters needed characters left characters exceeded

thank you

0