| line | stmt | bran | cond | sub | pod | time | code | 
| 1 |  |  |  |  |  |  | # $Id$ | 
| 2 |  |  |  |  |  |  |  | 
| 3 |  |  |  |  |  |  | package WebService::Simple::Response; | 
| 4 | 8 |  |  | 8 |  | 37 | use strict; | 
|  | 8 |  |  |  |  | 14 |  | 
|  | 8 |  |  |  |  | 299 |  | 
| 5 | 8 |  |  | 8 |  | 32 | use warnings; | 
|  | 8 |  |  |  |  | 9 |  | 
|  | 8 |  |  |  |  | 232 |  | 
| 6 | 8 |  |  | 8 |  | 79 | use base qw(HTTP::Response); | 
|  | 8 |  |  |  |  | 26 |  | 
|  | 8 |  |  |  |  | 1743 |  | 
| 7 |  |  |  |  |  |  |  | 
| 8 |  |  |  |  |  |  | our $VERSION = "0.23"; | 
| 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__ |