cancel
Showing results for 
Search instead for 
Did you mean: 

SOAP to SAP R3 - input data taken as a "xml string"

Former Member
0 Kudos

Hi Experts,

There is requirement where input data taken as a "xml string"  needs to be parsed in PI and the generated parameters are to be mapped to the parameters of RFC.

At the input side of mapping we have a single parameter containing xml string that is coming from SOAP sender  and at the outboud side we want the parsed i.e. separated fields that can be passed in the RFC import parameters, so that the Purchase order can be generated in SAP.


Technically  : Wants it to be a SOAP to RFC scenario


Attached is the xml data  that is being passed as a string in the webservice by the client.(SOAP Sender)

Please suugest solution of the problem .

Thanks.

View Entire Topic
baskar_gopalakrishnan2
Active Contributor
0 Kudos

You basically need to do parsing the xml string using java mapping. If you are looking for a standard example for coding please look at this example. Here the xml string is declared inside the method but in your case read the inputstream and parse the desired tag elements from this.

http://www.java2s.com/Code/Java/XML/ParseanXMLstringUsingDOMandaStringReader.htm