Note that there are some explanatory texts on larger screens.

plurals
  1. POSoap API integration in PHP: SoapClient Error
    primarykey
    data
    text
    <p>When I use the XML in sopaUI the results are coming out fine, but when I use the following php code the the result comes out blank and I get this error: <code>Fatal error: Uncaught SoapFault exception: [soap:Server] System.Web.Services.Protocols.SoapException: Server was unable to process request. ---&gt; System.NullReferenceException: Object reference not set to an instance of an object. at Saia.Presentation</code>. I think the problem is in the Soap header or something because when I comment out the parameters there's no change in the result.</p> <p>Link from where I got the wsdl file and schema: <a href="http://www.saiasecure.com/webservice/pickup/n_Create.asp" rel="nofollow">http://www.saiasecure.com/webservice/pickup/n_Create.asp</a></p> <p> <pre><code>$client = new SoapClient("http://www.saiasecure.com/webservice/pickup/soap.asmx?wsdl",array( 'trace' =&gt; 1, 'exceptions' =&gt; true,'features' =&gt; SOAP_SINGLE_ELEMENT_ARRAYS, )); $params = array("UserID" =&gt; '*******', "Password" =&gt; '*****', "TestMode" =&gt; "Y", "AccountNumber" =&gt; '******', "CompanyName" =&gt; 'TESTING NAME', "Street" =&gt; 'TESTING STREET', "Box" =&gt; 'TESTING BOX', "City" =&gt; 'LOS ANGELES', "State" =&gt; 'CA', "Zipcode" =&gt; '90001', "ContactName" =&gt; 'TESTING CONTACT', "ContactPhone" =&gt; '1234567890', "PickupDate" =&gt; '2013-09-24', "ReadyTime" =&gt; '13:00:00', "CloseTime" =&gt; '17:00:00', "SpecialInstructions" =&gt; 'Nothing', "Details" =&gt; array("DetailItem" =&gt; array("DestinationZipcode" =&gt; '70364', "Pieces" =&gt; '5', "Package" =&gt; 'SK',"Weight" =&gt; '100', "Freezable" =&gt; 'N') )); //print('&lt;pre&gt;');print_r($params); $return = $client-&gt;Create($params); </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload