Re: [SOAP] Problem with encoding ?
[email protected] (Jean-Claude CHRISTOPHE) Thu, 06 Aug 2015 15:45:18 +0200
| Newsgroups | php.soap |
|---|---|
| Organization | Wouaa |
| Message-ID | <[email protected]> |
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 <[email protected]> wrote: >> Hello, >> >> I'm trying to make a webservice working. Here is the request: >> >> <?xml version="1.0" encoding="UTF-8"?> >> <SOAP-ENV:Envelope >> xmlns: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"> >> <userData >> xsi: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 >>