I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2008-05-20 13:38:27-07 by oly
Trace?
When running a client with version 1.27, I used to print the trace with the following line:
import SOAP::Lite +trace;

Is there a way to do the same with SOAP::WSDL only (without SOAP::Lite)?
Thanks for your help!
Direct Responses: 7931 | Write a response
Posted on 2008-05-25 20:41:03-07 by mkutter in response to 7912
Re: Trace?
Hi oly, that's not implemented yet. the easiest way by now is to implement your own transport layer (don't fear, it's quite simple):
package MyTransport; use strict; use warnings; use base qw(SOAP::WSDL::Transport::HTTP); use SOAP::WSDL::Factory::Transport; SOAP::WSDL::Factory::Transport->register( http => __PACKAGE__ ); SOAP::WSDL::Factory::Transport->register( https => __PACKAGE__ ); sub send_receive { my $self = shift; my $response = $self->SUPER::send_receive(@_); warn $response; return $response; } 1;
... and somewhere before calling a SOAP method:
use MyTransport;
Martin
Direct Responses: 7966 | Write a response
Posted on 2008-05-29 15:45:15-07 by oly in response to 7931
Re: Trace?
Great, thanks Martin! I'll bother you just a bit more... That way, I get the response envelope. Is there a way I could also see the request one?
Direct Responses: 7982 | Write a response
Posted on 2008-05-30 17:48:41-07 by mkutter in response to 7966
Re: Trace?
sub send_receive { my ($self, %params_of) = @_; warn "Request: $params_of{envelope)"; my $response = $self->SUPER::send_receive(%params_of); warn "Response: $response"; return $response; }
Martin
Direct Responses: 7996 | Write a response
Posted on 2008-06-02 06:55:30-07 by oly in response to 7982
Re: Trace?
Many thanks! It works perfectly.

Olivier

Direct Responses: Write a response