ws_tnt
Click here for a complete list of operations.
GetShipmentLabel
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 /ws_tnt.asmx HTTP/1.1
Host: wspostrac.postrac.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://tempuri.org/GetShipmentLabel"
<?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>
<GetShipmentLabel xmlns="http://tempuri.org/">
<internalcode>string</internalcode>
<client_code>string</client_code>
<send_date>string</send_date>
<rec_company_name>string</rec_company_name>
<rec_street_add1>string</rec_street_add1>
<rec_street_add2>string</rec_street_add2>
<rec_street_add3>string</rec_street_add3>
<rec_city>string</rec_city>
<rec_province>string</rec_province>
<rec_postcode>string</rec_postcode>
<rec_country>string</rec_country>
<rec_contact_name>string</rec_contact_name>
<rec_contact_dail_code>string</rec_contact_dail_code>
<rec_contact_phone>string</rec_contact_phone>
<dspackage>
<xsd:schema>schema</xsd:schema>xml</dspackage>
<package_desc>string</package_desc>
<total_weight>string</total_weight>
<total_volume>string</total_volume>
<rec_currency>string</rec_currency>
<delivery_instr>string</delivery_instr>
<article_items>string</article_items>
<article_desc>string</article_desc>
<length>string</length>
<height>string</height>
<width>string</width>
<weight>string</weight>
<invoice_amt>string</invoice_amt>
<invoice_desc>string</invoice_desc>
<user>string</user>
<security_key>string</security_key>
</GetShipmentLabel>
</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>
<GetShipmentLabelResponse xmlns="http://tempuri.org/">
<GetShipmentLabelResult>string</GetShipmentLabelResult>
</GetShipmentLabelResponse>
</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 /ws_tnt.asmx HTTP/1.1
Host: wspostrac.postrac.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>
<GetShipmentLabel xmlns="http://tempuri.org/">
<internalcode>string</internalcode>
<client_code>string</client_code>
<send_date>string</send_date>
<rec_company_name>string</rec_company_name>
<rec_street_add1>string</rec_street_add1>
<rec_street_add2>string</rec_street_add2>
<rec_street_add3>string</rec_street_add3>
<rec_city>string</rec_city>
<rec_province>string</rec_province>
<rec_postcode>string</rec_postcode>
<rec_country>string</rec_country>
<rec_contact_name>string</rec_contact_name>
<rec_contact_dail_code>string</rec_contact_dail_code>
<rec_contact_phone>string</rec_contact_phone>
<dspackage>
<xsd:schema>schema</xsd:schema>xml</dspackage>
<package_desc>string</package_desc>
<total_weight>string</total_weight>
<total_volume>string</total_volume>
<rec_currency>string</rec_currency>
<delivery_instr>string</delivery_instr>
<article_items>string</article_items>
<article_desc>string</article_desc>
<length>string</length>
<height>string</height>
<width>string</width>
<weight>string</weight>
<invoice_amt>string</invoice_amt>
<invoice_desc>string</invoice_desc>
<user>string</user>
<security_key>string</security_key>
</GetShipmentLabel>
</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>
<GetShipmentLabelResponse xmlns="http://tempuri.org/">
<GetShipmentLabelResult>string</GetShipmentLabelResult>
</GetShipmentLabelResponse>
</soap12:Body>
</soap12:Envelope>