Re: [SOAP] Problem with encoding ?
| From: | Jean-Claude CHRISTOPHE | Date: | Thu, 06 Aug 2015 13:45:18 +0000 |
| Subject: | Re: [SOAP] Problem with encoding ? | ||
| References: | 1 2 | Groups: | php.soap |
| Request: | Send a blank email to php-soap+get-3411@lists.php.net to get a copy of this message | ||
Hi Mario,
Yes, but I think the problem is not really the charset encoding but the data encoding ? I mean the "SOAP-ENC:Struct"
If the encoding is Array, it seems to work.
Regards,
JC
Le 2015-08-06 15:37, Mario Brandt a écrit :
Hi JC, does service.php send a correct content type application/xml; charset=utf-8 ? Cheers Mario On 6 August 2015 at 14:21, Jean-Claude CHRISTOPHE <jch@wouaa.fr> wrote:Hello, I'm trying to make a webservice working. Here is the request: <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelopexmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://<FQDN of webservice>/service.php" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <SOAP-ENV:Body> <ns1:getPersonalAnalysis> <param0 xsi:type="SOAP-ENC:Struct"> <userDataxsi:type="xsd:string">83.00|1|4|1|37|1|1|1|0</userData></param0> </ns1:getPersonalAnalysis> </SOAP-ENV:Body></SOAP-ENV:Envelope> And the response is: PHP Fatal error: SOAP-ERROR: Encoding: Cannot find encoding in <path>/service.php The encoding "Struct" is present in php_encoding.h, I don't understand hy I have this error. Can anyone help me with this error ? Thanks Regards, JC -- PHP Soap Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php