H
H
hottab_12020-09-27 12:09:36
SOAP
hottab_1, 2020-09-27 12:09:36

SOAP request and response, how?

Good afternoon!
The question seems very stupid, but I just can’t find information on the Internet, how can I make a SOAP request and get a response to it?
Here is an example request:

<soap:Envelope xmlns:ns1="http://www.cargo3.ru" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
   <soap:Header/>
   <soap:Body>
      <ns1:Calc>
         <ns1:login>login</ns1:login>
         <ns1:password>password</ns1:password>
         <ns1:data>
            <ns1:Key>Destinations</ns1:Key>
            <ns1:List>
               <ns1:Key>Destination</ns1:Key>
               <ns1:Fields>
                  <ns1:Key>SenderGeography</ns1:Key>
                  <ns1:Value>cf862f56-442d-11dc-9497-0015170f8c09</ns1:Value>
                  <ns1:ValueType>string</ns1:ValueType>
               </ns1:Fields>
               <ns1:Fields>
                  <ns1:Key>RecipientGeography</ns1:Key>
                  <ns1:Value>cf862f56-442d-11dc-9497-0015170f8c09</ns1:Value>
                  <ns1:ValueType>string</ns1:ValueType>
               </ns1:Fields>
               <ns1:Fields>
                  <ns1:Key>TypeOfCargo</ns1:Key>
                  <ns1:Value>4aab1fc6-fc2b-473a-8728-58bcd4ff79ba</ns1:Value>
                  <ns1:ValueType>string</ns1:ValueType>
               </ns1:Fields>
               <ns1:Fields>
                  <ns1:Key>Urgency</ns1:Key>
                  <ns1:Value>18c4f209-458b-11dc-9497-0015170f8c09</ns1:Value>
                  <ns1:ValueType>string</ns1:ValueType>
               </ns1:Fields>
               <ns1:Fields>
                  <ns1:Key>Weight</ns1:Key>
                  <ns1:Value>2.00</ns1:Value>
                  <ns1:ValueType>float</ns1:ValueType>
               </ns1:Fields>
               <ns1:Fields>
                  <ns1:Key>Qty</ns1:Key>
                  <ns1:Value>1</ns1:Value>
                  <ns1:ValueType>int</ns1:ValueType>
               </ns1:Fields>
               <ns1:Fields>
                  <ns1:Key>DeliveryType</ns1:Key>
                  <ns1:Value>1</ns1:Value>
                  <ns1:ValueType>decimal</ns1:ValueType>
               </ns1:Fields>
            </ns1:List>
         </ns1:data>
         <ns1:parameters>
            <ns1:Key>Parameters</ns1:Key>
         </ns1:parameters>
      </ns1:Calc>
   </soap:Body>
</soap:Envelope>


Through what and how to implement it correctly and get an answer? Tell me please?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question