Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.

Pass XML to LC process via SOAP

Avatar

Former Community Member

Hi,

I need to solve following issue, I have a process variable of type XML and I need to pass simple XML structure to it via SOAP.

The problem is that I dont know which of the two (bold) elements should I fill in and how with the simple XML structure.

The simple XML can look like this:

<list>

     <user>Frank</user>

     <user>Thomas</user>

</list>

and the SOAP request I have looks like this:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://adobe.com/idp/services">
   <soapenv:Header/>
   <soapenv:Body>
      <ser:invoke>
         <ser:doc_name>smlouva.txt</ser:doc_name>
         <ser:id_dms>123abc</ser:id_dms>
         <ser:id_proxio>23</ser:id_proxio>
         <ser:in_document>
            <ser:binaryData>cid:1110430707848</ser:binaryData>
         </ser:in_document>
         <ser:user_id>jnovak</ser:user_id>
         <ser:user_list>
            <ser:document/>

            <ser:element/>
         </ser:user_list>
         <ser:wf_type>pr1</ser:wf_type>
      </ser:invoke>
   </soapenv:Body>
</soapenv:Envelope>

Any ideas are appresiated. I tried the CDATA, but obviuosly I did it wrong..

Thanks a lot

J.

2 Replies

Avatar

Former Community Member

Passing CDATA into the document element does it.

...

<ser:user_list>
            <ser:document>

                 <![CDATA[

                      <list>

                           <item>Item 1</item>

                           <item>Item 2</item>

                           <item>Item 3</item>

                      </list>

                 ]]>

            </ser:document>

</ser:user_list>

...

J.