Archive for September 10, 2008
WebService calls with XML Documents, CDATA sections
For this sample we will create 2 processes to demonstrate how to call a webservice passing a Document to/from the webservice. The process xml file is also attached to the page and can be imported into workbench as well as the complete application(LCA). A WSDL that uses the xml type for a return document causes the xml document to be inserted into the SOAP response into a CDATA section in the response:
<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“>
<soapenv:Body>
<invokeResponse xmlns=”http://adobe.com/idp/services“>
<outDoc xmlns:ns1=”http://adobe.com/idp/services” xsi:type=”ns1:XML”>
<document><
- You will need to load the WSDL URL for the service create above (http://localhost:8080/soap/services/echoXmlDoc?wsdl) and chose load wsdl. You may also have to set the user name and password to invoke the service, by default the ES WSDLs are secure.
- Next, Click on the request tab, Genereate the SOAP Request. This will generate the SOAP Request with all the available parameters. Note that you can also generate the SOAP request for the test and use the test tab to test your request:

- We can now chose OK to exit out of the Web Service Options
- Next, Drag in the Set Value Service after the Web Service. Double click on Set Value service to bring up the properties page. We need to map the output document to the first document in the attachments list. This is done by setting the location /process_data/@outDoc to the expression /process_data/attachments[1]
Webservice-calls-with-xml-documents with Application and Process Files



