| line | stmt | bran | cond | sub | pod | time | code | 
| 1 |  |  |  |  |  |  | # $Id$ | 
| 2 |  |  |  |  |  |  |  | 
| 3 |  |  |  |  |  |  | package WebService::Simple::Response; | 
| 4 | 8 |  |  | 8 |  | 37 | use strict; | 
|  | 8 |  |  |  |  | 13 |  | 
|  | 8 |  |  |  |  | 196 |  | 
| 5 | 8 |  |  | 8 |  | 36 | use warnings; | 
|  | 8 |  |  |  |  | 12 |  | 
|  | 8 |  |  |  |  | 215 |  | 
| 6 | 8 |  |  | 8 |  | 35 | use base qw(HTTP::Response); | 
|  | 8 |  |  |  |  | 14 |  | 
|  | 8 |  |  |  |  | 1681 |  | 
| 7 |  |  |  |  |  |  |  | 
| 8 |  |  |  |  |  |  | our $VERSION = "0.25"; | 
| 9 |  |  |  |  |  |  |  | 
| 10 |  |  |  |  |  |  | sub new_from_response { | 
| 11 |  |  |  |  |  |  |  | 
| 12 |  |  |  |  |  |  | # XXX hack. This probably should be changed... | 
| 13 | 34 |  |  | 34 | 1 | 43 | my $class = shift; | 
| 14 | 34 |  |  |  |  | 87 | my %args  = @_; | 
| 15 | 34 |  |  |  |  | 62 | my $self  = bless $args{response}, $class; | 
| 16 | 34 |  |  |  |  | 66 | $self->{__parser} = $args{parser}; | 
| 17 | 34 |  |  |  |  | 110 | 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__ |