SOAP Example: Rendering a Word Document

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 converting a Word 2007 document to PDF without using Microsoft Word.

 

 

<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">

                               <!--This is the base64 encoded content-->

                               <ns:Content>UEsDBBQABgAIAAAAIQDd/...</ns:Content>

                               <ns:Format>DocX</ns:Format>

                       </ns:Input>

                       <ns:Parameters>

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

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

                       </ns:Parameters>

               </ns:Render>

       </soapenv:Body>

</soapenv:Envelope>