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

Re: [soaplite] SOAP::Lite + mod_perl

Expand Messages
  • Paul Kulchenko
    Hi Niraj, soapversion directive is useless on server side at this point, because SOAP::Lite server will always reply with the same SOAP version as request
    Message 1 of 2 , Nov 12, 2002
      Hi Niraj,

      'soapversion' directive is useless on server side at this point,
      because SOAP::Lite server will always reply with the same SOAP
      version as request uses (this also largely relates to XML Schema).
      Which means that the first response is generated for SOAP 1.1 request
      and the second one for SOAP 1.2 request (at least in theory). In any
      case, the xsi namespace must be there. SOAP 1.2 support is still
      experimental and I expect to have few bugs there. Would you provide
      enough details for me to reproduce it in my environment (feel free to
      do it offlist using paulclinger@...)? Thanks.

      Best wishes, Paul.

      --- "Sheth, Niraj " <niraj_sheth@...> wrote:
      > Hi,
      >
      > After few hits I don't know why I am getting different output.
      > The method listPrograms returns a string "A123\nA307\nA666\nA999"
      > It uses version 1.2
      > use SOAP::Lite soapversion => 1.2;
      >
      > Correct one:
      >
      > -----------><----------
      > HTTP/1.1 200 OK
      > Connection: close
      > Date: Tue, 12 Nov 2002 15:58:09 GMT
      > Server: Apache/1.3.26 (Unix) mod_perl/1.27
      > Content-Length: 568
      > Content-Type: text/xml
      > Client-Date: Tue, 12 Nov 2002 15:58:09 GMT
      > Client-Response-Num: 1
      > SOAPServer: SOAP::Lite/Perl/0.55
      >
      > <?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope
      > xmlns:SOAP-ENC="http://
      > schemas.xmlsoap.org/soap/encoding/"
      > SOAP-ENV:encodingStyle="http://schemas.xmlso
      > ap.org/soap/encoding/"
      > xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/
      > " xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
      > xmlns:xsd="http://www.w3
      > .org/1999/XMLSchema"><SOAP-ENV:Body><listProgramsResponse
      > SOAP-ENV:encodingStyle
      > ="http://schemas.xmlsoap.org/soap/encoding/"><s-gensym3
      > xsi:type="xsd:string">A1
      > 23
      > A307
      > A666
      >
      A999</s-gensym3></listProgramsResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
      >
      > ---------><----------
      >
      > After few hits
      > ..
      > HTTP/1.1 200 OK
      > Connection: close
      > Date: Tue, 12 Nov 2002 15:57:44 GMT
      > Server: Apache/1.3.26 (Unix) mod_perl/1.27
      > Content-Length: 518
      > Content-Type: text/xml
      > Client-Date: Tue, 12 Nov 2002 15:57:44 GMT
      > Client-Response-Num: 1
      > SOAPServer: SOAP::Lite/Perl/0.55
      >
      > <?xml version="1.0" encoding="UTF-8"?><namesp1:Envelope
      > xmlns:SOAP-ENC="http://w
      > ww.w3.org/2001/06/soap-encoding"
      > SOAP-ENV:encodingStyle="http://www.w3.org/2001/
      > 06/soap-encoding"
      > xmlns:SOAP-ENV="http://www.w3.org/2001/06/soap-envelope"
      > xmlns
      >
      :namesp1="http://schemas.xmlsoap.org/soap/envelope/"><namesp1:Body><listProg
      > rams
      > Response
      >
      namesp1:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s-ge
      > nsym30 xsi:type="xsd:string">A123
      > A307
      > A666
      >
      A999</s-gensym30></listProgramsResponse></namesp1:Body></namesp1:Envelope>
      >
      > -------><-------
      >
      > Fault on client...
      > SOAP::Lite=HASH(0x1082ec) Unresolved prefix 'xsi' for attribute
      > 'xsi:type'
      >
      > Looks like xmlns is changing ...
      >
      > Any idea?
      >
      > Thanks,
      > -Niraj
      >
      >
      >
      > LEGAL NOTICE
      > Unless expressly stated otherwise, this message is confidential and
      > may be privileged. It is intended for the addressee(s) only. Access
      > to this E-mail by anyone else is unauthorized. If you are not an
      > addressee, any disclosure or copying of the contents of this E-mail
      > or any action taken (or not taken) in reliance on it is
      > unauthorized and may be unlawful. If you are not an addressee,
      > please inform the sender immediately.
      >
      > ------------------------ Yahoo! Groups Sponsor
      >
      > To unsubscribe from this group, send an email to:
      > soaplite-unsubscribe@yahoogroups.com
      >
      >
      >
      > Your use of Yahoo! Groups is subject to
      > http://docs.yahoo.com/info/terms/
      >
      >


      __________________________________________________
      Do you Yahoo!?
      U2 on LAUNCH - Exclusive greatest hits videos
      http://launch.yahoo.com/u2
    Your message has been successfully submitted and would be delivered to recipients shortly.