Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2014
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.20 KB | None | 0 0
  1. <TBB>
  2. <Shipment>
  3. <Header>
  4. <RequestType>Add</RequestType>
  5. <SourceReferenceNumber />
  6. <ServiceType>LTL</ServiceType>
  7. <ShipmentMethod>LTL</ShipmentMethod>
  8. <ScheduleShipment>N</ScheduleShipment>
  9. <GenerateRates>Y</GenerateRates>
  10. <AutoSelectCarrier>Y</AutoSelectCarrier>
  11. <GeneratePRONumber>N</GeneratePRONumber>
  12. <PersonCalling>CompanyName</PersonCalling>
  13. <PhoneNumber>380663687639</PhoneNumber>
  14. <EmailAddress>tt@bb.com</EmailAddress>
  15. <SpecialRequirements />
  16. <Prepaid>Y</Prepaid>
  17. <FreightDirection>Drop</FreightDirection>
  18. <ShipDate>10/11/2014</ShipDate>
  19. <DeliveryDate>10/11/2014</DeliveryDate>
  20. <CallCarrierForPickup>N</CallCarrierForPickup>
  21. <ClientReference>SOKey12345</ClientReference>
  22. </Header>
  23. <Accessorials>
  24. <NotificationRequired>N</NotificationRequired>
  25. <InsideDelivery>N</InsideDelivery>
  26. </Accessorials>
  27. <Address>
  28. <Shipper>
  29. <SiteType>Business</SiteType>
  30. <LiftgateRequired>N</LiftgateRequired>
  31. <Name>Test company</Name>
  32. <CountryCode>US</CountryCode>
  33. <PostalCode>31415</PostalCode>
  34. </Shipper>
  35. <Consignee>
  36. <SiteType>Business</SiteType>
  37. <LiftgateRequired>N</LiftgateRequired>
  38. <Name>TEST DESTINATION</Name>
  39. <CountryCode>US</CountryCode>
  40. <PostalCode>35007</PostalCode>
  41. </Consignee>
  42. </Address>
  43. <Commodities>
  44. <Commodity>
  45. <DoubleStack>N</DoubleStack>
  46. <NumberOfSkids>00012</NumberOfSkids>
  47. <NumberOfPieces>3</NumberOfPieces>
  48. <Weight>1500</Weight>
  49. <CommodityName>Big and Tall Anti-Microbial Vinyl Stack Chair with Arms</CommodityName>
  50. <ClassNumber>150</ClassNumber>
  51. <UnitOfMeasure />
  52. <UnitOfWeight>POUNDS</UnitOfWeight>
  53. <PieceType>CARTONS</PieceType>
  54. </Commodity>
  55. </Commodities>
  56. </Shipment>
  57. <Response>
  58. <TBBRateQuoteID>3736114</TBBRateQuoteID>
  59. <SelectedCarrier>
  60. <CarrierScac>WTVA</CarrierScac>
  61. <CarrierName>WILSON TRUCKING CORP</CarrierName>
  62. <CarrierAmount>404.15</CarrierAmount>
  63. <CarrierAccessorialAmount>67.36</CarrierAccessorialAmount>
  64. <CarrierOriginTerminal>
  65. <Name>SAVANNAH</Name>
  66. <Address>242 JIMMY DELOACH PARKWAY</Address>
  67. <City>SAVANNAH</City>
  68. <State>GA</State>
  69. <Country>US</Country>
  70. <PostalCode>31422</PostalCode>
  71. <Contact>ERIC WALKER</Contact>
  72. <ContactTitle>TERMINAL MANAGER</ContactTitle>
  73. <Phone>877-835-6174</Phone>
  74. <Fax>912-963-0084</Fax>
  75. <Note>912-963-0024</Note>
  76. </CarrierOriginTerminal>
  77. <CarrierDestinationTerminal>
  78. <Name>BIRMINGHAM</Name>
  79. <Address>540 REPUBLIC CIRCLE</Address>
  80. <City>BIRMINGHAM</City>
  81. <State>AL</State>
  82. <Country>US</Country>
  83. <PostalCode>35214</PostalCode>
  84. <Contact>GREG FUTRELLE</Contact>
  85. <ContactTitle>TERMINAL MANAGER</ContactTitle>
  86. <Phone>877-202-6564</Phone>
  87. <Fax>205-808-0999</Fax>
  88. <Note>205-808-8700</Note>
  89. </CarrierDestinationTerminal>
  90. <CommodityRates>
  91. List of Commodity Rates
  92. <CommodityQuote>
  93. <ClientProductCode />
  94. <CommodityName>BIG AND TALL ANTI-MICROBIAL VINYL STACK CHAIR WITH ARMS</CommodityName>
  95. <NumberOfPieces>3</NumberOfPieces>
  96. <Weight>1500</Weight>
  97. <Rate>0.00</Rate>
  98. <ChargeAmount>0.00</ChargeAmount>
  99. <PerItemCharge>0.00</PerItemCharge>
  100. </CommodityQuote>
  101. </CommodityRates>
  102. </SelectedCarrier>
  103. <CarrierRates>
  104. List of Carrier Rates
  105. <CarrierQuote>
  106. <CarrierScac>WTVA</CarrierScac>
  107. <CarrierName>WILSON TRUCKING CORP</CarrierName>
  108. <ChargeAmount>404.15</ChargeAmount>
  109. <NumberOfDays>1</NumberOfDays>
  110. </CarrierQuote>
  111. <CarrierQuote>
  112. <CarrierScac>UPGF</CarrierScac>
  113. <CarrierName>UPS FREIGHT</CarrierName>
  114. <ChargeAmount>586.56</ChargeAmount>
  115. <NumberOfDays>1</NumberOfDays>
  116. </CarrierQuote>
  117. <CarrierQuote>
  118. <CarrierScac>CNWY</CarrierScac>
  119. <CarrierName>CON-WAY FREIGHT</CarrierName>
  120. <ChargeAmount>617.83</ChargeAmount>
  121. <NumberOfDays>1</NumberOfDays>
  122. </CarrierQuote>
  123. </CarrierRates>
  124. <RequestDate>Wed Jul 23 09:53:28 EDT 2014</RequestDate>
  125. </Response>
  126. </TBB>
  127.  
  128.  
  129. $xml = new SimpleXMLElement($tbb_response);
  130. print_r($xml->Response);
  131.  
  132. SimpleXMLElement Object
  133. (
  134. [TBBRateQuoteID] => 3736114
  135. [SelectedCarrier] => SimpleXMLElement Object
  136. (
  137. [CarrierScac] => WTVA
  138. [CarrierName] => WILSON TRUCKING CORP
  139. [CarrierAmount] => 404.15
  140. [CarrierAccessorialAmount] => 67.36
  141. [CarrierOriginTerminal] => SimpleXMLElement Object
  142. (
  143. [Name] => SAVANNAH
  144. [Address] => 242 JIMMY DELOACH PARKWAY
  145. [City] => SAVANNAH
  146. [State] => GA
  147. [Country] => US
  148. [PostalCode] => 31422
  149. [Contact] => ERIC WALKER
  150. [ContactTitle] => TERMINAL MANAGER
  151. [Phone] => 877-835-6174
  152. [Fax] => 912-963-0084
  153. [Note] => 912-963-0024
  154. )
  155.  
  156. [CarrierDestinationTerminal] => SimpleXMLElement Object
  157. (
  158. [Name] => BIRMINGHAM
  159. [Address] => 540 REPUBLIC CIRCLE
  160. [City] => BIRMINGHAM
  161. [State] => AL
  162. [Country] => US
  163. [PostalCode] => 35214
  164. [Contact] => GREG FUTRELLE
  165. [ContactTitle] => TERMINAL MANAGER
  166. [Phone] => 877-202-6564
  167. [Fax] => 205-808-0999
  168. [Note] => 205-808-8700
  169. )
  170.  
  171. [CommodityRates] =>
  172. List of Commodity Rates
  173.  
  174.  
  175. )
  176.  
  177. [CarrierRates] =>
  178. List of Carrier Rates
  179.  
  180.  
  181.  
  182.  
  183. [RequestDate] => Wed Jul 23 10:02:12 EDT 2014
  184. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement