blib/lib/W3C/SOAP/Base.pm

filter: Statementstmt 100% 25 / 25 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 7 / 7 Podpod n/a totaltotal 100% 32 / 32 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/W3C/SOAP.pm ↑ Summary blib/lib/W3C/SOAP/Exception.pm »
1 package W3C::SOAP::Base;
2  
3 # Created on: 2012-05-28 07:40:20
4 # Create by: Ivan Wills
5 # $Id$
6 # $Revision$, $HeadURL$, $Date$
7 # $Revision$, $Source$, $Date$
8  
9 7 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 7 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 7 ▶use Carp qw/carp croak cluck confess longmess/;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 7 ▶use Scalar::Util;
Subroutine BEGIN: called CC=1 SCAR=0.0
13 7 ▶use List::Util;
Subroutine BEGIN: called CC=1 SCAR=0.0
14 7 ▶use Data::Dumper qw/Dumper/;
Subroutine BEGIN: called CC=1 SCAR=0.0
15 7 ▶use English qw/ -no_match_vars /;
Subroutine BEGIN: called CC=1 SCAR=0.0
16  
17 7 our $VERSION = 0.13;
18 7 our $DEBUG_REQUEST_RESPONSE = $ENV{W3C_SOAP_DEBUG_CLIENT};
19  
20 7 has w3c_built_with_version => (
21 is => 'rw',
22 isa => 'version',
23 );
24  
25 7 1;
26  
27 __END__
28  
29 =head1 NAME
30  
31 W3C::SOAP::Base - Base module for build L<W3C::SOAP> modules
32  
33 =head1 VERSION
34  
35 This documentation refers to W3C::SOAP::Base version 0.13.
36  
37 =head1 SYNOPSIS
38  
39 use W3C::SOAP::Base;
40  
41 # post a SOAP action
42 my $client = W3C::SOAP::Base->new(
43 location => 'http://some.where.com/',
44 );
45  
46 $client->post('DO_SOMETHING', $xms_doc);
47  
48 =head1 DESCRIPTION
49  
50 L<W3C::SOAP::Base> is the base class for L<W3C::SOAP> clients. It provides
51 the base attributes that are needed for sending SOAP requests.
52  
53 =head1 ATTRIBUTES
54  
55 =over 4
56  
57 =item location
58  
59 The URL for the SOAP request
60  
61 =item mech
62  
63 No longer used
64  
65 =item ua
66  
67 A L<LWP::UserAgent> compatible object which if not supplied will be lazily
68 created.
69  
70 =item response
71  
72 The L<HTTP::Response> object of the last returned response
73  
74 =item log
75  
76 An logging object that proves the following methods:
77  
78 debug, info, warn, error and fatal
79  
80 =item content_type
81  
82 The value of the Content-Type HTTP header (defaults to text/xml;charset=UTF-8')
83  
84 =back
85  
86 =head1 SUBROUTINES/METHODS
87  
88 =over 4
89  
90 =item C<post ($action, $xml)>
91  
92 Performs the SOAP POST request.
93  
94 =back
95  
96 =head1 DIAGNOSTICS
97  
98 =head1 CONFIGURATION AND ENVIRONMENT
99  
100 The environment variable C<W3C_SOAP_DEBUG_CLIENT> can be used to show
101 request and response XML.
102  
103 =head1 DEPENDENCIES
104  
105 =head1 INCOMPATIBILITIES
106  
107 =head1 BUGS AND LIMITATIONS
108  
109 There are no known bugs in this module.
110  
111 Please report problems to Ivan Wills (ivan.wills@gmail.com).
112  
113 Patches are welcome.
114  
115 =head1 AUTHOR
116  
117 Ivan Wills - (ivan.wills@gmail.com)
118  
119 =head1 LICENSE AND COPYRIGHT
120  
121 Copyright (c) 2012 Ivan Wills (14 Mullion Close, Hornsby Heights, NSW Australia 2077).
122 All rights reserved.
123  
124 This module is free software; you can redistribute it and/or modify it under
125 the same terms as Perl itself. See L<perlartistic>. This program is
126 distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
127 without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
128 PARTICULAR PURPOSE.
129  
130 =cut
« blib/lib/W3C/SOAP.pm ↑ Summary blib/lib/W3C/SOAP/Exception.pm »