cancel
Showing results for 
Search instead for 
Did you mean: 

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

former_member186158
Active Participant
0 Kudos

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:

Accepted Solutions (0)

Answers (4)

Answers (4)

former_member186158
Active Participant

Thank you for your input.

Root cause is C4C web service error.

former_member87164
Active Contributor
0 Kudos

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

former_member186158
Active Participant
0 Kudos

thank you

former_member190293
Active Contributor
0 Kudos

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.

former_member186158
Active Participant
0 Kudos

Yes, not work.

former_member190293
Active Contributor

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

Regards, Evgeniy.

markangelo_dihiansan
Active Contributor
0 Kudos

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

former_member186158
Active Participant
0 Kudos
PO



POST http://vsappidapp:50000/XISOAPAdapter/MessageServlet?senderParty=&senderService=DataCenter&receiverP... 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==
former_member186158
Active Participant
0 Kudos

SOAPUI:

POST https://my500249.c4c.saphybriscloud.cn/sap/bc/srt/scs/sap/yy9tzfb7by_zmanageemployeein?sap-vhost=my5... 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
markangelo_dihiansan
Active Contributor
0 Kudos

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