cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SOAP request syntax in content modifier

Former Member
0 Likes
1,964

I'm getting this error while making a simple soap call in request-reply step. request is captured using Content modifier.

java.lang.IllegalArgumentException: The PayLoad elements cannot fit with the message parts of the BindingOperation. Please check the BindingOperation and PayLoadMessage. Please let me know the syntax of the request in the content modifier step? see attached/below screenshots.

View Entire Topic
Sriprasadsbhat
Active Contributor
0 Likes

Hello Craig,

Best way is to make simple one to one mapping before request reply ( use message mapping ) to get rid of this error.

Step 1:

Add Content modifier with body

<Root>
	<NumberToDollars>100000</NumberToDollars>
</Root>

Step 2:

Create schema for your input XML( you can leverage Freeformatter or any other tool as its simple XML ) and import it to SAP CPI.

<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="Root">
    <xs:complexType>
      <xs:sequence>
        <xs:element type="xs:int" name="NumberToDollars" maxOccurs="unbounded" minOccurs="0"/>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>

Step 3:

Add Message Mapping from pallet.Use above schema for input and use your wsdl for target.

Step 4:

Then add Request Reply to get the response from your web service.

Regards,

Sriprasad Shivaram Bhat

Former Member
0 Likes

Thank you for your significant effort and response. I like the design approach but somehow it didn't work,