This method allows you to find out the codes and names of the configured carrier services associated with a particular carrier code.
You can then use the returned carrierServiceCodes
in booking codes.
Note
It is assumed that you have worked through Creating your first Request to a Service.
How to submit a request
Proceed as follows:
If you have not already done so, open a new project using the WSDL
InformationService.xml
.Create a new request under
findCarrierServices
,Enter the authorisation for the request.
Specify the required
carrierCode
.Click
to submit the request. You know that the information request has been successful once one or more
carrierServiceCodes
and names have been returned.
<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:findCarrierServices soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<carrierCode xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">HERMESPOS</carrierCode>
</ser:findCarrierServices>
</soapenv:Body>
</soapenv:Envelope>
For an example response, 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:findCarrierServicesResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="urn:DeliveryManager/services">
<findCarrierServicesReturn soapenc:arrayType="ns2:CarrierService[3]" xsi:type="soapenc:Array" xmlns:ns2="urn:DeliveryManager/types" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
<findCarrierServicesReturn xsi:type="ns2:CarrierService">
<code xsi:type="soapenc:string">HERM48</code>
<name xsi:type="soapenc:string">Courier Service 48 Hour</name>
</findCarrierServicesReturn>
<findCarrierServicesReturn xsi:type="ns2:CarrierService">
<code xsi:type="soapenc:string">HERMNONSIG48</code>
<name xsi:type="soapenc:string">Courier Service 48 Hour Non-Signature</name>
</findCarrierServicesReturn>
<findCarrierServicesReturn xsi:type="ns2:CarrierService">
<code xsi:type="soapenc:string">HERMNDG</code>
<name xsi:type="soapenc:string">Courier Service Next Day</name>
</findCarrierServicesReturn>
</findCarrierServicesReturn>
</ns1:findCarrierServicesResponse>
</soapenv:Body>
</soapenv:Envelope>