Quantcast
Channel: SCN : Popular Discussions - SAP Process Orchestration
Viewing all articles
Browse latest Browse all 1306

REST JSON Response

$
0
0

Hi,

 

I have a sender REST scenario, where my sender is sending the JSON request to SAP PO, I am able to take the request map it to my receiver. When I am getting the response I need to convert the payload from XML to JSON. In this conversion I see an element which I have defined as String in xml in SAP PO that gets converted to integer in JSON response.

 

{"orderNo":"",

"taxTransactionDocID":"",

"responseCode":500,

"responseMessage":"Please select the address from proposed addressess "

}

 

Here in my xml I have defined responseCode as String but the value it carries is a number. When the response goes as JSON it shows up as a number.

 

         <xsd:element name="responseCode" type="xsd:string" minOccurs="0"/>

 

Thanks in advance.

 

Ravijeet


Viewing all articles
Browse latest Browse all 1306

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>