ws_tnt
Click here for a complete list of operations.
GetShipmentInvoice
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/GetShipmentInvoice" <?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> <GetShipmentInvoice xmlns="http://tempuri.org/"> <internalcode>string</internalcode> <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> <package_count>string</package_count> <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> <security_key>string</security_key> </GetShipmentInvoice> </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> <GetShipmentInvoiceResponse xmlns="http://tempuri.org/"> <GetShipmentInvoiceResult>xml</GetShipmentInvoiceResult> </GetShipmentInvoiceResponse> </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> <GetShipmentInvoice xmlns="http://tempuri.org/"> <internalcode>string</internalcode> <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> <package_count>string</package_count> <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> <security_key>string</security_key> </GetShipmentInvoice> </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> <GetShipmentInvoiceResponse xmlns="http://tempuri.org/"> <GetShipmentInvoiceResult>xml</GetShipmentInvoiceResult> </GetShipmentInvoiceResponse> </soap12:Body> </soap12:Envelope>