Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Passing Request XML to SOAP webservice from Adobe Process

Avatar

Level 2

Hi All

I am trying to pass a request XML from Adobe WS process, i added Web service control and mapped the method in Request Tab I clicked in Load and the SOAP Request XML formated.

1, Along with SOAP request XML I tried passing the Request XML which was expected by the web service My I get the following error. I tried many scenario as listed below

Please help the pattern how to pass the Request XML along with XMLs to webservice

Ex1 :

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:met="http://metlife.r2k.com">

   <soapenv:Header/>

   <soapenv:Body>

      <met:processWorkItemtoPD>

         <workItemInfo>

/** This is the Request XML composed by Me on process--Start**/

<!CDATA[<ma>

 

  <ma_body>

    <processingworkitem>

      <workiteminformation>

        <field name=applicationnum value=210212991 />

      </workiteminformation>

    </processingworkitem>

  </ma_body>

  <ma_fault>

    <applicationfault />

    <systemfault />

  </ma_fault>

</ma>]]

/** This is the Request XML composed by Me on process--End

**/

</workItemInfo>

      </met:processWorkItemtoPD>

   </soapenv:Body>

</soapenv:Envelope>

Ex2

:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:met="http://metlife.r2k.com">

   <soapenv:Header/>

   <soapenv:Body>

      <met:processWorkItemtoPD>

         <workItemInfo>

/** This is the Request XML composed by Me on process--Start**/

"<ma>

    <ma_body>

    <processingworkitem>

      <workiteminformation>

        <field name='num' value='210212991' />

      </workiteminformation>

    </processingworkitem>

  </ma_body>

  <ma_fault>

    <applicationfault />

    <systemfault />

  </ma_fault>

</ma>"

/** This is the Request XML composed by Me on process--End**/

</workItemInfo>

      </met:processWorkItemtoPD>

   </soapenv:Body>

</soapenv:Envelope>

1 Accepted Solution

Avatar

Correct answer by
Level 2

The right Approach is to use <!CDATA tag. It works well now.

View solution in original post

1 Reply

Avatar

Correct answer by
Level 2

The right Approach is to use <!CDATA tag. It works well now.