This method returns the codes and names of all the carrier 'service groups' that are set up for the seller.
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
findCarriers
, -
Enter the authorisation for the request.
-
Click
to submit the request. You know that the information request has been successful once one or more
serviceGroupCodes
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:findGroups soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</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:findGroupsResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="urn:DeliveryManager/services">
<findGroupsReturn soapenc:arrayType="ns2:CodeNameDescription[5]" xsi:type="soapenc:Array" xmlns:ns2="urn:DeliveryManager/types" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
<findGroupsReturn xsi:type="ns2:CodeNameDescription">
<code xsi:type="soapenc:string">48</code>
<description xsi:type="soapenc:string">Services that offer delivery within 2 days</description>
<name xsi:type="soapenc:string">48 Hours</name>
</findGroupsReturn>
<findGroupsReturn xsi:type="ns2:CodeNameDescription">
<code xsi:type="soapenc:string">INTERNATIONAL</code>
<description xsi:type="soapenc:string"/>
<name xsi:type="soapenc:string">International</name>
</findGroupsReturn>
<findGroupsReturn xsi:type="ns2:CodeNameDescription">
<code xsi:type="soapenc:string">NEXT</code>
<description xsi:type="soapenc:string">Services that offer delivery within 24 hours</description>
<name xsi:type="soapenc:string">Next Day</name>
</findGroupsReturn>
<findGroupsReturn xsi:type="ns2:CodeNameDescription">
<code xsi:type="soapenc:string">PLNEXTDAY</code>
<description xsi:type="soapenc:string"/>
<name xsi:type="soapenc:string">PLNEXTDAY</name>
</findGroupsReturn>
<findGroupsReturn xsi:type="ns2:CodeNameDescription">
<code xsi:type="soapenc:string">RETURNS</code>
<description xsi:type="soapenc:string"/>
<name xsi:type="soapenc:string">Returns</name>
</findGroupsReturn>
</findGroupsReturn>
</ns1:findGroupsResponse>
</soapenv:Body>
</soapenv:Envelope>