on 08-15-2014 3:55 PM
We have a requirement to call an external third party web service from ABAP. The web service has only a single field in it that is <text> </text>.
After creating consumer proxy and now when testing the web service through SAP with the following data :
<text>This is a test message</text>
success response is received.
Now our requirement is to send data like this :
<text>
<SalesOrderID>10005</SalesOrderID>
<DistributionChannel>10</DistributionChannel>
<Division>11</Division>
</text>
Now sending data like this result in an error and the external server is not called at all.
Suggest ways on how to send data with tags inside a web service.
Hello Rohit,
It looks like use of CDATA in XML.
Check these links CodingForums.com
Extensible Markup Language (XML) 1.0 (Fifth Edition)
Hope this helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jitendra
Thanks for the reply, will find out how to use cdata concept in abap.
I have another question :
In an internal table i have a field with technical name lets say VBELN, now my requirement is when i call transformation to convert it into xml I want the conversion as <SalesOrderID>value</SalesOrderID>.
Please suggest some approaches. One way is to manually concatenate into string but that will be too cumbersome.
Rohit
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.