Page 1 of 1

What might be PHP SOAP Error for this code?

Posted: Wed Jul 02, 2008 12:26 am
by veena.upadhya
Hello All,

<?php
$wsdl = "http://demo.mchek.com/mChekPaymentGatew ... teway?wsdl";
$id = "16577";
$cliente = new SoapClient($wsdl);
$vem = $cliente->__call('checkStatus',array($id));
print $vem;
?>

Fatal error: Uncaught SoapFault exception: [soap:Client] Not enough message parts were received for the operation. in C:\Program Files\EasyPHP 2.0b1\www\examples\soap\test4.php:5 Stack trace: #0 C:\Program Files\EasyPHP 2.0b1\www\examples\soap\test4.php(5): SoapClient->__call('checkStatus', Array) #1 {main} thrown in C:\Program Files\EasyPHP 2.0b1\www\examples\soap\test4.php on line 5

Can any body solve this error plz?

Re: What might be PHP SOAP Error for this code?

Posted: Wed Jul 02, 2008 12:43 am
by John Cartwright
This may or may not be related to your error message, but you should not directly be calling the __call() method. Instead, you should be doing

Code: Select all

<?php
$wsdl = "http://demo.mchek.com/mChekPaymentGateway/services/mChekPaymentGateway?wsdl";
$id = "16577";
$cliente = new SoapClient($wsdl);
$vem = $cliente->checkStatus($id);
print $vem;
?>

Re: What might be PHP SOAP Error for this code?

Posted: Wed Jul 02, 2008 5:05 am
by veena.upadhya
Jcart wrote:This may or may not be related to your error message, but you should not directly be calling the __call() method. Instead, you should be doing

Code: Select all

<?php
$wsdl = "http://demo.mchek.com/mChekPaymentGateway/services/mChekPaymentGateway?wsdl";
$id = "16577";
$cliente = new SoapClient($wsdl);
$vem = $cliente->checkStatus($id);
print $vem;
?>
hmm..thats not an issue only nuosoap extension can directly call checkStatus..
however u can copy and paste the code which i have written and then test it.
plz help me to resolve this problem.

Re: What might be PHP SOAP Error for this code?

Posted: Wed Jul 02, 2008 2:28 pm
by John Cartwright
veena.upadhya wrote:
Jcart wrote:This may or may not be related to your error message, but you should not directly be calling the __call() method. Instead, you should be doing

Code: Select all

<?php
$wsdl = "http://demo.mchek.com/mChekPaymentGateway/services/mChekPaymentGateway?wsdl";
$id = "16577";
$cliente = new SoapClient($wsdl);
$vem = $cliente->checkStatus($id);
print $vem;
?>
hmm..thats not an issue only nuosoap extension can directly call checkStatus..
however u can copy and paste the code which i have written and then test it.
plz help me to resolve this problem.
Thats incorrect. Try it.

As far as your problem goes, I'm not familiar with the API. Are you sending all the required parameters?