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

6304Re: [soaplite] How do I add custom trace callbacks?

Expand Messages
  • Petar Shangov
    Mar 24, 2009
    • 0 Attachment
      Hi, I have tried enabling all traces but that is no what I need. +trace->'all' gives me this:

      SOAP::Transport::new: ()
      SOAP::Serializer::new: ()
      SOAP::Deserializer::new: ()
      SOAP::Parser::new: ()
      SOAP::Server::new: ()
      SOAP::Transport::HTTP::Server::new: ()
      SOAP::Transport::HTTP::Daemon::new: ()
      Contact to SOAP server at http://localhost:8080/
      SOAP::Server::handle: ()
      SOAP::Deserializer::deserialize: ()
      SOAP::Parser::decode: ()
      SOAP::SOM::new: ()
      SOAP::Data::new: ()
      SOAP::Data::DESTROY: ()
      (eval): HASH(0x145635c) HASH(0x1471264)
      SOAP::Data::new: ()
      SOAP::Server::handle: SOAP::Data=HASH(0x14e7a7c)
      SOAP::Serializer::envelope: ()
      SOAP::Serializer::envelope: get_setResponse SOAP::Data=HASH(0x14e7a7c)
      SOAP::Data::new: ()
      SOAP::Data::new: ()
      SOAP::Data::new: ()
      SOAP::Data::new: ()
      SOAP::Data::new: ()
      SOAP::SOM::DESTROY: ()

      I need to be able to print out the complete requests and responses, such as:

      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:MyWebServices">
      <soapenv:Header/>
      <soapenv:Body>
      <urn:get_set>
      <parameter>
      ...
      </parameter>
      </urn:get_set>
      </soapenv:Body>
      </soapenv:Envelope>

      Regards,

      Petar



      ----- Original Message ----
      > From: rahed <raherh@...>
      > To: Petar Shangov <pshangov@...>
      > Cc: soaplite@yahoogroups.com
      > Sent: Monday, 23 March, 2009 22:44:30
      > Subject: Re: [soaplite] How do I add custom trace callbacks?
      >
      > Petar Shangov writes:
      >
      > > Hi, I have a SOAP::Lite based server and an need to enable soma
      > > advanced debugging. In particular, I need to print out the full
      > > requests and responses for each call. But I cannot get my callbacks to
      > > get invoked. In my soap server script (currently running in a
      > > development environment with SOAP::Transport::HTTP::Daemon) I have
      > > tried:
      > >
      > > use SOAP::Lite +trace => [debug => sub {print "test!\n";}];
      > >
      > > but nothing happens. I have tried printing to a filehandle as well, but still
      > no result.
      > I simply use
      >
      > use SOAP::Lite +trace=>'all';
      >
      > It's documented in SOAP::Trace.
      >
      > --
      > Radek
      >
      >
      > ------------------------------------
      >
      > Yahoo! Groups Links
      >
      >
      >
    • Show all 9 messages in this topic