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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.