on 03-26-2018 2:07 PM
Hi All,
I have used option Request body format in REST Advantco channel to convert xml to json.
XML input:
<?xml version="1.0" encoding="UTF-8"?>
<inventory>
<source>SAP</source>
<id>AM41N</id>
<quantity>4</quantity>
</inventory>
Can see below JSON format:
{
"inventory":{
"source":"SAP",
"id":"AM41N",
"quantity":"4"}
}
Required Format:
{
"inventory":{
"source":"SAP",
"id":"AM41N",
"quantity":4}
}
Quantity field should be integer instead of string. Due to I am not able to connect API.
Can you please suggest how can achieve required format?
Thanks & Regards,
Nanda
It got resolved.
Solution :
while Converting Request Body Format.
we can give Source Node - is path of the Quantity field : /inventory/Quantity/#text
Target Node : #number.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
79 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.