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:
-
If you have not already done so, open a new project using the WSDL
ManifestService.xml
. -
Create a new request under
createManifestAsPdf
. -
Enter the authorisation for the request.
-
Specify the required
manifestCode
(as generated via createManifest or createManifestForFutureDespatch). -
Click to submit the 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.
<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>
-
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/). -
Download the decoded file. This will be a single PDF containing the specified manifest.