Re: [SOAP] Deserialization problem
| From: | Andrey Tarassov | Date: | Sun, 25 Apr 2004 16:11:41 +0000 |
| Subject: | Re: [SOAP] Deserialization problem | ||
| References: | 1 | Groups: | php.soap |
| Request: | Send a blank email to php-soap+get-1502@lists.php.net to get a copy of this message | ||
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