findGroups

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:

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

  2. Create a new request under findCarriers,

  3. Enter the authorisation for the request.

  4. Click Arrow.png to submit the request. You know that the information request has been successful once one or more serviceGroupCodes have been returned.

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:findGroups soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
   </soapenv:Body>
</soapenv:Envelope>

For an example response, 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: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>