Advertisement
Guest User

Untitled

a guest
Apr 5th, 2020
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 8.82 KB | None | 0 0
  1. Received response [
  2. <?xml version='1.0' encoding='utf-8'?>
  3. <soap:Envelope
  4.    xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  5.     <soap:Body>
  6.         <m:CalcResponse
  7.            xmlns:m="http://www.cargo3.ru">
  8.             <m:return
  9.                xmlns:xs="http://www.w3.org/2001/XMLSchema"
  10.                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  11.                 <m:Key>Calc</m:Key>
  12.                 <m:List>
  13.                     <m:Key>Destination</m:Key>
  14.                     <m:Fields>
  15.                         <m:Key>SenderGeography</m:Key>
  16.                         <m:Value xsi:type="xs:string">d9881bba-442b-11dc-9497-0015170f8c09</m:Value>
  17.                         <m:ValueType>string</m:ValueType>
  18.                     </m:Fields>
  19.                     <m:Fields>
  20.                         <m:Key>RecipientGeography</m:Key>
  21.                         <m:Value xsi:type="xs:string">d358f7d0-442b-11dc-9497-0015170f8c09</m:Value>
  22.                         <m:ValueType>string</m:ValueType>
  23.                     </m:Fields>
  24.                     <m:Fields>
  25.                         <m:Key>Urgency</m:Key>
  26.                         <m:Value xsi:type="xs:string">18c4f207-458b-11dc-9497-0015170f8c09</m:Value>
  27.                         <m:ValueType>string</m:ValueType>
  28.                     </m:Fields>
  29.                     <m:Fields>
  30.                         <m:Key>TypeOfCargo</m:Key>
  31.                         <m:Value xsi:type="xs:string">4aab1fc6-fc2b-473a-8728-58bcd4ff79ba</m:Value>
  32.                         <m:ValueType>string</m:ValueType>
  33.                     </m:Fields>
  34.                     <m:Fields>
  35.                         <m:Key>Weight</m:Key>
  36.                         <m:Value xsi:type="xs:decimal">0.4</m:Value>
  37.                         <m:ValueType>float</m:ValueType>
  38.                     </m:Fields>
  39.                     <m:Fields>
  40.                         <m:Key>Qty</m:Key>
  41.                         <m:Value xsi:type="xs:decimal">1</m:Value>
  42.                         <m:ValueType>float</m:ValueType>
  43.                     </m:Fields>
  44.                     <m:List>
  45.                         <m:Key>Tariff</m:Key>
  46.                         <m:Value xsi:type="xs:string">5a8ec125-92ac-11dc-86de-0015170f8c09</m:Value>
  47.                         <m:Fields>
  48.                             <m:Key>Total</m:Key>
  49.                             <m:Value xsi:type="xs:decimal">782.5419</m:Value>
  50.                             <m:ValueType>float</m:ValueType>
  51.                         </m:Fields>
  52.                         <m:Fields>
  53.                             <m:Key>Currency</m:Key>
  54.                             <m:Value xsi:type="xs:string">ff3f7c38-4430-11dc-9497-0015170f8c09</m:Value>
  55.                             <m:ValueType>string</m:ValueType>
  56.                         </m:Fields>
  57.                         <m:Fields>
  58.                             <m:Key>Service</m:Key>
  59.                             <m:Value xsi:type="xs:string">Московская обл.</m:Value>
  60.                             <m:ValueType>string</m:ValueType>
  61.                         </m:Fields>
  62.                         <m:Fields>
  63.                             <m:Key>Urgency</m:Key>
  64.                             <m:Value xsi:type="xs:string">18c4f207-458b-11dc-9497-0015170f8c09</m:Value>
  65.                             <m:ValueType>string</m:ValueType>
  66.                         </m:Fields>
  67.                         <m:Fields>
  68.                             <m:Key>UrgencyName</m:Key>
  69.                             <m:Value xsi:type="xs:string">Срочная</m:Value>
  70.                             <m:ValueType>string</m:ValueType>
  71.                         </m:Fields>
  72.                         <m:Fields>
  73.                             <m:Key>MinPeriod</m:Key>
  74.                             <m:Value xsi:type="xs:decimal">2</m:Value>
  75.                             <m:ValueType>float</m:ValueType>
  76.                         </m:Fields>
  77.                         <m:Fields>
  78.                             <m:Key>MaxPeriod</m:Key>
  79.                             <m:Value xsi:type="xs:decimal">4</m:Value>
  80.                             <m:ValueType>float</m:ValueType>
  81.                         </m:Fields>
  82.                         <m:Fields>
  83.                             <m:Key>UrgencyDescription</m:Key>
  84.                             <m:Value xsi:type="xs:string"/>
  85.                             <m:ValueType>string</m:ValueType>
  86.                         </m:Fields>
  87.                         <m:Fields>
  88.                             <m:Key>COD</m:Key>
  89.                             <m:Value xsi:type="xs:boolean">true</m:Value>
  90.                             <m:ValueType>boolean</m:ValueType>
  91.                         </m:Fields>
  92.                         <m:Fields>
  93.                             <m:Key>Return</m:Key>
  94.                             <m:Value xsi:type="xs:boolean">true</m:Value>
  95.                             <m:ValueType>boolean</m:ValueType>
  96.                         </m:Fields>
  97.                         <m:Fields>
  98.                             <m:Key>Agent</m:Key>
  99.                             <m:Value xsi:type="xs:string"/>
  100.                             <m:ValueType>string</m:ValueType>
  101.                         </m:Fields>
  102.                     </m:List>
  103.                 </m:List>
  104.             </m:return>
  105.         </m:CalcResponse>
  106.     </soap:Body>
  107. </soap:Envelope>] for request [
  108. <?xml version='1.0' encoding='UTF-8'?>
  109. <soapenv:Envelope
  110.    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
  111.     <soapenv:Header/>
  112.     <soapenv:Body>
  113.         <Calc
  114.            xmlns="http://www.cargo3.ru">
  115.             <login>ФОРВАРД ЛИЗИНГ</login>
  116.             <password>*****</password>
  117.             <data>
  118.                 <Key>Destinations</Key>
  119.                 <List>
  120.                     <Key>Destination</Key>
  121.                     <Fields>
  122.                         <Key>SenderGeography</Key>
  123.                         <Value
  124.                            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  125.                            xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">d9881bba-442b-11dc-9497-0015170f8c09
  126.                         </Value>
  127.                         <ValueType>string</ValueType>
  128.                     </Fields>
  129.                     <Fields>
  130.                         <Key>RecipientGeography</Key>
  131.                         <Value
  132.                            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  133.                            xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">d358f7d0-442b-11dc-9497-0015170f8c09
  134.                         </Value>
  135.                         <ValueType>string</ValueType>
  136.                     </Fields>
  137.                     <Fields>
  138.                         <Key>TypeOfCargo</Key>
  139.                         <Value
  140.                            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  141.                            xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">4aab1fc6-fc2b-473a-8728-58bcd4ff79ba
  142.                         </Value>
  143.                         <ValueType>string</ValueType>
  144.                     </Fields>
  145.                     <Fields>
  146.                         <Key>Urgency</Key>
  147.                         <Value
  148.                            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  149.                            xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">18c4f207-458b-11dc-9497-0015170f8c09
  150.                         </Value>
  151.                         <ValueType>string</ValueType>
  152.                     </Fields>
  153.                     <Fields>
  154.                         <Key>Weight</Key>
  155.                         <Value
  156.                            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  157.                            xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:float">0.4
  158.                         </Value>
  159.                         <ValueType>float</ValueType>
  160.                     </Fields>
  161.                     <Fields>
  162.                         <Key>Qty</Key>
  163.                         <Value
  164.                            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  165.                            xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:int">1
  166.                         </Value>
  167.                         <ValueType>int</ValueType>
  168.                     </Fields>
  169.                     <Fields>
  170.                         <Key>DeliveryType</Key>
  171.                         <Value
  172.                            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  173.                            xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:decimal">1
  174.                         </Value>
  175.                         <ValueType>decimal</ValueType>
  176.                     </Fields>
  177.                 </List>
  178.             </data>
  179.             <parameters>
  180.                 <Key>Parameters</Key>
  181.             </parameters>
  182.         </Calc>
  183.     </soapenv:Body>
  184. </soapenv:Envelope>]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement