Shipment/FedEx/WSDL/ShipInterfaces/ShipService/ShipServicePort.pm untested

filter: Statementstmt 0.0% 0 / 86 Branchbran 0.0% 0 / 22 Conditioncond 0.0% 0 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 0.0% 0 / 15 Podpod 0.0% 0 / 9 totaltotal 0.0% 0 / 135 CC 11 SCAR 19.6
CC
11
Cov
0%
START
20.0
processTag
6.0
createPendingShipment
6.0
CRAP 7.1
1 package Shipment::FedEx::WSDL::ShipInterfaces::ShipService::ShipServicePort;
2 $Shipment::FedEx::WSDL::ShipInterfaces::ShipService::ShipServicePort::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::ShipTypemaps::ShipService
12 if not Shipment::FedEx::WSDL::ShipTypemaps::ShipService->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/ship')
20 if not $_[2]->{proxy};
21  
22 $_[0]
23 ->set_class_resolver('Shipment::FedEx::WSDL::ShipTypemaps::ShipService')
24 if not $_[2]->{class_resolver};
25  
26 $_[0]->set_prefix($_[2]->{use_prefix}) if exists $_[2]->{use_prefix};
27 }
28  
29 sub processTag {
30 my ($self, $body, $header) = @_;
31 die "processTag must be called as object method (\$self is <$self>)"
32 if not blessed($self);
33 return $self->SUPER::call(
34 { operation => 'processTag',
35 soap_action => 'processTag',
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::ShipElements::ProcessTagRequest )
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::ShipElements::ProcessTagReply )
65 ],
66 },
67 }
68 },
69 $body,
70 $header
71 );
72 }
73  
74  
75 sub createPendingShipment {
76 my ($self, $body, $header) = @_;
77 die
78 "createPendingShipment must be called as object method (\$self is <$self>)"
79 if not blessed($self);
80 return $self->SUPER::call(
81 { operation => 'createPendingShipment',
82 soap_action => 'createPendingShipment',
83 style => 'document',
84 body => {
85  
86  
87 'use' => 'literal',
88 namespace => 'http://schemas.xmlsoap.org/wsdl/soap/',
89 encodingStyle => '',
90 parts => [
91 qw( Shipment::FedEx::WSDL::ShipElements::CreatePendingShipmentRequest )
92 ],
93 },
94 header => {
95  
96 },
97 headerfault => {
98  
99 },
100 response => {
101 header => {
102  
103 },
104 body => {
105  
106  
107 'use' => 'literal',
108 namespace => 'http://schemas.xmlsoap.org/wsdl/soap/',
109 encodingStyle => '',
110 parts => [
111 qw( Shipment::FedEx::WSDL::ShipElements::CreatePendingShipmentReply )
112 ],
113 },
114 }
115 },
116 $body,
117 $header
118 );
119 }
120  
121  
122 sub cancelPendingShipment {
123 my ($self, $body, $header) = @_;
124 die
125 "cancelPendingShipment must be called as object method (\$self is <$self>)"
126 if not blessed($self);
127 return $self->SUPER::call(
128 { operation => 'cancelPendingShipment',
129 soap_action => 'cancelPendingShipment',
130 style => 'document',
131 body => {
132  
133  
134 'use' => 'literal',
135 namespace => 'http://schemas.xmlsoap.org/wsdl/soap/',
136 encodingStyle => '',
137 parts => [
138 qw( Shipment::FedEx::WSDL::ShipElements::CancelPendingShipmentRequest )
139 ],
140 },
141 header => {
142  
143 },
144 headerfault => {
145  
146 },
147 response => {
148 header => {
149  
150 },
151 body => {
152  
153  
154 'use' => 'literal',
155 namespace => 'http://schemas.xmlsoap.org/wsdl/soap/',
156 encodingStyle => '',
157 parts => [
158 qw( Shipment::FedEx::WSDL::ShipElements::CancelPendingShipmentReply )
159 ],
160 },
161 }
162 },
163 $body,
164 $header
165 );
166 }
167  
168  
169 sub processShipment {
170 my ($self, $body, $header) = @_;
171 die "processShipment must be called as object method (\$self is <$self>)"
172 if not blessed($self);
173 return $self->SUPER::call(
174 { operation => 'processShipment',
175 soap_action => 'processShipment',
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::ShipElements::ProcessShipmentRequest )
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::ShipElements::ProcessShipmentReply )
205 ],
206 },
207 }
208 },
209 $body,
210 $header
211 );
212 }
213  
214  
215 sub deleteTag {
216 my ($self, $body, $header) = @_;
217 die "deleteTag must be called as object method (\$self is <$self>)"
218 if not blessed($self);
219 return $self->SUPER::call(
220 { operation => 'deleteTag',
221 soap_action => 'deleteTag',
222 style => 'document',
223 body => {
224  
225  
226 'use' => 'literal',
227 namespace => 'http://schemas.xmlsoap.org/wsdl/soap/',
228 encodingStyle => '',
229 parts => [
230 qw( Shipment::FedEx::WSDL::ShipElements::DeleteTagRequest )
231 ],
232 },
233 header => {
234  
235 },
236 headerfault => {
237  
238 },
239 response => {
240 header => {
241  
242 },
243 body => {
244  
245  
246 'use' => 'literal',
247 namespace => 'http://schemas.xmlsoap.org/wsdl/soap/',
248 encodingStyle => '',
249 parts => [
250 qw( Shipment::FedEx::WSDL::ShipElements::ShipmentReply )
251 ],
252 },
253 }
254 },
255 $body,
256 $header
257 );
258 }
259  
260  
261 sub validateShipment {
262 my ($self, $body, $header) = @_;
263 die "validateShipment must be called as object method (\$self is <$self>)"
264 if not blessed($self);
265 return $self->SUPER::call(
266 { operation => 'validateShipment',
267 soap_action => 'validateShipment',
268 style => 'document',
269 body => {
270  
271  
272 'use' => 'literal',
273 namespace => 'http://schemas.xmlsoap.org/wsdl/soap/',
274 encodingStyle => '',
275 parts => [
276 qw( Shipment::FedEx::WSDL::ShipElements::ValidateShipmentRequest )
277 ],
278 },
279 header => {
280  
281 },
282 headerfault => {
283  
284 },
285 response => {
286 header => {
287  
288 },
289 body => {
290  
291  
292 'use' => 'literal',
293 namespace => 'http://schemas.xmlsoap.org/wsdl/soap/',
294 encodingStyle => '',
295 parts => [
296 qw( Shipment::FedEx::WSDL::ShipElements::ShipmentReply )
297 ],
298 },
299 }
300 },
301 $body,
302 $header
303 );
304 }
305  
306  
307 sub deleteShipment {
308 my ($self, $body, $header) = @_;
309 die "deleteShipment must be called as object method (\$self is <$self>)"
310 if not blessed($self);
311 return $self->SUPER::call(
312 { operation => 'deleteShipment',
313 soap_action => 'deleteShipment',
314 style => 'document',
315 body => {
316  
317  
318 'use' => 'literal',
319 namespace => 'http://schemas.xmlsoap.org/wsdl/soap/',
320 encodingStyle => '',
321 parts => [
322 qw( Shipment::FedEx::WSDL::ShipElements::DeleteShipmentRequest )
323 ],
324 },
325 header => {
326  
327 },
328 headerfault => {
329  
330 },
331 response => {
332 header => {
333  
334 },
335 body => {
336  
337  
338 'use' => 'literal',
339 namespace => 'http://schemas.xmlsoap.org/wsdl/soap/',
340 encodingStyle => '',
341 parts => [
342 qw( Shipment::FedEx::WSDL::ShipElements::ShipmentReply )
343 ],
344 },
345 }
346 },
347 $body,
348 $header
349 );
350 }
351  
352  
353 sub _get_name_resolver {
354  
355 my $prefix_1 = {
356 'attribute' => 'Shipment::FedEx::WSDL::ShipAttributes',
357 'typemap' => 'Shipment::FedEx::WSDL::ShipTypemaps',
358 'interface' => 'Shipment::FedEx::WSDL::ShipInterfaces',
359 'type' => 'Shipment::FedEx::WSDL::ShipTypes',
360 'server' => 'Shipment::FedEx::WSDL::ShipServer',
361 'element' => 'Shipment::FedEx::WSDL::ShipElements'
362 };
363  
364  
365 return SOAP::WSDL::Generator::Template::Plugin::XSD->new(
366 { prefix_resolver => SOAP::WSDL::Generator::PrefixResolver->new(
367 { namespace_prefix_map => {
368 'http://www.w3.org/2001/XMLSchema' =>
369 'SOAP::WSDL::XSD::Typelib::Builtin',
370 },
371 namespace_map => {},
372 prefix => $prefix_1,
373 }
374 )
375 }
376 );
377 }
378  
379 1;
380  
381 __END__