Click here to Skip to main content
15,112,667 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hello everyone. I have tried numerous ways to make this soap envelope into a php file that will function on my site. I have tried both cURL and soap client code with no luck. Any help would be great.

Please note:

There is a authentication header.

HTML
<soapenv:envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
                  xmlns:ltl="https://webservices.averittexpress.com/LTLRateQuoteService">
    <soapenv:header xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
                    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <ns:authnheader soapenv:mustunderstand="0" xmlns:ns="http://webservices.averittexpress.com/authn">
            <username>3364982661</username>
            <password>ubw1910</password>
        </ns:authnheader>
    </soapenv:header>
    <soapenv:body>
    <ltl:getltlrate >

         <!--Optional:-->

         <arg0>

            <!--Optional:-->

            

            <!--Optional:-->

            <ltl:accountnumber>0781664</ltl:accountnumber>

            <!--Optional:-->

            

            <!--Optional:-->

            <ltl:origincity>Randleman</ltl:origincity><ltl:originstate>NC</ltl:originstate>

            <!--Optional:-->

            <ltl:originzip>27317</ltl:originzip>

            <!--Optional:-->

            <ltl:destinationcity>Miami</ltl:destinationcity>

            <!--Optional:-->

            <ltl:destinationstate>FL</ltl:destinationstate>

            <!--Optional:-->

            <ltl:destinationzip>33101</ltl:destinationzip>

            <!--Optional:-->

            <ltl:shipdate>01/21/2015</ltl:shipdate><ltl:customertype>Shipper</ltl:customertype>

            <!--Optional:-->

            

            <!--Optional:-->

            <ltl:paymenttype>Prepaid</ltl:paymenttype><ltl:shipmentinfo>

               <!--Optional:-->

               

               <!--Optional:-->

               <ltl:numhandlingunits></ltl:numhandlingunits>

               <!--Optional:-->

               <ltl:cubicfeet></ltl:cubicfeet>

               <!--Zero or more repetitions:-->

               <ltl:items>

                  <!--Optional:-->

                  

                  <!--Optional:-->

                  <ltl:shipmentclass>60</ltl:shipmentclass>

                  <!--Optional:-->

                  <ltl:shipmentweight>500</ltl:shipmentweight><ltl:units></ltl:units>

                  <!--Optional:-->

                  <ltl:description></ltl:description>

                  <!--Optional:-->

                  <ltl:nmfcnumber></ltl:nmfcnumber>

                  <!--Optional:-->

                  <ltl:nmfcsubnumber></ltl:nmfcsubnumber>

               </ltl:items>

               <!--Optional:-->

               <ltl:totalitem></ltl:totalitem>

               <!--Optional:-->

               <ltl:totalweight></ltl:totalweight>

               <!--Zero or more repetitions:-->

               <ltl:accessorial>

                  <ltl:arrivalnotify>true</ltl:arrivalnotify>

                  <ltl:conventioncenterdelivery>false</ltl:conventioncenterdelivery>

                  <ltl:constructionsitedelivery>false</ltl:constructionsitedelivery>

                  <ltl:insidedelivery>false</ltl:insidedelivery>

                  <ltl:liftgate>false</ltl:liftgate>

                  <ltl:hazmat>false</ltl:hazmat>

                  <ltl:residentialdelivery>false</ltl:residentialdelivery>

                  <ltl:non-commercialpickupdelivery>false</ltl:non-commercialpickupdelivery>

                  <ltl:standardltlguarantee>false</ltl:standardltlguarantee>

                  <ltl:securityinspection>false</ltl:securityinspection>

               </ltl:accessorial>

            </ltl:shipmentinfo>

         </arg0>

      </ltl:getltlrate>

   </soapenv:body></soapenv:envelope>
Posted
Updated 21-Jan-15 19:00pm
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900