Loading ...
Sorry, an error occurred while loading the content.

Re: [soaplite] How to set "Server SOAP Encoding"?

Expand Messages
  • Duncan Cameron
    At 2004-07-15, 13:40:10 Huebner, Malte ... Well, looking at the docs, this would seem to be equivalent my $cgi =
    Message 1 of 4 , Jul 15, 2004
    • 0 Attachment
      At 2004-07-15, 13:40:10 Huebner, Malte <malte.huebner@...>
      wrote:

      >> You can set the encoding for a HTTP daemon as follows:
      >>
      >> $daemon->serializer->encoding('ISO-8859-1');
      >>
      >> A similar approach should work for a CGI (if that is what you
      >> are using).
      >>
      >> Note that the only effect of this is to modify the xml declaration
      >>
      >> <?xml version="1.0" encoding="ISO-8859-1"?>
      >
      >Thanks Duncan, I am using CGI - where can i use ->encoding() there?
      >
      Well, looking at the docs, this would seem to be equivalent

      my $cgi = SOAP::Transport::HTTP::CGI
      -> dispatch_to(...);

      $cgi->serializer->encoding('ISO-8859-1');

      $cgi->handle;

      Both SOAP::Transport::HTTP::Daemon and SOAP::Transport::HTTP::CGI inherit from SOAP::Transport::HTTP::Server which itself inherits from SOAP::Server, where the serializer() method is.

      Regards
      Duncan
    Your message has been successfully submitted and would be delivered to recipients shortly.