Re: Deserialization problem

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

 



I managed to solve the problem myself. It turned out that I incorrectly deployed the service without including some types matching information and that caused the problem.

Now everything seems to work.

Best wishes,

Andrey

Andrey Tarassov wrote:
Hi!

I am new to SOAP technologies and am trying to find out more about them. I have made a simple web service in Java and tried to write a small client in PHP. I tried two variants: SOAP support included in PHP5 and nusoap library, but in both cases I get the following error message when I try to call a method of my web service:

Server.userException: org.xml.sax.SAXException: Deserializing parameter 'customerDetails': could not find deserializer for type {http://isap.tarassov.net}CustomerDetailsType

In the client I use the following code:

$customer = array('name' => "Andrey");

$client = new SoapClient("mywsdl");
// This works
$client->searchTickets(null, null);
// And this causes an exception
$client->searchTickets(null, $customer);


As I understand the problem is with server not being able to deserialize the provided data. My question is: does this have anythign to do with client-side (PHP) or is this rather a problem with the implementation of the web service?


Thanks,

Andrey


-- PHP Soap Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


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

  Powered by Linux