on ‎2020 Sep 14 10:37 AM
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.



Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 9 | |
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.