On 9 May 2011 11:12, Finn Gruwier Larsen <finn@gruwier.dk> wrote: > Den 09-05-2011 12:01, Richard Quadling skrev: >> >> On 9 May 2011 09:52, Finn Gruwier Larsen<finn@gruwier.dk> Âwrote: >>> >>> Hi, >>> >>> I am trying to get a SOAP request working. At this line in my code: >>> >>> $info = $soapClient->__call("getLegalUnit", array($ap_param)); >>> >>> I get this error: >>> >>> PHP Fatal error: ÂSOAP-ERROR: Encoding: Cannot find encoding in<file> >>> Â<line >>> no>. >>> >>> What does "encoding" mean in this context, and how do I specify it? >>> >>> Best regards, >>> >>> Finn >>> >>> -- >>> PHP Soap Mailing List (http://www.php.net/) >>> To unsubscribe, visit: http://www.php.net/unsub.php >>> >>> >> >> What parameters do you pass to the SOAPClient constructor? >> >> http://docs.php.net/manual/en/soapclient.soapclient.php >> >> "The encoding option defines internal character encoding. This option >> does not change the encoding of SOAP requests (it is always utf-8), >> but converts strings into it." >> >> I use these options (amongst others) ... >> >> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â'encoding' Â=> >> Â'ISO-8859-1', >> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â'exception' => ÂTrue, >> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â'trace' Â Â => ÂTrue, >> >> Richard. >> > > I only passed the "trace => True" parameter. > > Passing the extra parameters above does not change anything. I also tried > "encoding => 'UTF-8'" with same result. > > Finn > Can you show more code? -- Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY -- PHP Soap Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php