Advertisement
Guest User

Untitled

a guest
Apr 26th, 2017
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.58 KB | None | 0 0
  1. Chris Smashe Mon, 24 Apr at 10:24am
  2. Without the zip code i just did it to mine.
  3. Surepost does not allow you to send both boxes at the same time so we have to send them separately and add them up.
  4. Box 1 send
  5. <?xml version="1.0" encoding="UTF-8"?>
  6. <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">
  7. <env:Header>
  8. <wsse:Security>
  9. <wsse:UsernameToken>
  10. <wsse:Username> BORETECHUPS </wsse:Username>
  11. <wsse:Password> BTI11R7V1 </wsse:Password>
  12. </wsse:UsernameToken>
  13. <upssa:UPSServiceAccessToken>
  14. <upssa:AccessLicenseNumber> FD11111FFA644FA8 </upssa:AccessLicenseNumber>
  15. </upssa:UPSServiceAccessToken>
  16. </wsse:Security>
  17. </env:Header>
  18. <env:Body>
  19. <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">
  20. <common:Request>
  21. <common:RequestOption>Rate</common:RequestOption>
  22. <common:TransactionReference>
  23. <common:CustomerContext> RATE Webservce</common:CustomerContext>
  24. </common:TransactionReference>
  25. </common:Request>
  26. <rate:PickupType>
  27. <rate:Code>01</rate:Code>
  28. <rate:Description>Daily Pickup</rate:Description>
  29. </rate:PickupType>
  30. <rate:CustomerClassification>
  31. <rate:Code>01</rate:Code>
  32. <rate:Description>Classification</rate:Description>
  33. </rate:CustomerClassification>
  34. <rate:Shipment>
  35. <rate:Shipper>
  36. <rate:ShipperNumber> 11R7V1 </rate:ShipperNumber>
  37. <rate:Address>
  38. <rate:StateProvinceCode>PA</rate:StateProvinceCode>
  39. <rate:PostalCode>18951</rate:PostalCode>
  40. <rate:CountryCode>US</rate:CountryCode>
  41. </rate:Address>
  42. </rate:Shipper>
  43. <rate:ShipTo>
  44. <rate:Name>Name</rate:Name>
  45. <rate:Address>
  46. <rate:AddressLine> 920 Avent Meadows ln </rate:AddressLine>
  47. <rate:City> Holly Springs </rate:City>
  48. <rate:StateProvinceCode> NC </rate:StateProvinceCode>
  49. <rate:PostalCode>27540</rate:PostalCode>
  50. <rate:CountryCode>US</rate:CountryCode>
  51. </rate:Address>
  52. </rate:ShipTo>
  53. <rate:InvoiceLineTotal>
  54. <rate:CurrencyCode>USD</rate:CurrencyCode>
  55. <rate:MonetaryValue>20.97</rate:MonetaryValue>
  56. </rate:InvoiceLineTotal>
  57. <rate:Service>
  58. <rate:Code>92</rate:Code>
  59. <rate:Description>Parcel Select</rate:Description>
  60. </rate:Service>
  61. <rate:Package>
  62. <rate:PackagingType>
  63. <rate:Code>02</rate:Code>
  64. <rate:Description>Rate Shopping</rate:Description>
  65. </rate:PackagingType>
  66. <rate:Dimensions>
  67. <rate:UnitOfMeasurement>
  68. <rate:Code>IN</rate:Code>
  69. <rate:Description>inches</rate:Description>
  70. </rate:UnitOfMeasurement>
  71. <rate:Length>7.00</rate:Length>
  72. <rate:Width>6.00</rate:Width>
  73. <rate:Height>6.00</rate:Height>
  74. </rate:Dimensions>
  75. <rate:PackageWeight>
  76. <rate:UnitOfMeasurement>
  77. <rate:Code>OZS</rate:Code>
  78. <rate:Description>ounces</rate:Description>
  79. </rate:UnitOfMeasurement>
  80. <rate:Weight>5.60</rate:Weight>
  81. </rate:PackageWeight>
  82. <rate:PackageServiceOptions>
  83. <rate:NonMachineableIndicator />
  84. </rate:PackageServiceOptions>
  85. </rate:Package>
  86. <rate:ShipmentRatingOptions>
  87. <rate:NegotiatedRatesIndicator> 1 </rate:NegotiatedRatesIndicator>
  88. </rate:ShipmentRatingOptions>
  89. </rate:Shipment>
  90. </rate:RateRequest>
  91. </env:Body>
  92. </env:Envelope>
  93. *****************************************************************************************
  94. Box 1 receive
  95. <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
  96. <soapenv:Header/>
  97. <soapenv:Body>
  98. <rate:RateResponse xmlns:rate="http://www.ups.com/XMLSchema/XOLTWS/Rate/v1.1">
  99. <common:Response xmlns:common="http://www.ups.com/XMLSchema/XOLTWS/Common/v1.0">
  100. <common:ResponseStatus>
  101. <common:Code>1</common:Code>
  102. <common:Description>Success</common:Description>
  103. </common:ResponseStatus>
  104. <common:Alert>
  105. <common:Code>112078</common:Code>
  106. <common:Description>Non-Machinable is not applicable and has been removed from package 1.</common:Description>
  107. </common:Alert>
  108. <common:Alert>
  109. <common:Code>110971</common:Code>
  110. <common:Description>Your invoice may vary from the displayed reference rates</common:Description>
  111. </common:Alert>
  112. <common:Alert>
  113. <common:Code>110920</common:Code>
  114. <common:Description>Ship To Address Classification is changed from Commercial to Residential</common:Description>
  115. </common:Alert>
  116. <common:TransactionReference>
  117. <common:CustomerContext>RATE Webservce</common:CustomerContext>
  118. </common:TransactionReference>
  119. </common:Response>
  120. <rate:RatedShipment>
  121. <rate:Service>
  122. <rate:Code>92</rate:Code>
  123. <rate:Description/>
  124. </rate:Service>
  125. <rate:RatedShipmentAlert>
  126. <rate:Code>112078</rate:Code>
  127. <rate:Description>Non-Machinable is not applicable and has been removed from package 1.</rate:Description>
  128. </rate:RatedShipmentAlert>
  129. <rate:RatedShipmentAlert>
  130. <rate:Code>110971</rate:Code>
  131. <rate:Description>Your invoice may vary from the displayed reference rates</rate:Description>
  132. </rate:RatedShipmentAlert>
  133. <rate:RatedShipmentAlert>
  134. <rate:Code>110920</rate:Code>
  135. <rate:Description>Ship To Address Classification is changed from Commercial to Residential</rate:Description>
  136. </rate:RatedShipmentAlert>
  137. <rate:BillingWeight>
  138. <rate:UnitOfMeasurement>
  139. <rate:Code>OZS</rate:Code>
  140. <rate:Description>Ounces</rate:Description>
  141. </rate:UnitOfMeasurement>
  142. <rate:Weight>6.0</rate:Weight>
  143. </rate:BillingWeight>
  144. <rate:TransportationCharges>
  145. <rate:CurrencyCode>USD</rate:CurrencyCode>
  146. <rate:MonetaryValue>8.59</rate:MonetaryValue>
  147. </rate:TransportationCharges>
  148. <rate:ServiceOptionsCharges>
  149. <rate:CurrencyCode>USD</rate:CurrencyCode>
  150. <rate:MonetaryValue>0.00</rate:MonetaryValue>
  151. </rate:ServiceOptionsCharges>
  152. <rate:TotalCharges>
  153. <rate:CurrencyCode>USD</rate:CurrencyCode>
  154. <rate:MonetaryValue>8.59</rate:MonetaryValue>
  155. </rate:TotalCharges>
  156. <rate:NegotiatedRateCharges>
  157. <rate:TotalCharge>
  158. <rate:CurrencyCode>USD</rate:CurrencyCode>
  159. <rate:MonetaryValue>6.44</rate:MonetaryValue>
  160. </rate:TotalCharge>
  161. </rate:NegotiatedRateCharges>
  162. <rate:RatedPackage>
  163. <rate:TransportationCharges>
  164. <rate:CurrencyCode>USD</rate:CurrencyCode>
  165. <rate:MonetaryValue>8.59</rate:MonetaryValue>
  166. </rate:TransportationCharges>
  167. <rate:ServiceOptionsCharges>
  168. <rate:CurrencyCode>USD</rate:CurrencyCode>
  169. <rate:MonetaryValue>0.00</rate:MonetaryValue>
  170. </rate:ServiceOptionsCharges>
  171. <rate:TotalCharges>
  172. <rate:CurrencyCode>USD</rate:CurrencyCode>
  173. <rate:MonetaryValue>8.59</rate:MonetaryValue>
  174. </rate:TotalCharges>
  175. <rate:Weight>5.6</rate:Weight>
  176. <rate:BillingWeight>
  177. <rate:UnitOfMeasurement>
  178. <rate:Code>OZS</rate:Code>
  179. <rate:Description>Ounces</rate:Description>
  180. </rate:UnitOfMeasurement>
  181. <rate:Weight>6.0</rate:Weight>
  182. </rate:BillingWeight>
  183. </rate:RatedPackage>
  184. </rate:RatedShipment>
  185. </rate:RateResponse>
  186. </soapenv:Body>
  187. </soapenv:Envelope>
  188. **********************************************************************************************
  189. Box 2 send
  190. <?xml version="1.0" encoding="UTF-8"?>
  191. <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">
  192. <env:Header>
  193. <wsse:Security>
  194. <wsse:UsernameToken>
  195. <wsse:Username> BORETECHUPS </wsse:Username>
  196. <wsse:Password> BTI11R7V1 </wsse:Password>
  197. </wsse:UsernameToken>
  198. <upssa:UPSServiceAccessToken>
  199. <upssa:AccessLicenseNumber> FD11111FFA644FA8 </upssa:AccessLicenseNumber>
  200. </upssa:UPSServiceAccessToken>
  201. </wsse:Security>
  202. </env:Header>
  203. <env:Body>
  204. <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">
  205. <common:Request>
  206. <common:RequestOption>Rate</common:RequestOption>
  207. <common:TransactionReference>
  208. <common:CustomerContext> RATE Webservce</common:CustomerContext>
  209. </common:TransactionReference>
  210. </common:Request>
  211. <rate:PickupType>
  212. <rate:Code>01</rate:Code>
  213. <rate:Description>Daily Pickup</rate:Description>
  214. </rate:PickupType>
  215. <rate:CustomerClassification>
  216. <rate:Code>01</rate:Code>
  217. <rate:Description>Classification</rate:Description>
  218. </rate:CustomerClassification>
  219. <rate:Shipment>
  220. <rate:Shipper>
  221. <rate:ShipperNumber> 11R7V1 </rate:ShipperNumber>
  222. <rate:Address>
  223. <rate:StateProvinceCode>PA</rate:StateProvinceCode>
  224. <rate:PostalCode>18951</rate:PostalCode>
  225. <rate:CountryCode>US</rate:CountryCode>
  226. </rate:Address>
  227. </rate:Shipper>
  228. <rate:ShipTo>
  229. <rate:Name>Name</rate:Name>
  230. <rate:Address>
  231. <rate:AddressLine> 920 Avent Meadows ln </rate:AddressLine>
  232. <rate:City> Holly Springs </rate:City>
  233. <rate:StateProvinceCode> NC </rate:StateProvinceCode>
  234. <rate:PostalCode>27540</rate:PostalCode>
  235. <rate:CountryCode>US</rate:CountryCode>
  236. </rate:Address>
  237. </rate:ShipTo>
  238. <rate:InvoiceLineTotal>
  239. <rate:CurrencyCode>USD</rate:CurrencyCode>
  240. <rate:MonetaryValue>54.99</rate:MonetaryValue>
  241. </rate:InvoiceLineTotal>
  242. <rate:Service>
  243. <rate:Code>93</rate:Code>
  244. <rate:Description>Parcel Select</rate:Description>
  245. </rate:Service>
  246. <rate:Package>
  247. <rate:PackagingType>
  248. <rate:Code>02</rate:Code>
  249. <rate:Description>Rate Shopping</rate:Description>
  250. </rate:PackagingType>
  251. <rate:Dimensions>
  252. <rate:UnitOfMeasurement>
  253. <rate:Code>IN</rate:Code>
  254. <rate:Description>inches</rate:Description>
  255. </rate:UnitOfMeasurement>
  256. <rate:Length>55</rate:Length>
  257. <rate:Width>3</rate:Width>
  258. <rate:Height>3</rate:Height>
  259. </rate:Dimensions>
  260. <rate:PackageWeight>
  261. <rate:UnitOfMeasurement>
  262. <rate:Code>LBS</rate:Code>
  263. <rate:Description>pounds</rate:Description>
  264. </rate:UnitOfMeasurement>
  265. <rate:Weight>3.85</rate:Weight>
  266. </rate:PackageWeight>
  267. <rate:PackageServiceOptions>
  268. <rate:NonMachineableIndicator />
  269. </rate:PackageServiceOptions>
  270. </rate:Package>
  271. <rate:ShipmentRatingOptions>
  272. <rate:NegotiatedRatesIndicator> 1 </rate:NegotiatedRatesIndicator>
  273. </rate:ShipmentRatingOptions>
  274. </rate:Shipment>
  275. </rate:RateRequest>
  276. </env:Body>
  277. </env:Envelope>
  278. *************************************************************************
  279. Box 2 receive
  280. <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
  281. <soapenv:Header/>
  282. <soapenv:Body>
  283. <rate:RateResponse xmlns:rate="http://www.ups.com/XMLSchema/XOLTWS/Rate/v1.1">
  284. <common:Response xmlns:common="http://www.ups.com/XMLSchema/XOLTWS/Common/v1.0">
  285. <common:ResponseStatus>
  286. <common:Code>1</common:Code>
  287. <common:Description>Success</common:Description>
  288. </common:ResponseStatus>
  289. <common:Alert>
  290. <common:Code>119001</common:Code>
  291. <common:Description>Additional Handling has automatically been set on Package 1.</common:Description>
  292. </common:Alert>
  293. <common:Alert>
  294. <common:Code>110971</common:Code>
  295. <common:Description>Your invoice may vary from the displayed reference rates</common:Description>
  296. </common:Alert>
  297. <common:Alert>
  298. <common:Code>110920</common:Code>
  299. <common:Description>Ship To Address Classification is changed from Commercial to Residential</common:Description>
  300. </common:Alert>
  301. <common:TransactionReference>
  302. <common:CustomerContext>RATE Webservce</common:CustomerContext>
  303. </common:TransactionReference>
  304. </common:Response>
  305. <rate:RatedShipment>
  306. <rate:Service>
  307. <rate:Code>93</rate:Code>
  308. <rate:Description/>
  309. </rate:Service>
  310. <rate:RatedShipmentAlert>
  311. <rate:Code>119001</rate:Code>
  312. <rate:Description>Additional Handling has automatically been set on Package 1.</rate:Description>
  313. </rate:RatedShipmentAlert>
  314. <rate:RatedShipmentAlert>
  315. <rate:Code>110971</rate:Code>
  316. <rate:Description>Your invoice may vary from the displayed reference rates</rate:Description>
  317. </rate:RatedShipmentAlert>
  318. <rate:RatedShipmentAlert>
  319. <rate:Code>110920</rate:Code>
  320. <rate:Description>Ship To Address Classification is changed from Commercial to Residential</rate:Description>
  321. </rate:RatedShipmentAlert>
  322. <rate:BillingWeight>
  323. <rate:UnitOfMeasurement>
  324. <rate:Code>LBS</rate:Code>
  325. <rate:Description>Pounds</rate:Description>
  326. </rate:UnitOfMeasurement>
  327. <rate:Weight>4.0</rate:Weight>
  328. </rate:BillingWeight>
  329. <rate:TransportationCharges>
  330. <rate:CurrencyCode>USD</rate:CurrencyCode>
  331. <rate:MonetaryValue>10.83</rate:MonetaryValue>
  332. </rate:TransportationCharges>
  333. <rate:ServiceOptionsCharges>
  334. <rate:CurrencyCode>USD</rate:CurrencyCode>
  335. <rate:MonetaryValue>10.85</rate:MonetaryValue>
  336. </rate:ServiceOptionsCharges>
  337. <rate:TotalCharges>
  338. <rate:CurrencyCode>USD</rate:CurrencyCode>
  339. <rate:MonetaryValue>21.68</rate:MonetaryValue>
  340. </rate:TotalCharges>
  341. <rate:NegotiatedRateCharges>
  342. <rate:TotalCharge>
  343. <rate:CurrencyCode>USD</rate:CurrencyCode>
  344. <rate:MonetaryValue>19.52</rate:MonetaryValue>
  345. </rate:TotalCharge>
  346. </rate:NegotiatedRateCharges>
  347. <rate:RatedPackage>
  348. <rate:TransportationCharges>
  349. <rate:CurrencyCode>USD</rate:CurrencyCode>
  350. <rate:MonetaryValue>10.83</rate:MonetaryValue>
  351. </rate:TransportationCharges>
  352. <rate:ServiceOptionsCharges>
  353. <rate:CurrencyCode>USD</rate:CurrencyCode>
  354. <rate:MonetaryValue>10.85</rate:MonetaryValue>
  355. </rate:ServiceOptionsCharges>
  356. <rate:TotalCharges>
  357. <rate:CurrencyCode>USD</rate:CurrencyCode>
  358. <rate:MonetaryValue>21.68</rate:MonetaryValue>
  359. </rate:TotalCharges>
  360. <rate:Weight>3.9</rate:Weight>
  361. <rate:BillingWeight>
  362. <rate:UnitOfMeasurement>
  363. <rate:Code>LBS</rate:Code>
  364. <rate:Description>Pounds</rate:Description>
  365. </rate:UnitOfMeasurement>
  366. <rate:Weight>4.0</rate:Weight>
  367. </rate:BillingWeight>
  368. </rate:RatedPackage>
  369. </rate:RatedShipment>
  370. </rate:RateResponse>
  371. </soapenv:Body>
  372. </soapenv:Envelope>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement