cancel
Showing results for 
Search instead for 
Did you mean: 

unexpected text/html ContentType. Incoming portion of HTML stream: (none) 500 Using API SAP ByDesign

0 Kudos

Hello everyone,

I have question reagrding using an API from SAP ByDesign.
I created an Iflow in integrationSuite, I receive a XML containing an ID, I want to make a query using QueryBusinessPartnerIn. Providing the ID and making a query to sap ByDesign I expect as a response back the name of the business partner.
What I did so far:
I made the soap channel, (I tried also with the REST channel, adding the soap envelope to the body). In the content modifier, I built the request according to the documentation ( https://help.sap.com/doc/a2b4c7ef61d64397b2b1d052082a8a08/2308/en-US/PSM_ISI_R_II_QUERY_BUPA_IN_V1.h... ) and I started the Iflow. In the content modifier the body looks like this:

 <glob:BusinessPartnerByIdentificationQuery_sync xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:glob="http://sap.com/xi/SAPGlobal20/Global">
<BusinessPartnerSelectionByIdentification>
<SelectionByInternalID>
<InclusionExclusionCode>I</InclusionExclusionCode>
<IntervalBoundaryTypeCode>1</IntervalBoundaryTypeCode>
<LowerBoundaryIdentifier>${property.AccountParty_PartyID}</LowerBoundaryIdentifier>
</SelectionByInternalID>
</BusinessPartnerSelectionByIdentification>
</glob:BusinessPartnerByIdentificationQuery_sync>

${property.AccountParty_PartyID} is stored in the property.

What I receive back is:
Error:

org.apache.cxf.interceptor.Fault: Response was of unexpected text/html ContentType. Incoming portion of HTML stream: (none)

HttpError: 500

I found this note: https://userapps.support.sap.com/sap/support/knowledge/en/2530701 but is not really answering my question.

I am not sure whether I may use this APIs from Business Accelerator Hub just like this. Should I do some configurations in SAP ByDesign first?

The endpoint is this: /sap/bc/srt/scs/sap/querybusinesspartnerin

Another question is related to the path ("/sap/bc/srt/scs/sap/"), is this a standard path?

Best wishes!

Accepted Solutions (0)

Answers (1)

Answers (1)

pavithra_jc
Advisor
Advisor
0 Kudos

Dear Mathias,

The error message is being raised because you are using Web Service Reliable Messaging 1.1 as Application Protocol in the C4C Communication Arrangement.

Please check if the below KBA helps resolve your issue:

3102266 - CPI Artifact failing with "org.apache.cxf.interceptor.Fault: Response was of unexpected te...

Thanks and Regards,

Pavithra