line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# $Id$ |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package WebService::Simple::Response; |
4
|
8
|
|
|
8
|
|
31
|
use strict; |
|
8
|
|
|
|
|
11
|
|
|
8
|
|
|
|
|
256
|
|
5
|
8
|
|
|
8
|
|
32
|
use warnings; |
|
8
|
|
|
|
|
10
|
|
|
8
|
|
|
|
|
216
|
|
6
|
8
|
|
|
8
|
|
35
|
use base qw(HTTP::Response); |
|
8
|
|
|
|
|
24
|
|
|
8
|
|
|
|
|
1546
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
our $VERSION = "0.24"; |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub new_from_response { |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
# XXX hack. This probably should be changed... |
13
|
0
|
|
|
0
|
1
|
|
my $class = shift; |
14
|
0
|
|
|
|
|
|
my %args = @_; |
15
|
0
|
|
|
|
|
|
my $self = bless $args{response}, $class; |
16
|
0
|
|
|
|
|
|
$self->{__parser} = $args{parser}; |
17
|
0
|
|
|
|
|
|
return $self; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub parse_response { |
21
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
22
|
0
|
|
|
|
|
|
return $self->{__parser}->parse_response( $self ); |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
*parse_xml = \&parse_response; |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
1; |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
__END__ |