WSElectronicOrder
Click here for a complete list of operations.
GetShippingOptionsWithQuantity
This web service method returns a list of shipping service level options based on the warehouses accessible to the customer, the availability of the part, and the postal code specified.
Input Values:
Key (String) - Web service security key assigned by Keystone.
FullAccountNo (String) - The 5-7 character account number provided by Keystone.
FullPartNo (String) - The full part number includes the Keystone vendor code and Keystone part number.
ToZip (String) - Zip code the item is to be shipped to. Note: If no zip code is passed in, the customer's default zip code will be used.
Quantity (Integer) - The quantity of parts to be ordered.
Output - Returns an XML document with the following schema:
____ ServiceLevel - the Keystone shipping service level code
____ Name - a friendly name of the shipping method
____ Rate - the quoted shipping rate for the shipping method
____ Warehouses - Lists the quantity of the full part number specified that will be shipped from each location
____ Backordered - Quantity backordered
____ Cancelled - Quantity cancelled
____ Additional Fee - Any additional fees.
Test
The test form is only available for requests from the local machine.SOAP 1.1
The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.
POST /WSElectronicOrder/ElectronicOrder.asmx HTTP/1.1
Host: order.ekeystone.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://eKeystone.com/GetShippingOptionsWithQuantity"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<GetShippingOptionsWithQuantity xmlns="http://eKeystone.com">
<Key>string</Key>
<FullAccountNo>string</FullAccountNo>
<FullPartNo>string</FullPartNo>
<ToZip>string</ToZip>
<Quantity>int</Quantity>
</GetShippingOptionsWithQuantity>
</soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<GetShippingOptionsWithQuantityResponse xmlns="http://eKeystone.com">
<GetShippingOptionsWithQuantityResult>
<xsd:schema>schema</xsd:schema>xml</GetShippingOptionsWithQuantityResult>
</GetShippingOptionsWithQuantityResponse>
</soap:Body>
</soap:Envelope>
SOAP 1.2
The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.
POST /WSElectronicOrder/ElectronicOrder.asmx HTTP/1.1
Host: order.ekeystone.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<GetShippingOptionsWithQuantity xmlns="http://eKeystone.com">
<Key>string</Key>
<FullAccountNo>string</FullAccountNo>
<FullPartNo>string</FullPartNo>
<ToZip>string</ToZip>
<Quantity>int</Quantity>
</GetShippingOptionsWithQuantity>
</soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<GetShippingOptionsWithQuantityResponse xmlns="http://eKeystone.com">
<GetShippingOptionsWithQuantityResult>
<xsd:schema>schema</xsd:schema>xml</GetShippingOptionsWithQuantityResult>
</GetShippingOptionsWithQuantityResponse>
</soap12:Body>
</soap12:Envelope>