Re: PHP SOAP - Extreme newbie questions :/

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Apr 1, 2010 at 7:47 AM, lmhelp2 <lea.massiot@ign.fr> wrote:

>
> Hi,
>
> Thank you for your answer :-).
> (Apparently, you didn't send your message to the mailing list...)
>
> Ok some typos on my part the three attempts I meant were:

$stockprice = $c->__call("getStockQuote", array("symbol" => "ABC"));
> $stockprice = $c->getStockQuote(array("symbol" => "ABC"));
> $stockprice = $c->getStockQuote("ABC");
>

That being said, the error in the first case seemed to have been because of
an error on the server end. In other words, the client call went out to the
server, and the server returned a soap fault due to a problem somewhere in
your code.
Can you try the following:


   1. Call your service using soap-ui
   2. Call your service with fiddler running to get the raw HTTP response
   3. try/catch around your client and print_r the exception object.
   4. try/catch in your server method call and return -1 if any error
   occurs.

[Index of Archives]     [PHP Home]     [PHP Users]     [Kernel Newbies]     [PHP Database]     [Yosemite]

  Powered by Linux