This method returns the codes and names of all the warehouses to which you have access.
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
findWarehouses
. -
Enter the authorisation for the request.
Caution
This authorisation should relate to the user for whom the warehouse information is to be returned, and should typically be the API user. This user should not in theory be locked to any warehouses, but if they are, then only those warehouses to which the user account has access will be returned.
-
Click
to submit the request. You know that the information request has been successful once one or more warehouse codes 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:findWarehouses 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:findWarehousesResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="urn:DeliveryManager/services">
<findWarehousesReturn soapenc:arrayType="ns2:CodeName[2]" xsi:type="soapenc:Array" xmlns:ns2="urn:DeliveryManager/types" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
<findWarehousesReturn xsi:type="ns2:CodeName">
<code xsi:type="soapenc:string">BSK1</code>
<name xsi:type="soapenc:string">Basingstoke1</name>
</findWarehousesReturn>
<findWarehousesReturn xsi:type="ns2:CodeName">
<code xsi:type="soapenc:string">READING1</code>
<name xsi:type="soapenc:string">Reading Green Park</name>
</findWarehousesReturn>
</findWarehousesReturn>
</ns1:findWarehousesResponse>
</soapenv:Body>
</soapenv:Envelope>