Re: [SOAP] Problem with encoding ?

[email protected] (Mario Brandt) Thu, 6 Aug 2015 15:37:55 +0200
Newsgroups php.soap
Message-ID <CAA=k7mU-tQu6vkEOznsHph9YGuKLTqcLegAqQxtVK8jPUqDu7g@mail.gmail.com>
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
>