This method allows you to assign a new manifest group code to the consignment(s) associated with an existing order number, in readiness for manifesting (e.g. via createManifest or createManifestForFutureDespatch).
Note
It is assumed that you have worked through Creating your first Request to a Service and are familiar with the Properties needed to Call or Create a Consignment.
How to submit a request
Proceed as follows:
-
If you have not already done so, open a new project using the WSDL
ConsignmentService.xml
. -
Create a new request under
scanOrderToManifestGroup
, -
Enter the authorisation for the request.
-
Specify the following:
-
The orderNumber (which can be associated with more than one consignment).
-
The manifest group code.
-
-
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:scanOrderToManifestGroup soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<orderNumber xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">T4RE345A</orderNumber>
<manifestGroupCode xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">TRUCK10</manifestGroupCode>
</ser:scanOrderToManifestGroup>
</soapenv:Body>
</soapenv:Envelope>
If the input is valid, then the carton is assigned to the newly created manifest group, and true
is returned, as in the example 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:scanOrderToManifestGroupResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="urn:DeliveryManager/services">
<scanOrderToManifestGroupReturn xsi:type="xsd:boolean">true</scanOrderToManifestGroupReturn>
</ns1:scanOrderToManifestGroupResponse>
</soapenv:Body>
</soapenv:Envelope>