createManifestAsPdf

This method generates an existing manifest in a Base64-encoded format, for conversion into a PDF.

Note

It is assumed that you have worked through Creating your first Request to a Service, and are familiar with createManifest, and, if appropriate, createManifestForFutureDespatch.

How to submit a request

Proceed as follows:

  1. If you have not already done so, open a new project using the WSDL ManifestService.xml.

  2. Create a new request under createManifestAsPdf.

  3. Enter the authorisation for the request.

  4. Specify the required manifestCode (as generated via createManifest or createManifestForFutureDespatch).

  5. Click Arrow.png to submit the request.

Example Request

<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="urn:DeliveryManager/services">
   <soapenv:Header/>
   <soapenv:Body>
      <ser:createManifestAsPdf soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
         <manifestCode xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">DMM1W29ZV</manifestCode>
      </ser:createManifestAsPdf>
   </soapenv:Body>
</soapenv:Envelope>

For an example response and how to process the information, see below.

Example 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>
      <ns1:createManifestAsPdfResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="urn:DeliveryManager/services">
         <createManifestAsPdfReturn xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">JVBER.....JUVPRgo=</createManifestAsPdfReturn>
      </ns1:createManifestAsPdfResponse>
   </soapenv:Body>
</soapenv:Envelope>

Generate the PDF

Proceed as follows:

  1. Copy the long, encoded string between <createManifestAsPdfReturn>...</createManifestAsPdfReturn> (the above shows only an extract), and paste it into a text file. Then load the saved file into a Base64 decoder (e.g. https://www.base64decode.org/).

  2. Download the decoded file. This will be a single PDF containing the specified manifest.