cancel
Showing results for 
Search instead for 
Did you mean: 

Webservice Interface - Soap Adapter

Former Member
0 Kudos

Hi,

Is there a way to put an XML payload into one field?

Our scenario is the following:

XI receives a request and is then sent to a 3rd party web service using SOAP adapter. The web service expects the XML payload to be put into the field, strRequest.

In the example below the XML payload,

"<ns0:Request xmlns:ns0="XXXXXX"> <name>John</name></ns0:Request>"

would go into the field, strRequest.

<?xml version="1.0" encoding="utf-8"?>

<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">

<soap:Body>

<Request xmlns="http://XXXXXX">

<strRequest>

"<ns0:Request xmlns:ns0="XXXXXX"> <name>John</name></ns0:Request>"

</strRequest>

<strID>string</strID>

</Request>

</soap:Body>

</soap:Envelope>

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Duke,

Yes you can do it. Using CDATA you can do it.

Check this weblog:

/people/michal.krawczyk2/blog/2005/11/01/xi-xml-node-into-a-string-with-graphical-mapping

Also the same issue is discussed here:

Regards,

---Satish

Answers (1)

Answers (1)

prateek
Active Contributor
0 Kudos

In addition to the suggestion provided above, u may perform java mapping and using DOM parsing achieve this requirement

Regards,

Prateek