Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
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
  • 31,676 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
  • 31,676 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
  • 31,676 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