1 Reply Latest reply on Dec 18, 2008 6:01 AM by Jasmin Charbonneau

    Passing XML data to a process as a web service

      Hello there.<br /><br />I have a livecycle process which is used to merge an XML data file with an XDP form to create a static PDF document using Livecycle output ES.<br /><br />I have set up a watched folder end point which works successfully, i.e. I drop an appropriate XML data file into the watched folder, and the appropriate pdf document is successfully created in the appropriate directory.<br /><br />So far so good.<br /><br />In practise, this process is going to be exposed as a web service to be called by an ASP.Net based application.  To this end, I want to test the principle of calling the process as a web service.  To do this, I have set up another process (test client process), which calls the original (core) process as a web service, using an Invoke Web Service step.  I have set up another watched folder end point for this test client process, which is pretty much identical to the watched folder end point I am using for the core process.<br /><br />The XML data is passed using a variable called xmlData of type xml.  This is defined as a required input variable in both the test client process and the core process.  I am successfully passing this data into the test client process by dropping the xml file into the watched folder (I know this is working because I have put in a variable logger step to make sure this is happening).<br /><br />I am then attempting to pass this xml data into the core process by embedding the xmlData variable in the SOAP Request, which is as follows:<br /><br /><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://adobe.com/idp/services"><br />   <soapenv:Header/><br />   <soapenv:Body><br />      <ser:invoke><br />         <ser:xmlData><br />{$ /process_data/xmlData $}<br />      </ser:xmlData><br />      </ser:invoke><br />   </soapenv:Body><br /></soapenv:Envelope><br /><br />For all the other options in the WebService Settings dialog, I am using default\generated values.<br /><br />When I drop an XML file into the watched folder to invoke the test client process, it produces a response with the error ALC-DSC-002-000: com.adobe.idp.dsc.RequiredParameterException: Parameter: xmlData is required. (full text pasted below).<br /><br />Any ideas why this is generating an error?<br /><br />Many thanks<br /><br />Geoff Olding<br /><br />The full text of the error is as follows:<br /><br /><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><br />   <soapenv:Body><br />      <soapenv:Fault><br />         <faultcode>soapenv:Server.userException</faultcode><br />         <faultstring>ALC-DSC-002-000: com.adobe.idp.dsc.RequiredParameterException: Parameter: xmlData is required.</faultstring><br />         <detail><br />            <faultData><br />               <ns1:error xmlns:ns1="http://adobe.com/idp/services"><br />                  <ns1:classLoader><br />                     <ns1:parent><br />                        <ns1:parent><br />                           <ns1:parent><br />                              <ns1:parent><br />                                 <ns1:parent xsi:nil="true"/><br />                              </ns1:parent><br />                           </ns1:parent><br />                        </ns1:parent><br />                     </ns1:parent><br />                  </ns1:classLoader><br />                  <ns1:componentUID>DSC</ns1:componentUID><br />                  <ns1:errorCode>2</ns1:errorCode><br />                  <ns1:localizedMessage>Parameter: xmlData is required.</ns1:localizedMessage><br />                  <ns1:message>Parameter: xmlData is required.</ns1:message><br />                  <ns1:minorCode>0</ns1:minorCode><br />               </ns1:error><br />               <ns2:message xmlns:ns2="http://adobe.com/idp/services">Parameter: xmlData is required.</ns2:message><br />               <ns3:nestedThrowable xsi:nil="true" xmlns:ns3="http://adobe.com/idp/services"/><br />            </faultData><br />            <ns4:hostname xmlns:ns4="http://xml.apache.org/axis/">kananga</ns4:hostname><br />         </detail><br />      </soapenv:Fault><br />   </soapenv:Body>