SOAP Example: Rendering a DAL Job

Top Previous Topic Next Topic  Print this topic

Sample SOAP requests can be found in C:\Program Files\Ecrion\XF Web Service\Samples folder (Windows) or /opt/Ecrion/XFWS/Samples folder (Linux).

 

The following code sample is used for merging multiple inputs into one output PDF using the Ecrion DAL(Digital Assembly Line) add-on.

 

 

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.ecrion.com/xfws/2.0">

       <soapenv:Header/>

       <soapenv:Body>

               <ns:Render>

                       <ns:Input xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns:XmlDataSource">

                               <ns:Content>

<!--

Copyright (c) Ecrion Software Inc. 2002-2010. All Rights Reserved.

Permission to use, copy, modify, distribute and sell this sample document for any purpose and without fee is hereby granted,

provided that the above copyright notice appears in all copies and that both those copyright notice and this permission notice

appear in supporting documentation, and that the name of Ecrion Software Inc. not be used in advertising or publicity pertaining

to distribution of the software without specific, written prior permission. Ecrion Software Inc. make no representations about

the suitability of this software for any purpose. It is provided "as is" without express or implied warranty.

-->

                                       <xfj:job xmlns:xfj="http://www.ecrion.com/xfj/1.0">

 

                                               <!-- one or more xfj:document elements -->

 

                                               <xfj:document>

                                                       <xfj:external-content src="url(data:;base64,77u/..."/>

                                                       <xfj:input-xml src="url(data:;base64,82c/..."/>

                                               </xfj:document>

 

                                               <xfj:document>

                                                       <xfj:external-content src="url(data:;base64,sfv/..."/>

                                               </xfj:document>

 

                                       </xfj:job>

                               </ns:Content>

                               <ns:Format>DAL</ns:Format>

                       </ns:Input>

                       <ns:Parameters>

                               <ns:OutputFormat>PDF</ns:OutputFormat>

                               <ns:InputBytesID>DALToPDF.soap</ns:InputBytesID>

                       </ns:Parameters>

               </ns:Render>

       </soapenv:Body>

</soapenv:Envelope>