=head1 NAME XML::Compile::SOAP::Trace - help displaying trace details. =head1 SYNOPSIS my ($answer, $trace) = $call->(%params); #now $trace is a XML::Compile::SOAP::Trace my $req = $trace->request; # HTTP message which was sent my $res = $trace->response; # HTTP message received my $start = $trace->date; my $dura = $trace->elapse; $trace->printTimings; $trace->printRequest; $trace->printResponse; =head1 DESCRIPTION This help module simplifies user access to the trace data, as produced by a SOAP call (client side). =head1 METHODS =head2 Constructors XML::Compile::SOAP::Trace-EB(OPTIONS) =over 4 Called by the SOAP call implementation; not for normal users. =back =head2 Accessors $obj-EB =over 4 Returns the date string which represent the moment that the call was initiated. =back $obj-EB([KIND]) =over 4 Returns the time in seconds (with hires, sub-second detail) of a part of the SOAP communication. Some values may be C. Elapse without argument will return the total time elapsed. As KINDs are defined C (the time required by the translator build by XML::Compile::Schema to translate Perl into an XML::LibXML tree), C, and C (from XML::LibXML tree into Perl)>. The transport components are also provided seperately, as C (by XML::LibXML to convert a tree into text), C (for the network message exchange by HTTP::Daemon), and C (parsing answer string into XML) See L. example: print $trace->elapse('decode'); =back $obj-EB =over 4 Often contains an error message, when something went wrong. =back $obj-EB =over 4 Returns the HTTP::Request object used for this SOAP call. This might be quite useful during debugging, because a lot of the processing is hidden for the user... but you may want to see or log what is actually begin send. =back $obj-EB =over 4 Returns the HTTP::Response object, returned by the remote server. In some erroneous cases, the client library will create an error response without any message was exchanged. =back $obj-EB =over 4 Returns the (platform dependent) time value which represent the moment that the call was initiated. See Time::HiRes method C