unkwntech Posted July 21, 2010 Share Posted July 21, 2010 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 /> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.