Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Chris Smashe Mon, 24 Apr at 10:24am
- Without the zip code i just did it to mine.
- Surepost does not allow you to send both boxes at the same time so we have to send them separately and add them up.
- Box 1 send
- <?xml version="1.0" encoding="UTF-8"?>
- <env:Envelope xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/04/secext" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:upssa="http://www.ups.com/XMLSchema/XOLTWS/upssa/v1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsf="http://www.ups.com/schema/wsf">
- <env:Header>
- <wsse:Security>
- <wsse:UsernameToken>
- <wsse:Username> BORETECHUPS </wsse:Username>
- <wsse:Password> BTI11R7V1 </wsse:Password>
- </wsse:UsernameToken>
- <upssa:UPSServiceAccessToken>
- <upssa:AccessLicenseNumber> FD11111FFA644FA8 </upssa:AccessLicenseNumber>
- </upssa:UPSServiceAccessToken>
- </wsse:Security>
- </env:Header>
- <env:Body>
- <rate:RateRequest xsi:schemaLocation="http://www.ups.com/XMLSchema/XOLTWS/Rate/v1.1 D:\ER-1208\schema\rate.xsd" xmlns:rate="http://www.ups.com/XMLSchema/XOLTWS/Rate/v1.1" xmlns:common="http://www.ups.com/XMLSchema/XOLTWS/Common/v1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <common:Request>
- <common:RequestOption>Rate</common:RequestOption>
- <common:TransactionReference>
- <common:CustomerContext> RATE Webservce</common:CustomerContext>
- </common:TransactionReference>
- </common:Request>
- <rate:PickupType>
- <rate:Code>01</rate:Code>
- <rate:Description>Daily Pickup</rate:Description>
- </rate:PickupType>
- <rate:CustomerClassification>
- <rate:Code>01</rate:Code>
- <rate:Description>Classification</rate:Description>
- </rate:CustomerClassification>
- <rate:Shipment>
- <rate:Shipper>
- <rate:ShipperNumber> 11R7V1 </rate:ShipperNumber>
- <rate:Address>
- <rate:StateProvinceCode>PA</rate:StateProvinceCode>
- <rate:PostalCode>18951</rate:PostalCode>
- <rate:CountryCode>US</rate:CountryCode>
- </rate:Address>
- </rate:Shipper>
- <rate:ShipTo>
- <rate:Name>Name</rate:Name>
- <rate:Address>
- <rate:AddressLine> 920 Avent Meadows ln </rate:AddressLine>
- <rate:City> Holly Springs </rate:City>
- <rate:StateProvinceCode> NC </rate:StateProvinceCode>
- <rate:PostalCode>27540</rate:PostalCode>
- <rate:CountryCode>US</rate:CountryCode>
- </rate:Address>
- </rate:ShipTo>
- <rate:InvoiceLineTotal>
- <rate:CurrencyCode>USD</rate:CurrencyCode>
- <rate:MonetaryValue>20.97</rate:MonetaryValue>
- </rate:InvoiceLineTotal>
- <rate:Service>
- <rate:Code>92</rate:Code>
- <rate:Description>Parcel Select</rate:Description>
- </rate:Service>
- <rate:Package>
- <rate:PackagingType>
- <rate:Code>02</rate:Code>
- <rate:Description>Rate Shopping</rate:Description>
- </rate:PackagingType>
- <rate:Dimensions>
- <rate:UnitOfMeasurement>
- <rate:Code>IN</rate:Code>
- <rate:Description>inches</rate:Description>
- </rate:UnitOfMeasurement>
- <rate:Length>7.00</rate:Length>
- <rate:Width>6.00</rate:Width>
- <rate:Height>6.00</rate:Height>
- </rate:Dimensions>
- <rate:PackageWeight>
- <rate:UnitOfMeasurement>
- <rate:Code>OZS</rate:Code>
- <rate:Description>ounces</rate:Description>
- </rate:UnitOfMeasurement>
- <rate:Weight>5.60</rate:Weight>
- </rate:PackageWeight>
- <rate:PackageServiceOptions>
- <rate:NonMachineableIndicator />
- </rate:PackageServiceOptions>
- </rate:Package>
- <rate:ShipmentRatingOptions>
- <rate:NegotiatedRatesIndicator> 1 </rate:NegotiatedRatesIndicator>
- </rate:ShipmentRatingOptions>
- </rate:Shipment>
- </rate:RateRequest>
- </env:Body>
- </env:Envelope>
- *****************************************************************************************
- Box 1 receive
- <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
- <soapenv:Header/>
- <soapenv:Body>
- <rate:RateResponse xmlns:rate="http://www.ups.com/XMLSchema/XOLTWS/Rate/v1.1">
- <common:Response xmlns:common="http://www.ups.com/XMLSchema/XOLTWS/Common/v1.0">
- <common:ResponseStatus>
- <common:Code>1</common:Code>
- <common:Description>Success</common:Description>
- </common:ResponseStatus>
- <common:Alert>
- <common:Code>112078</common:Code>
- <common:Description>Non-Machinable is not applicable and has been removed from package 1.</common:Description>
- </common:Alert>
- <common:Alert>
- <common:Code>110971</common:Code>
- <common:Description>Your invoice may vary from the displayed reference rates</common:Description>
- </common:Alert>
- <common:Alert>
- <common:Code>110920</common:Code>
- <common:Description>Ship To Address Classification is changed from Commercial to Residential</common:Description>
- </common:Alert>
- <common:TransactionReference>
- <common:CustomerContext>RATE Webservce</common:CustomerContext>
- </common:TransactionReference>
- </common:Response>
- <rate:RatedShipment>
- <rate:Service>
- <rate:Code>92</rate:Code>
- <rate:Description/>
- </rate:Service>
- <rate:RatedShipmentAlert>
- <rate:Code>112078</rate:Code>
- <rate:Description>Non-Machinable is not applicable and has been removed from package 1.</rate:Description>
- </rate:RatedShipmentAlert>
- <rate:RatedShipmentAlert>
- <rate:Code>110971</rate:Code>
- <rate:Description>Your invoice may vary from the displayed reference rates</rate:Description>
- </rate:RatedShipmentAlert>
- <rate:RatedShipmentAlert>
- <rate:Code>110920</rate:Code>
- <rate:Description>Ship To Address Classification is changed from Commercial to Residential</rate:Description>
- </rate:RatedShipmentAlert>
- <rate:BillingWeight>
- <rate:UnitOfMeasurement>
- <rate:Code>OZS</rate:Code>
- <rate:Description>Ounces</rate:Description>
- </rate:UnitOfMeasurement>
- <rate:Weight>6.0</rate:Weight>
- </rate:BillingWeight>
- <rate:TransportationCharges>
- <rate:CurrencyCode>USD</rate:CurrencyCode>
- <rate:MonetaryValue>8.59</rate:MonetaryValue>
- </rate:TransportationCharges>
- <rate:ServiceOptionsCharges>
- <rate:CurrencyCode>USD</rate:CurrencyCode>
- <rate:MonetaryValue>0.00</rate:MonetaryValue>
- </rate:ServiceOptionsCharges>
- <rate:TotalCharges>
- <rate:CurrencyCode>USD</rate:CurrencyCode>
- <rate:MonetaryValue>8.59</rate:MonetaryValue>
- </rate:TotalCharges>
- <rate:NegotiatedRateCharges>
- <rate:TotalCharge>
- <rate:CurrencyCode>USD</rate:CurrencyCode>
- <rate:MonetaryValue>6.44</rate:MonetaryValue>
- </rate:TotalCharge>
- </rate:NegotiatedRateCharges>
- <rate:RatedPackage>
- <rate:TransportationCharges>
- <rate:CurrencyCode>USD</rate:CurrencyCode>
- <rate:MonetaryValue>8.59</rate:MonetaryValue>
- </rate:TransportationCharges>
- <rate:ServiceOptionsCharges>
- <rate:CurrencyCode>USD</rate:CurrencyCode>
- <rate:MonetaryValue>0.00</rate:MonetaryValue>
- </rate:ServiceOptionsCharges>
- <rate:TotalCharges>
- <rate:CurrencyCode>USD</rate:CurrencyCode>
- <rate:MonetaryValue>8.59</rate:MonetaryValue>
- </rate:TotalCharges>
- <rate:Weight>5.6</rate:Weight>
- <rate:BillingWeight>
- <rate:UnitOfMeasurement>
- <rate:Code>OZS</rate:Code>
- <rate:Description>Ounces</rate:Description>
- </rate:UnitOfMeasurement>
- <rate:Weight>6.0</rate:Weight>
- </rate:BillingWeight>
- </rate:RatedPackage>
- </rate:RatedShipment>
- </rate:RateResponse>
- </soapenv:Body>
- </soapenv:Envelope>
- **********************************************************************************************
- Box 2 send
- <?xml version="1.0" encoding="UTF-8"?>
- <env:Envelope xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/04/secext" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:upssa="http://www.ups.com/XMLSchema/XOLTWS/upssa/v1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsf="http://www.ups.com/schema/wsf">
- <env:Header>
- <wsse:Security>
- <wsse:UsernameToken>
- <wsse:Username> BORETECHUPS </wsse:Username>
- <wsse:Password> BTI11R7V1 </wsse:Password>
- </wsse:UsernameToken>
- <upssa:UPSServiceAccessToken>
- <upssa:AccessLicenseNumber> FD11111FFA644FA8 </upssa:AccessLicenseNumber>
- </upssa:UPSServiceAccessToken>
- </wsse:Security>
- </env:Header>
- <env:Body>
- <rate:RateRequest xsi:schemaLocation="http://www.ups.com/XMLSchema/XOLTWS/Rate/v1.1 D:\ER-1208\schema\rate.xsd" xmlns:rate="http://www.ups.com/XMLSchema/XOLTWS/Rate/v1.1" xmlns:common="http://www.ups.com/XMLSchema/XOLTWS/Common/v1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <common:Request>
- <common:RequestOption>Rate</common:RequestOption>
- <common:TransactionReference>
- <common:CustomerContext> RATE Webservce</common:CustomerContext>
- </common:TransactionReference>
- </common:Request>
- <rate:PickupType>
- <rate:Code>01</rate:Code>
- <rate:Description>Daily Pickup</rate:Description>
- </rate:PickupType>
- <rate:CustomerClassification>
- <rate:Code>01</rate:Code>
- <rate:Description>Classification</rate:Description>
- </rate:CustomerClassification>
- <rate:Shipment>
- <rate:Shipper>
- <rate:ShipperNumber> 11R7V1 </rate:ShipperNumber>
- <rate:Address>
- <rate:StateProvinceCode>PA</rate:StateProvinceCode>
- <rate:PostalCode>18951</rate:PostalCode>
- <rate:CountryCode>US</rate:CountryCode>
- </rate:Address>
- </rate:Shipper>
- <rate:ShipTo>
- <rate:Name>Name</rate:Name>
- <rate:Address>
- <rate:AddressLine> 920 Avent Meadows ln </rate:AddressLine>
- <rate:City> Holly Springs </rate:City>
- <rate:StateProvinceCode> NC </rate:StateProvinceCode>
- <rate:PostalCode>27540</rate:PostalCode>
- <rate:CountryCode>US</rate:CountryCode>
- </rate:Address>
- </rate:ShipTo>
- <rate:InvoiceLineTotal>
- <rate:CurrencyCode>USD</rate:CurrencyCode>
- <rate:MonetaryValue>54.99</rate:MonetaryValue>
- </rate:InvoiceLineTotal>
- <rate:Service>
- <rate:Code>93</rate:Code>
- <rate:Description>Parcel Select</rate:Description>
- </rate:Service>
- <rate:Package>
- <rate:PackagingType>
- <rate:Code>02</rate:Code>
- <rate:Description>Rate Shopping</rate:Description>
- </rate:PackagingType>
- <rate:Dimensions>
- <rate:UnitOfMeasurement>
- <rate:Code>IN</rate:Code>
- <rate:Description>inches</rate:Description>
- </rate:UnitOfMeasurement>
- <rate:Length>55</rate:Length>
- <rate:Width>3</rate:Width>
- <rate:Height>3</rate:Height>
- </rate:Dimensions>
- <rate:PackageWeight>
- <rate:UnitOfMeasurement>
- <rate:Code>LBS</rate:Code>
- <rate:Description>pounds</rate:Description>
- </rate:UnitOfMeasurement>
- <rate:Weight>3.85</rate:Weight>
- </rate:PackageWeight>
- <rate:PackageServiceOptions>
- <rate:NonMachineableIndicator />
- </rate:PackageServiceOptions>
- </rate:Package>
- <rate:ShipmentRatingOptions>
- <rate:NegotiatedRatesIndicator> 1 </rate:NegotiatedRatesIndicator>
- </rate:ShipmentRatingOptions>
- </rate:Shipment>
- </rate:RateRequest>
- </env:Body>
- </env:Envelope>
- *************************************************************************
- Box 2 receive
- <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
- <soapenv:Header/>
- <soapenv:Body>
- <rate:RateResponse xmlns:rate="http://www.ups.com/XMLSchema/XOLTWS/Rate/v1.1">
- <common:Response xmlns:common="http://www.ups.com/XMLSchema/XOLTWS/Common/v1.0">
- <common:ResponseStatus>
- <common:Code>1</common:Code>
- <common:Description>Success</common:Description>
- </common:ResponseStatus>
- <common:Alert>
- <common:Code>119001</common:Code>
- <common:Description>Additional Handling has automatically been set on Package 1.</common:Description>
- </common:Alert>
- <common:Alert>
- <common:Code>110971</common:Code>
- <common:Description>Your invoice may vary from the displayed reference rates</common:Description>
- </common:Alert>
- <common:Alert>
- <common:Code>110920</common:Code>
- <common:Description>Ship To Address Classification is changed from Commercial to Residential</common:Description>
- </common:Alert>
- <common:TransactionReference>
- <common:CustomerContext>RATE Webservce</common:CustomerContext>
- </common:TransactionReference>
- </common:Response>
- <rate:RatedShipment>
- <rate:Service>
- <rate:Code>93</rate:Code>
- <rate:Description/>
- </rate:Service>
- <rate:RatedShipmentAlert>
- <rate:Code>119001</rate:Code>
- <rate:Description>Additional Handling has automatically been set on Package 1.</rate:Description>
- </rate:RatedShipmentAlert>
- <rate:RatedShipmentAlert>
- <rate:Code>110971</rate:Code>
- <rate:Description>Your invoice may vary from the displayed reference rates</rate:Description>
- </rate:RatedShipmentAlert>
- <rate:RatedShipmentAlert>
- <rate:Code>110920</rate:Code>
- <rate:Description>Ship To Address Classification is changed from Commercial to Residential</rate:Description>
- </rate:RatedShipmentAlert>
- <rate:BillingWeight>
- <rate:UnitOfMeasurement>
- <rate:Code>LBS</rate:Code>
- <rate:Description>Pounds</rate:Description>
- </rate:UnitOfMeasurement>
- <rate:Weight>4.0</rate:Weight>
- </rate:BillingWeight>
- <rate:TransportationCharges>
- <rate:CurrencyCode>USD</rate:CurrencyCode>
- <rate:MonetaryValue>10.83</rate:MonetaryValue>
- </rate:TransportationCharges>
- <rate:ServiceOptionsCharges>
- <rate:CurrencyCode>USD</rate:CurrencyCode>
- <rate:MonetaryValue>10.85</rate:MonetaryValue>
- </rate:ServiceOptionsCharges>
- <rate:TotalCharges>
- <rate:CurrencyCode>USD</rate:CurrencyCode>
- <rate:MonetaryValue>21.68</rate:MonetaryValue>
- </rate:TotalCharges>
- <rate:NegotiatedRateCharges>
- <rate:TotalCharge>
- <rate:CurrencyCode>USD</rate:CurrencyCode>
- <rate:MonetaryValue>19.52</rate:MonetaryValue>
- </rate:TotalCharge>
- </rate:NegotiatedRateCharges>
- <rate:RatedPackage>
- <rate:TransportationCharges>
- <rate:CurrencyCode>USD</rate:CurrencyCode>
- <rate:MonetaryValue>10.83</rate:MonetaryValue>
- </rate:TransportationCharges>
- <rate:ServiceOptionsCharges>
- <rate:CurrencyCode>USD</rate:CurrencyCode>
- <rate:MonetaryValue>10.85</rate:MonetaryValue>
- </rate:ServiceOptionsCharges>
- <rate:TotalCharges>
- <rate:CurrencyCode>USD</rate:CurrencyCode>
- <rate:MonetaryValue>21.68</rate:MonetaryValue>
- </rate:TotalCharges>
- <rate:Weight>3.9</rate:Weight>
- <rate:BillingWeight>
- <rate:UnitOfMeasurement>
- <rate:Code>LBS</rate:Code>
- <rate:Description>Pounds</rate:Description>
- </rate:UnitOfMeasurement>
- <rate:Weight>4.0</rate:Weight>
- </rate:BillingWeight>
- </rate:RatedPackage>
- </rate:RatedShipment>
- </rate:RateResponse>
- </soapenv:Body>
- </soapenv:Envelope>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement