Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
Photo

What might be PHP SOAP Error for this code?


  • Please log in to reply

#1
Veena Upadhya

Veena Upadhya

    New Member

  • Member
  • Pip
  • 3 posts
Hello All,

<?php
$wsdl = "http://demo.mchek.co...tGateway?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?
  • 0

Advertisements


#2
Metallica

Metallica

    Spyware Veteran

  • GeekU Moderator
  • 33,101 posts
Is this any help?

http://webservices.c...int.php?id=1306

I'm not sure if anyone will be abl to figure out what goes wrong without looking at test4.php
At least looks to me as if that is where the error occurs.
  • 0

#3
Veena Upadhya

Veena Upadhya

    New Member

  • Topic Starter
  • Member
  • Pip
  • 3 posts

Is this any help?

http://webservices.c...int.php?id=1306

I'm not sure if anyone will be abl to figure out what goes wrong without looking at test4.php
At least looks to me as if that is where the error occurs.


thanks for the help..
I am able to connect other wsdl through php code
but the one I posted is placed in test4.php and is not working and giving that error :) .
u can paste the same code and give some name and test it.
plz help me.
  • 0

#4
Metallica

Metallica

    Spyware Veteran

  • GeekU Moderator
  • 33,101 posts
From what I gathered at the link I posted, the error is caused by the array not having the proper number of elements.

But I could be barking up the wrong tree.
  • 0

#5
Veena Upadhya

Veena Upadhya

    New Member

  • Topic Starter
  • Member
  • Pip
  • 3 posts

From what I gathered at the link I posted, the error is caused by the array not having the proper number of elements.

But I could be barking up the wrong tree.

Hi thanks again for your support it was just a minor mistake i missed in0 as index to that array.
Now its working fine :)
  • 0

#6
Metallica

Metallica

    Spyware Veteran

  • GeekU Moderator
  • 33,101 posts
Glad to hear you figured it out. :)
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP