Jump to content

Trouble with SoapClient


unkwntech

Recommended Posts

I have the following code:

$client = new SoapClient($this->config->host . $this->config->path);

		$v = $client->__call('getStoreInfo', array('ccpStoreId'=>'f710868', 'requestDate'=>date('d/m/Y'), 'requestId'=>rand(1,9999)));

		var_dump($v);

 

i know that the variables in the SoapClient are correct, and that the data being bassed to __call() is correct, and that the function getStoreInfo on the API takes 3 arguments with the keys in the array.  However all that I get back is either an error or null. The definition for this function looks like this:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="CLIPPED">
   <soapenv:Header/>
   <soapenv:Body>
      <ser:getStoreInfo>
         <ser:in0>
            <!--Optional:-->
            <ser:ccpStoreId>?</ser:ccpStoreId>
            <!--Optional:-->
            <ser:requestDate>?</ser:requestDate>
            <!--Optional:-->
            <ser:requestId>?</ser:requestId>
         </ser:in0>
      </ser:getStoreInfo>
   </soapenv:Body>
</soapenv:Envelope>

 

 

 

 

<br />

<b>Fatal error</b>:  Uncaught SoapFault exception: [soap:Client] Not enough message parts were received for the operation. in /var/www/public_html/core/classes/mis.class.php:77

Stack trace:

#0 /var/www/public_html/core/classes/mis.class.php(77): SoapClient->__call('getStoreInfo', Array)

#1 /var/www/public_html/core/classes/mis.class.php(148): OMIS->sendRequest('http://75.126.8...', 80, '/servic...', '<soapenv:Envelo...')

#2 /var/www/public_html/core/classes/mis.class.php(184): MIS->getStoreInfo('f7108812-9bd7-4...')

#3 {main}

  thrown in <b>/var/www/public_html/core/classes/mis.class.php</b> on line <b>77</b><br />

Link to comment
https://forums.phpfreaks.com/topic/208448-trouble-with-soapclient/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.