Shipment/FedEx/WSDL/CloseInterfaces/CloseService/CloseServicePort.pm untested

filter: Statementstmt 0.0% 0 / 70 Branchbran 0.0% 0 / 18 Conditioncond 0.0% 0 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 0.0% 0 / 13 Podpod 0.0% 0 / 7 totaltotal 0.0% 0 / 111 CC 9 SCAR 19.9
CC
9
Cov
0%
START
20.0
smartPostClose
6.0
groundClose
6.0
CRAP 7.3
1 package Shipment::FedEx::WSDL::CloseInterfaces::CloseService::CloseServicePort;
2 $Shipment::FedEx::WSDL::CloseInterfaces::CloseService::CloseServicePort::VERSION = '3.11';
3 use strict;
4 use warnings;
5 use Class::Std::Fast::Storable;
6 use Scalar::Util qw(blessed);
7 use base qw(SOAP::WSDL::Client::Base);
8  
9  
10 # only load if it hasn't been loaded before
11 require Shipment::FedEx::WSDL::CloseTypemaps::CloseService
12 if not Shipment::FedEx::WSDL::CloseTypemaps::CloseService->can('get_class');
13  
14  
15 sub START {
16  
17 my $proxy_domain = $_[2]->{proxy_domain} || 'wsbeta.fedex.com:443';
18  
19 $_[0]->set_proxy('https://' . $proxy_domain . '/web-services/close')
20 if not $_[2]->{proxy};
21  
22 $_[0]->set_class_resolver(
23 'Shipment::FedEx::WSDL::CloseTypemaps::CloseService')
24 if not $_[2]->{class_resolver};
25  
26 $_[0]->set_prefix($_[2]->{use_prefix}) if exists $_[2]->{use_prefix};
27 }
28  
29 sub smartPostClose {
30 my ($self, $body, $header) = @_;
31 die "smartPostClose must be called as object method (\$self is <$self>)"
32 if not blessed($self);
33 return $self->SUPER::call(
34 { operation => 'smartPostClose',
35 soap_action => 'smartPostClose',
36 style => 'document',
37 body => {
38  
39  
40 'use' => 'literal',
41 namespace => 'http://schemas.xmlsoap.org/wsdl/soap/',
42 encodingStyle => '',
43 parts => [
44 qw( Shipment::FedEx::WSDL::CloseElements::SmartPostCloseRequest )
45 ],
46 },
47 header => {
48  
49 },
50 headerfault => {
51  
52 },
53 response => {
54 header => {
55  
56 },
57 body => {
58  
59  
60 'use' => 'literal',
61 namespace => 'http://schemas.xmlsoap.org/wsdl/soap/',
62 encodingStyle => '',
63 parts => [
64 qw( Shipment::FedEx::WSDL::CloseElements::SmartPostCloseReply )
65 ],
66 },
67 }
68 },
69 $body,
70 $header
71 );
72 }
73  
74  
75 sub groundClose {
76 my ($self, $body, $header) = @_;
77 die "groundClose must be called as object method (\$self is <$self>)"
78 if not blessed($self);
79 return $self->SUPER::call(
80 { operation => 'groundClose',
81 soap_action => 'groundClose',
82 style => 'document',
83 body => {
84  
85  
86 'use' => 'literal',
87 namespace => 'http://schemas.xmlsoap.org/wsdl/soap/',
88 encodingStyle => '',
89 parts => [
90 qw( Shipment::FedEx::WSDL::CloseElements::GroundCloseRequest )
91 ],
92 },
93 header => {
94  
95 },
96 headerfault => {
97  
98 },
99 response => {
100 header => {
101  
102 },
103 body => {
104  
105  
106 'use' => 'literal',
107 namespace => 'http://schemas.xmlsoap.org/wsdl/soap/',
108 encodingStyle => '',
109 parts => [
110 qw( Shipment::FedEx::WSDL::CloseElements::GroundCloseReply )
111 ],
112 },
113 }
114 },
115 $body,
116 $header
117 );
118 }
119  
120  
121 sub groundCloseReportsReprint {
122 my ($self, $body, $header) = @_;
123 die
124 "groundCloseReportsReprint must be called as object method (\$self is <$self>)"
125 if not blessed($self);
126 return $self->SUPER::call(
127 { operation => 'groundCloseReportsReprint',
128 soap_action => 'groundCloseReportsReprint',
129 style => 'document',
130 body => {
131  
132  
133 'use' => 'literal',
134 namespace => 'http://schemas.xmlsoap.org/wsdl/soap/',
135 encodingStyle => '',
136 parts => [
137 qw( Shipment::FedEx::WSDL::CloseElements::GroundCloseReportsReprintRequest )
138 ],
139 },
140 header => {
141  
142 },
143 headerfault => {
144  
145 },
146 response => {
147 header => {
148  
149 },
150 body => {
151  
152  
153 'use' => 'literal',
154 namespace => 'http://schemas.xmlsoap.org/wsdl/soap/',
155 encodingStyle => '',
156 parts => [
157 qw( Shipment::FedEx::WSDL::CloseElements::GroundCloseReportsReprintReply )
158 ],
159 },
160 }
161 },
162 $body,
163 $header
164 );
165 }
166  
167  
168 sub groundCloseWithDocuments {
169 my ($self, $body, $header) = @_;
170 die
171 "groundCloseWithDocuments must be called as object method (\$self is <$self>)"
172 if not blessed($self);
173 return $self->SUPER::call(
174 { operation => 'groundCloseWithDocuments',
175 soap_action => 'groundCloseWithDocuments',
176 style => 'document',
177 body => {
178  
179  
180 'use' => 'literal',
181 namespace => 'http://schemas.xmlsoap.org/wsdl/soap/',
182 encodingStyle => '',
183 parts => [
184 qw( Shipment::FedEx::WSDL::CloseElements::GroundCloseWithDocumentsRequest )
185 ],
186 },
187 header => {
188  
189 },
190 headerfault => {
191  
192 },
193 response => {
194 header => {
195  
196 },
197 body => {
198  
199  
200 'use' => 'literal',
201 namespace => 'http://schemas.xmlsoap.org/wsdl/soap/',
202 encodingStyle => '',
203 parts => [
204 qw( Shipment::FedEx::WSDL::CloseElements::GroundCloseDocumentsReply )
205 ],
206 },
207 }
208 },
209 $body,
210 $header
211 );
212 }
213  
214  
215 sub reprintGroundCloseDocuments {
216 my ($self, $body, $header) = @_;
217 die
218 "reprintGroundCloseDocuments must be called as object method (\$self is <$self>)"
219 if not blessed($self);
220 return $self->SUPER::call(
221 { operation => 'reprintGroundCloseDocuments',
222 soap_action => 'reprintGroundCloseDocuments',
223 style => 'document',
224 body => {
225  
226  
227 'use' => 'literal',
228 namespace => 'http://schemas.xmlsoap.org/wsdl/soap/',
229 encodingStyle => '',
230 parts => [
231 qw( Shipment::FedEx::WSDL::CloseElements::ReprintGroundCloseDocumentsRequest )
232 ],
233 },
234 header => {
235  
236 },
237 headerfault => {
238  
239 },
240 response => {
241 header => {
242  
243 },
244 body => {
245  
246  
247 'use' => 'literal',
248 namespace => 'http://schemas.xmlsoap.org/wsdl/soap/',
249 encodingStyle => '',
250 parts => [
251 qw( Shipment::FedEx::WSDL::CloseElements::GroundCloseDocumentsReply )
252 ],
253 },
254 }
255 },
256 $body,
257 $header
258 );
259 }
260  
261  
262 sub _get_name_resolver {
263  
264 my $prefix_1 = {
265 'attribute' => 'Shipment::FedEx::WSDL::CloseAttributes',
266 'typemap' => 'Shipment::FedEx::WSDL::CloseTypemaps',
267 'interface' => 'Shipment::FedEx::WSDL::CloseInterfaces',
268 'type' => 'Shipment::FedEx::WSDL::CloseTypes',
269 'server' => 'Shipment::FedEx::WSDL::CloseServer',
270 'element' => 'Shipment::FedEx::WSDL::CloseElements'
271 };
272  
273  
274 return SOAP::WSDL::Generator::Template::Plugin::XSD->new(
275 { prefix_resolver => SOAP::WSDL::Generator::PrefixResolver->new(
276 { namespace_prefix_map => {
277 'http://www.w3.org/2001/XMLSchema' =>
278 'SOAP::WSDL::XSD::Typelib::Builtin',
279 },
280 namespace_map => {},
281 prefix => $prefix_1,
282 }
283 )
284 }
285 );
286 }
287  
288 1;
289  
290 __END__