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

Re: [soaplite] How to manipulate SOAP::Lite Server answer to special format ?

Expand Messages
  • Martin Kutter
    Hi, ... you have to tweak the SOAP server to use a freeform response - to do so, subclass the server class you re using and override the handle method.
    Message 1 of 2 , Mar 18, 2010
    View Source
    • 0 Attachment
      Hi,

      > but this one I need to send to the client :
      >
      > <soap:Envelope
      > soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
      > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:so
      > +apenc="http://schemas.xmlsoap.org/soap/encoding/"
      > xmlns:xsd="http://www.w3.org/2001/XMLSchema"
      > xmlns:soap="http://schemas.xmlsoap.org/soap/ +envelope/">
      > <soapenv:Body>
      > <ResponseType>ACKNOWLEDGE</ResponseType>
      > </soapenv:Body>
      > </soapenv:Envelope>
      >
      > Is there a way to tell SOAP::Lite to suppress the
      > <ServiceErrorResponse> Tags around my single-line message?

      you have to tweak the SOAP server to use a freeform response - to do so,
      subclass the server class you're using and override the handle method.
      SOAP::Server always returns a "response" type message.

      For generating the content itself, see the SOAP::Serializer manpage and
      look for "freeform".

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