| 1 | package Shipment::Temando::WSDL::Interfaces::quoting_Service::quoting_port; | ||
| 2 | $Shipment::Temando::WSDL::Interfaces::quoting_Service::quoting_port::VERSION = '3.11'; | ||
| 3 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 1 | ▶ | use Class::Std::Fast::Storable; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 1 | ▶ | use Scalar::Util qw(blessed); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 1 | ▶ | use base qw(SOAP::WSDL::Client::Base); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | our $ns_url; | ||
| 10 | |||
| 11 | # only load if it hasn't been loaded before | ||
| 12 | require Shipment::Temando::WSDL::Typemaps::quoting_Service | ||
| 13 | if not Shipment::Temando::WSDL::Typemaps::quoting_Service->can('get_class'); | ||
| 14 | |||
| 15 | |||
| 16 | sub START { | ||
| 17 | |||
| 18 | my $service_address; | ||
| 19 | if ($_[2]->{live}) { | ||
| 20 | $service_address = 'https://api.temando.com/soapServer.html'; | ||
| 21 | $ns_url = 'api.temando.com'; | ||
| 22 | } | ||
| 23 | else { | ||
| 24 | $service_address = 'http://training-api.temando.com/soapServer.html'; | ||
| 25 | $ns_url = 'training-api.temando.com'; | ||
| 26 | } | ||
| 27 | |||
| 28 | $_[0]->set_proxy($service_address) if not $_[2]->{proxy}; | ||
| 29 | |||
| 30 | $_[0]->set_class_resolver( | ||
| 31 | 'Shipment::Temando::WSDL::Typemaps::quoting_Service') | ||
| 32 | if not $_[2]->{class_resolver}; | ||
| 33 | |||
| 34 | $_[0]->set_prefix($_[2]->{use_prefix}) if exists $_[2]->{use_prefix}; | ||
| 35 | } | ||
| 36 | |||
| 37 | sub getQuotesByRequest { | ||
| 38 | my ($self, $body, $header) = @_; | ||
| 39 | die | ||
| 40 | "getQuotesByRequest must be called as object method (\$self is <$self>)" | ||
| 41 | if not blessed($self); | ||
| 42 | return $self->SUPER::call( | ||
| 43 | { operation => 'getQuotesByRequest', | ||
| 44 | soap_action => '', | ||
| 45 | style => 'document', | ||
| 46 | body => { | ||
| 47 | |||
| 48 | |||
| 49 | 'use' => 'literal', | ||
| 50 | namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', | ||
| 51 | encodingStyle => '', | ||
| 52 | parts => [ | ||
| 53 | qw( Shipment::Temando::WSDL::Elements::getQuotesByRequest ) | ||
| 54 | ], | ||
| 55 | }, | ||
| 56 | header => { | ||
| 57 | |||
| 58 | 'use' => 'literal', | ||
| 59 | namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', | ||
| 60 | encodingStyle => '', | ||
| 61 | parts => | ||
| 62 | [qw( Shipment::Temando::WSDL::Elements::TemandoSecurity )], | ||
| 63 | |||
| 64 | }, | ||
| 65 | headerfault => { | ||
| 66 | |||
| 67 | }, | ||
| 68 | response => { | ||
| 69 | header => { | ||
| 70 | |||
| 71 | }, | ||
| 72 | body => { | ||
| 73 | |||
| 74 | |||
| 75 | 'use' => 'literal', | ||
| 76 | namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', | ||
| 77 | encodingStyle => '', | ||
| 78 | parts => [ | ||
| 79 | qw( Shipment::Temando::WSDL::Elements::getQuotesByRequestResponse ) | ||
| 80 | ], | ||
| 81 | }, | ||
| 82 | } | ||
| 83 | }, | ||
| 84 | $body, | ||
| 85 | $header | ||
| 86 | ); | ||
| 87 | } | ||
| 88 | |||
| 89 | |||
| 90 | sub makeBookingByRequest { | ||
| 91 | my ($self, $body, $header) = @_; | ||
| 92 | die | ||
| 93 | "makeBookingByRequest must be called as object method (\$self is <$self>)" | ||
| 94 | if not blessed($self); | ||
| 95 | return $self->SUPER::call( | ||
| 96 | { operation => 'makeBookingByRequest', | ||
| 97 | soap_action => '', | ||
| 98 | style => 'document', | ||
| 99 | body => { | ||
| 100 | |||
| 101 | |||
| 102 | 'use' => 'literal', | ||
| 103 | namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', | ||
| 104 | encodingStyle => '', | ||
| 105 | parts => [ | ||
| 106 | qw( Shipment::Temando::WSDL::Elements::makeBookingByRequest ) | ||
| 107 | ], | ||
| 108 | }, | ||
| 109 | header => { | ||
| 110 | |||
| 111 | 'use' => 'literal', | ||
| 112 | namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', | ||
| 113 | encodingStyle => '', | ||
| 114 | parts => | ||
| 115 | [qw( Shipment::Temando::WSDL::Elements::TemandoSecurity )], | ||
| 116 | |||
| 117 | }, | ||
| 118 | headerfault => { | ||
| 119 | |||
| 120 | }, | ||
| 121 | response => { | ||
| 122 | header => { | ||
| 123 | |||
| 124 | }, | ||
| 125 | body => { | ||
| 126 | |||
| 127 | |||
| 128 | 'use' => 'literal', | ||
| 129 | namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', | ||
| 130 | encodingStyle => '', | ||
| 131 | parts => [ | ||
| 132 | qw( Shipment::Temando::WSDL::Elements::makeBookingByRequestResponse ) | ||
| 133 | ], | ||
| 134 | }, | ||
| 135 | } | ||
| 136 | }, | ||
| 137 | $body, | ||
| 138 | $header | ||
| 139 | ); | ||
| 140 | } | ||
| 141 | |||
| 142 | |||
| 143 | sub getRequest { | ||
| 144 | my ($self, $body, $header) = @_; | ||
| 145 | die "getRequest must be called as object method (\$self is <$self>)" | ||
| 146 | if not blessed($self); | ||
| 147 | return $self->SUPER::call( | ||
| 148 | { operation => 'getRequest', | ||
| 149 | soap_action => '', | ||
| 150 | style => 'document', | ||
| 151 | body => { | ||
| 152 | |||
| 153 | |||
| 154 | 'use' => 'literal', | ||
| 155 | namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', | ||
| 156 | encodingStyle => '', | ||
| 157 | parts => [qw( Shipment::Temando::WSDL::Elements::getRequest )], | ||
| 158 | }, | ||
| 159 | header => { | ||
| 160 | |||
| 161 | 'use' => 'literal', | ||
| 162 | namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', | ||
| 163 | encodingStyle => '', | ||
| 164 | parts => | ||
| 165 | [qw( Shipment::Temando::WSDL::Elements::TemandoSecurity )], | ||
| 166 | |||
| 167 | }, | ||
| 168 | headerfault => { | ||
| 169 | |||
| 170 | }, | ||
| 171 | response => { | ||
| 172 | header => { | ||
| 173 | |||
| 174 | }, | ||
| 175 | body => { | ||
| 176 | |||
| 177 | |||
| 178 | 'use' => 'literal', | ||
| 179 | namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', | ||
| 180 | encodingStyle => '', | ||
| 181 | parts => [ | ||
| 182 | qw( Shipment::Temando::WSDL::Elements::getRequestResponse ) | ||
| 183 | ], | ||
| 184 | }, | ||
| 185 | } | ||
| 186 | }, | ||
| 187 | $body, | ||
| 188 | $header | ||
| 189 | ); | ||
| 190 | } | ||
| 191 | |||
| 192 | |||
| 193 | sub getRequestsRequiringBooking { | ||
| 194 | my ($self, $body, $header) = @_; | ||
| 195 | die | ||
| 196 | "getRequestsRequiringBooking must be called as object method (\$self is <$self>)" | ||
| 197 | if not blessed($self); | ||
| 198 | return $self->SUPER::call( | ||
| 199 | { operation => 'getRequestsRequiringBooking', | ||
| 200 | soap_action => '', | ||
| 201 | style => 'document', | ||
| 202 | body => { | ||
| 203 | |||
| 204 | |||
| 205 | 'use' => 'literal', | ||
| 206 | namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', | ||
| 207 | encodingStyle => '', | ||
| 208 | parts => [ | ||
| 209 | qw( Shipment::Temando::WSDL::Elements::getRequestsRequiringBooking ) | ||
| 210 | ], | ||
| 211 | }, | ||
| 212 | header => { | ||
| 213 | |||
| 214 | 'use' => 'literal', | ||
| 215 | namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', | ||
| 216 | encodingStyle => '', | ||
| 217 | parts => | ||
| 218 | [qw( Shipment::Temando::WSDL::Elements::TemandoSecurity )], | ||
| 219 | |||
| 220 | }, | ||
| 221 | headerfault => { | ||
| 222 | |||
| 223 | }, | ||
| 224 | response => { | ||
| 225 | header => { | ||
| 226 | |||
| 227 | }, | ||
| 228 | body => { | ||
| 229 | |||
| 230 | |||
| 231 | 'use' => 'literal', | ||
| 232 | namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', | ||
| 233 | encodingStyle => '', | ||
| 234 | parts => [ | ||
| 235 | qw( Shipment::Temando::WSDL::Elements::getRequestsRequiringBookingResponse ) | ||
| 236 | ], | ||
| 237 | }, | ||
| 238 | } | ||
| 239 | }, | ||
| 240 | $body, | ||
| 241 | $header | ||
| 242 | ); | ||
| 243 | } | ||
| 244 | |||
| 245 | |||
| 246 | sub addBookingDetails { | ||
| 247 | my ($self, $body, $header) = @_; | ||
| 248 | die "addBookingDetails must be called as object method (\$self is <$self>)" | ||
| 249 | if not blessed($self); | ||
| 250 | return $self->SUPER::call( | ||
| 251 | { operation => 'addBookingDetails', | ||
| 252 | soap_action => '', | ||
| 253 | style => 'document', | ||
| 254 | body => { | ||
| 255 | |||
| 256 | |||
| 257 | 'use' => 'literal', | ||
| 258 | namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', | ||
| 259 | encodingStyle => '', | ||
| 260 | parts => | ||
| 261 | [qw( Shipment::Temando::WSDL::Elements::addBookingDetails )], | ||
| 262 | }, | ||
| 263 | header => { | ||
| 264 | |||
| 265 | 'use' => 'literal', | ||
| 266 | namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', | ||
| 267 | encodingStyle => '', | ||
| 268 | parts => | ||
| 269 | [qw( Shipment::Temando::WSDL::Elements::TemandoSecurity )], | ||
| 270 | |||
| 271 | }, | ||
| 272 | headerfault => { | ||
| 273 | |||
| 274 | }, | ||
| 275 | response => { | ||
| 276 | header => { | ||
| 277 | |||
| 278 | }, | ||
| 279 | body => { | ||
| 280 | |||
| 281 | |||
| 282 | 'use' => 'literal', | ||
| 283 | namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', | ||
| 284 | encodingStyle => '', | ||
| 285 | parts => [ | ||
| 286 | qw( Shipment::Temando::WSDL::Elements::addBookingDetailsResponse ) | ||
| 287 | ], | ||
| 288 | }, | ||
| 289 | } | ||
| 290 | }, | ||
| 291 | $body, | ||
| 292 | $header | ||
| 293 | ); | ||
| 294 | } | ||
| 295 | |||
| 296 | |||
| 297 | sub createClient { | ||
| 298 | my ($self, $body, $header) = @_; | ||
| 299 | die "createClient must be called as object method (\$self is <$self>)" | ||
| 300 | if not blessed($self); | ||
| 301 | return $self->SUPER::call( | ||
| 302 | { operation => 'createClient', | ||
| 303 | soap_action => '', | ||
| 304 | style => 'document', | ||
| 305 | body => { | ||
| 306 | |||
| 307 | |||
| 308 | 'use' => 'literal', | ||
| 309 | namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', | ||
| 310 | encodingStyle => '', | ||
| 311 | parts => | ||
| 312 | [qw( Shipment::Temando::WSDL::Elements::createClient )], | ||
| 313 | }, | ||
| 314 | header => { | ||
| 315 | |||
| 316 | 'use' => 'literal', | ||
| 317 | namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', | ||
| 318 | encodingStyle => '', | ||
| 319 | parts => | ||
| 320 | [qw( Shipment::Temando::WSDL::Elements::TemandoSecurity )], | ||
| 321 | |||
| 322 | }, | ||
| 323 | headerfault => { | ||
| 324 | |||
| 325 | }, | ||
| 326 | response => { | ||
| 327 | header => { | ||
| 328 | |||
| 329 | }, | ||
| 330 | body => { | ||
| 331 | |||
| 332 | |||
| 333 | 'use' => 'literal', | ||
| 334 | namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', | ||
| 335 | encodingStyle => '', | ||
| 336 | parts => [ | ||
| 337 | qw( Shipment::Temando::WSDL::Elements::createClientResponse ) | ||
| 338 | ], | ||
| 339 | }, | ||
| 340 | } | ||
| 341 | }, | ||
| 342 | $body, | ||
| 343 | $header | ||
| 344 | ); | ||
| 345 | } | ||
| 346 | |||
| 347 | |||
| 348 | sub updateClient { | ||
| 349 | my ($self, $body, $header) = @_; | ||
| 350 | die "updateClient must be called as object method (\$self is <$self>)" | ||
| 351 | if not blessed($self); | ||
| 352 | return $self->SUPER::call( | ||
| 353 | { operation => 'updateClient', | ||
| 354 | soap_action => '', | ||
| 355 | style => 'document', | ||
| 356 | body => { | ||
| 357 | |||
| 358 | |||
| 359 | 'use' => 'literal', | ||
| 360 | namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', | ||
| 361 | encodingStyle => '', | ||
| 362 | parts => | ||
| 363 | [qw( Shipment::Temando::WSDL::Elements::updateClient )], | ||
| 364 | }, | ||
| 365 | header => { | ||
| 366 | |||
| 367 | 'use' => 'literal', | ||
| 368 | namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', | ||
| 369 | encodingStyle => '', | ||
| 370 | parts => | ||
| 371 | [qw( Shipment::Temando::WSDL::Elements::TemandoSecurity )], | ||
| 372 | |||
| 373 | }, | ||
| 374 | headerfault => { | ||
| 375 | |||
| 376 | }, | ||
| 377 | response => { | ||
| 378 | header => { | ||
| 379 | |||
| 380 | }, | ||
| 381 | body => { | ||
| 382 | |||
| 383 | |||
| 384 | 'use' => 'literal', | ||
| 385 | namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', | ||
| 386 | encodingStyle => '', | ||
| 387 | parts => [ | ||
| 388 | qw( Shipment::Temando::WSDL::Elements::updateClientResponse ) | ||
| 389 | ], | ||
| 390 | }, | ||
| 391 | } | ||
| 392 | }, | ||
| 393 | $body, | ||
| 394 | $header | ||
| 395 | ); | ||
| 396 | } | ||
| 397 | |||
| 398 | |||
| 399 | sub getClient { | ||
| 400 | my ($self, $body, $header) = @_; | ||
| 401 | die "getClient must be called as object method (\$self is <$self>)" | ||
| 402 | if not blessed($self); | ||
| 403 | return $self->SUPER::call( | ||
| 404 | { operation => 'getClient', | ||
| 405 | soap_action => '', | ||
| 406 | style => 'document', | ||
| 407 | body => { | ||
| 408 | |||
| 409 | |||
| 410 | 'use' => 'literal', | ||
| 411 | namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', | ||
| 412 | encodingStyle => '', | ||
| 413 | parts => [qw( Shipment::Temando::WSDL::Elements::getClient )], | ||
| 414 | }, | ||
| 415 | header => { | ||
| 416 | |||
| 417 | 'use' => 'literal', | ||
| 418 | namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', | ||
| 419 | encodingStyle => '', | ||
| 420 | parts => | ||
| 421 | [qw( Shipment::Temando::WSDL::Elements::TemandoSecurity )], | ||
| 422 | |||
| 423 | }, | ||
| 424 | headerfault => { | ||
| 425 | |||
| 426 | }, | ||
| 427 | response => { | ||
| 428 | header => { | ||
| 429 | |||
| 430 | }, | ||
| 431 | body => { | ||
| 432 | |||
| 433 | |||
| 434 | 'use' => 'literal', | ||
| 435 | namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', | ||
| 436 | encodingStyle => '', | ||
| 437 | parts => [ | ||
| 438 | qw( Shipment::Temando::WSDL::Elements::getClientResponse ) | ||
| 439 | ], | ||
| 440 | }, | ||
| 441 | } | ||
| 442 | }, | ||
| 443 | $body, | ||
| 444 | $header | ||
| 445 | ); | ||
| 446 | } | ||
| 447 | |||
| 448 | |||
| 449 | sub lodgeDispatch { | ||
| 450 | my ($self, $body, $header) = @_; | ||
| 451 | die "lodgeDispatch must be called as object method (\$self is <$self>)" | ||
| 452 | if not blessed($self); | ||
| 453 | return $self->SUPER::call( | ||
| 454 | { operation => 'lodgeDispatch', | ||
| 455 | soap_action => '', | ||
| 456 | style => 'document', | ||
| 457 | body => { | ||
| 458 | |||
| 459 | |||
| 460 | 'use' => 'literal', | ||
| 461 | namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', | ||
| 462 | encodingStyle => '', | ||
| 463 | parts => | ||
| 464 | [qw( Shipment::Temando::WSDL::Elements::lodgeDispatch )], | ||
| 465 | }, | ||
| 466 | header => { | ||
| 467 | |||
| 468 | 'use' => 'literal', | ||
| 469 | namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', | ||
| 470 | encodingStyle => '', | ||
| 471 | parts => | ||
| 472 | [qw( Shipment::Temando::WSDL::Elements::TemandoSecurity )], | ||
| 473 | |||
| 474 | }, | ||
| 475 | headerfault => { | ||
| 476 | |||
| 477 | }, | ||
| 478 | response => { | ||
| 479 | header => { | ||
| 480 | |||
| 481 | }, | ||
| 482 | body => { | ||
| 483 | |||
| 484 | |||
| 485 | 'use' => 'literal', | ||
| 486 | namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', | ||
| 487 | encodingStyle => '', | ||
| 488 | parts => [ | ||
| 489 | qw( Shipment::Temando::WSDL::Elements::lodgeDispatchResponse ) | ||
| 490 | ], | ||
| 491 | }, | ||
| 492 | } | ||
| 493 | }, | ||
| 494 | $body, | ||
| 495 | $header | ||
| 496 | ); | ||
| 497 | } | ||
| 498 | |||
| 499 | |||
| 500 | sub cancelRequest { | ||
| 501 | my ($self, $body, $header) = @_; | ||
| 502 | die "cancelRequest must be called as object method (\$self is <$self>)" | ||
| 503 | if not blessed($self); | ||
| 504 | return $self->SUPER::call( | ||
| 505 | { operation => 'cancelRequest', | ||
| 506 | soap_action => '', | ||
| 507 | style => 'document', | ||
| 508 | body => { | ||
| 509 | |||
| 510 | |||
| 511 | 'use' => 'literal', | ||
| 512 | namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', | ||
| 513 | encodingStyle => '', | ||
| 514 | parts => | ||
| 515 | [qw( Shipment::Temando::WSDL::Elements::cancelRequest )], | ||
| 516 | }, | ||
| 517 | header => { | ||
| 518 | |||
| 519 | 'use' => 'literal', | ||
| 520 | namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', | ||
| 521 | encodingStyle => '', | ||
| 522 | parts => | ||
| 523 | [qw( Shipment::Temando::WSDL::Elements::TemandoSecurity )], | ||
| 524 | |||
| 525 | }, | ||
| 526 | headerfault => { | ||
| 527 | |||
| 528 | }, | ||
| 529 | response => { | ||
| 530 | header => { | ||
| 531 | |||
| 532 | }, | ||
| 533 | body => { | ||
| 534 | |||
| 535 | |||
| 536 | 'use' => 'literal', | ||
| 537 | namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', | ||
| 538 | encodingStyle => '', | ||
| 539 | parts => [ | ||
| 540 | qw( Shipment::Temando::WSDL::Elements::cancelRequestResponse ) | ||
| 541 | ], | ||
| 542 | }, | ||
| 543 | } | ||
| 544 | }, | ||
| 545 | $body, | ||
| 546 | $header | ||
| 547 | ); | ||
| 548 | } | ||
| 549 | |||
| 550 | |||
| 551 | sub updateTrackingDetails { | ||
| 552 | my ($self, $body, $header) = @_; | ||
| 553 | die | ||
| 554 | "updateTrackingDetails must be called as object method (\$self is <$self>)" | ||
| 555 | if not blessed($self); | ||
| 556 | return $self->SUPER::call( | ||
| 557 | { operation => 'updateTrackingDetails', | ||
| 558 | soap_action => '', | ||
| 559 | style => 'document', | ||
| 560 | body => { | ||
| 561 | |||
| 562 | |||
| 563 | 'use' => 'literal', | ||
| 564 | namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', | ||
| 565 | encodingStyle => '', | ||
| 566 | parts => [ | ||
| 567 | qw( Shipment::Temando::WSDL::Elements::updateTrackingDetails ) | ||
| 568 | ], | ||
| 569 | }, | ||
| 570 | header => { | ||
| 571 | |||
| 572 | 'use' => 'literal', | ||
| 573 | namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', | ||
| 574 | encodingStyle => '', | ||
| 575 | parts => | ||
| 576 | [qw( Shipment::Temando::WSDL::Elements::TemandoSecurity )], | ||
| 577 | |||
| 578 | }, | ||
| 579 | headerfault => { | ||
| 580 | |||
| 581 | }, | ||
| 582 | response => { | ||
| 583 | header => { | ||
| 584 | |||
| 585 | }, | ||
| 586 | body => { | ||
| 587 | |||
| 588 | |||
| 589 | 'use' => 'literal', | ||
| 590 | namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', | ||
| 591 | encodingStyle => '', | ||
| 592 | parts => [ | ||
| 593 | qw( Shipment::Temando::WSDL::Elements::updateTrackingDetailsResponse ) | ||
| 594 | ], | ||
| 595 | }, | ||
| 596 | } | ||
| 597 | }, | ||
| 598 | $body, | ||
| 599 | $header | ||
| 600 | ); | ||
| 601 | } | ||
| 602 | |||
| 603 | |||
| 604 | sub getManifest { | ||
| 605 | my ($self, $body, $header) = @_; | ||
| 606 | die "getManifest must be called as object method (\$self is <$self>)" | ||
| 607 | if not blessed($self); | ||
| 608 | return $self->SUPER::call( | ||
| 609 | { operation => 'getManifest', | ||
| 610 | soap_action => '', | ||
| 611 | style => 'document', | ||
| 612 | body => { | ||
| 613 | |||
| 614 | |||
| 615 | 'use' => 'literal', | ||
| 616 | namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', | ||
| 617 | encodingStyle => '', | ||
| 618 | parts => | ||
| 619 | [qw( Shipment::Temando::WSDL::Elements::getManifest )], | ||
| 620 | }, | ||
| 621 | header => { | ||
| 622 | |||
| 623 | 'use' => 'literal', | ||
| 624 | namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', | ||
| 625 | encodingStyle => '', | ||
| 626 | parts => | ||
| 627 | [qw( Shipment::Temando::WSDL::Elements::TemandoSecurity )], | ||
| 628 | |||
| 629 | }, | ||
| 630 | headerfault => { | ||
| 631 | |||
| 632 | }, | ||
| 633 | response => { | ||
| 634 | header => { | ||
| 635 | |||
| 636 | }, | ||
| 637 | body => { | ||
| 638 | |||
| 639 | |||
| 640 | 'use' => 'literal', | ||
| 641 | namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', | ||
| 642 | encodingStyle => '', | ||
| 643 | parts => [ | ||
| 644 | qw( Shipment::Temando::WSDL::Elements::getManifestResponse ) | ||
| 645 | ], | ||
| 646 | }, | ||
| 647 | } | ||
| 648 | }, | ||
| 649 | $body, | ||
| 650 | $header | ||
| 651 | ); | ||
| 652 | } | ||
| 653 | |||
| 654 | |||
| 655 | sub confirmManifest { | ||
| 656 | my ($self, $body, $header) = @_; | ||
| 657 | die "confirmManifest must be called as object method (\$self is <$self>)" | ||
| 658 | if not blessed($self); | ||
| 659 | return $self->SUPER::call( | ||
| 660 | { operation => 'confirmManifest', | ||
| 661 | soap_action => '', | ||
| 662 | style => 'document', | ||
| 663 | body => { | ||
| 664 | |||
| 665 | |||
| 666 | 'use' => 'literal', | ||
| 667 | namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', | ||
| 668 | encodingStyle => '', | ||
| 669 | parts => | ||
| 670 | [qw( Shipment::Temando::WSDL::Elements::confirmManifest )], | ||
| 671 | }, | ||
| 672 | header => { | ||
| 673 | |||
| 674 | 'use' => 'literal', | ||
| 675 | namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', | ||
| 676 | encodingStyle => '', | ||
| 677 | parts => | ||
| 678 | [qw( Shipment::Temando::WSDL::Elements::TemandoSecurity )], | ||
| 679 | |||
| 680 | }, | ||
| 681 | headerfault => { | ||
| 682 | |||
| 683 | }, | ||
| 684 | response => { | ||
| 685 | header => { | ||
| 686 | |||
| 687 | }, | ||
| 688 | body => { | ||
| 689 | |||
| 690 | |||
| 691 | 'use' => 'literal', | ||
| 692 | namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', | ||
| 693 | encodingStyle => '', | ||
| 694 | parts => [ | ||
| 695 | qw( Shipment::Temando::WSDL::Elements::confirmManifestResponse ) | ||
| 696 | ], | ||
| 697 | }, | ||
| 698 | } | ||
| 699 | }, | ||
| 700 | $body, | ||
| 701 | $header | ||
| 702 | ); | ||
| 703 | } | ||
| 704 | |||
| 705 | |||
| 706 | sub getLocations { | ||
| 707 | my ($self, $body, $header) = @_; | ||
| 708 | die "getLocations must be called as object method (\$self is <$self>)" | ||
| 709 | if not blessed($self); | ||
| 710 | return $self->SUPER::call( | ||
| 711 | { operation => 'getLocations', | ||
| 712 | soap_action => '', | ||
| 713 | style => 'document', | ||
| 714 | body => { | ||
| 715 | |||
| 716 | |||
| 717 | 'use' => 'literal', | ||
| 718 | namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', | ||
| 719 | encodingStyle => '', | ||
| 720 | parts => | ||
| 721 | [qw( Shipment::Temando::WSDL::Elements::getLocations )], | ||
| 722 | }, | ||
| 723 | header => { | ||
| 724 | |||
| 725 | 'use' => 'literal', | ||
| 726 | namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', | ||
| 727 | encodingStyle => '', | ||
| 728 | parts => | ||
| 729 | [qw( Shipment::Temando::WSDL::Elements::TemandoSecurity )], | ||
| 730 | |||
| 731 | }, | ||
| 732 | headerfault => { | ||
| 733 | |||
| 734 | }, | ||
| 735 | response => { | ||
| 736 | header => { | ||
| 737 | |||
| 738 | }, | ||
| 739 | body => { | ||
| 740 | |||
| 741 | |||
| 742 | 'use' => 'literal', | ||
| 743 | namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', | ||
| 744 | encodingStyle => '', | ||
| 745 | parts => [ | ||
| 746 | qw( Shipment::Temando::WSDL::Elements::getLocationsResponse ) | ||
| 747 | ], | ||
| 748 | }, | ||
| 749 | } | ||
| 750 | }, | ||
| 751 | $body, | ||
| 752 | $header | ||
| 753 | ); | ||
| 754 | } | ||
| 755 | |||
| 756 | |||
| 757 | sub createLocation { | ||
| 758 | my ($self, $body, $header) = @_; | ||
| 759 | die "createLocation must be called as object method (\$self is <$self>)" | ||
| 760 | if not blessed($self); | ||
| 761 | return $self->SUPER::call( | ||
| 762 | { operation => 'createLocation', | ||
| 763 | soap_action => '', | ||
| 764 | style => 'document', | ||
| 765 | body => { | ||
| 766 | |||
| 767 | |||
| 768 | 'use' => 'literal', | ||
| 769 | namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', | ||
| 770 | encodingStyle => '', | ||
| 771 | parts => | ||
| 772 | [qw( Shipment::Temando::WSDL::Elements::createLocation )], | ||
| 773 | }, | ||
| 774 | header => { | ||
| 775 | |||
| 776 | 'use' => 'literal', | ||
| 777 | namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', | ||
| 778 | encodingStyle => '', | ||
| 779 | parts => | ||
| 780 | [qw( Shipment::Temando::WSDL::Elements::TemandoSecurity )], | ||
| 781 | |||
| 782 | }, | ||
| 783 | headerfault => { | ||
| 784 | |||
| 785 | }, | ||
| 786 | response => { | ||
| 787 | header => { | ||
| 788 | |||
| 789 | }, | ||
| 790 | body => { | ||
| 791 | |||
| 792 | |||
| 793 | 'use' => 'literal', | ||
| 794 | namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', | ||
| 795 | encodingStyle => '', | ||
| 796 | parts => [ | ||
| 797 | qw( Shipment::Temando::WSDL::Elements::createLocationResponse ) | ||
| 798 | ], | ||
| 799 | }, | ||
| 800 | } | ||
| 801 | }, | ||
| 802 | $body, | ||
| 803 | $header | ||
| 804 | ); | ||
| 805 | } | ||
| 806 | |||
| 807 | |||
| 808 | sub updateLocation { | ||
| 809 | my ($self, $body, $header) = @_; | ||
| 810 | die "updateLocation must be called as object method (\$self is <$self>)" | ||
| 811 | if not blessed($self); | ||
| 812 | return $self->SUPER::call( | ||
| 813 | { operation => 'updateLocation', | ||
| 814 | soap_action => '', | ||
| 815 | style => 'document', | ||
| 816 | body => { | ||
| 817 | |||
| 818 | |||
| 819 | 'use' => 'literal', | ||
| 820 | namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', | ||
| 821 | encodingStyle => '', | ||
| 822 | parts => | ||
| 823 | [qw( Shipment::Temando::WSDL::Elements::updateLocation )], | ||
| 824 | }, | ||
| 825 | header => { | ||
| 826 | |||
| 827 | 'use' => 'literal', | ||
| 828 | namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', | ||
| 829 | encodingStyle => '', | ||
| 830 | parts => | ||
| 831 | [qw( Shipment::Temando::WSDL::Elements::TemandoSecurity )], | ||
| 832 | |||
| 833 | }, | ||
| 834 | headerfault => { | ||
| 835 | |||
| 836 | }, | ||
| 837 | response => { | ||
| 838 | header => { | ||
| 839 | |||
| 840 | }, | ||
| 841 | body => { | ||
| 842 | |||
| 843 | |||
| 844 | 'use' => 'literal', | ||
| 845 | namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', | ||
| 846 | encodingStyle => '', | ||
| 847 | parts => [ | ||
| 848 | qw( Shipment::Temando::WSDL::Elements::updateLocationResponse ) | ||
| 849 | ], | ||
| 850 | }, | ||
| 851 | } | ||
| 852 | }, | ||
| 853 | $body, | ||
| 854 | $header | ||
| 855 | ); | ||
| 856 | } | ||
| 857 | |||
| 858 | |||
| 859 | sub _get_name_resolver { | ||
| 860 | |||
| 861 | my $prefix_1 = { | ||
| 862 | 'attribute' => 'Shipment::Temando::WSDL::Attributes', | ||
| 863 | 'typemap' => 'Shipment::Temando::WSDL::Typemaps', | ||
| 864 | 'interface' => 'Shipment::Temando::WSDL::Interfaces', | ||
| 865 | 'type' => 'Shipment::Temando::WSDL::Types', | ||
| 866 | 'server' => 'Shipment::Temando::WSDL::Server', | ||
| 867 | 'element' => 'Shipment::Temando::WSDL::Elements' | ||
| 868 | }; | ||
| 869 | |||
| 870 | |||
| 871 | return SOAP::WSDL::Generator::Template::Plugin::XSD->new( | ||
| 872 | { prefix_resolver => SOAP::WSDL::Generator::PrefixResolver->new( | ||
| 873 | { namespace_prefix_map => { | ||
| 874 | 'http://www.w3.org/2001/XMLSchema' => | ||
| 875 | 'SOAP::WSDL::XSD::Typelib::Builtin', | ||
| 876 | }, | ||
| 877 | namespace_map => {}, | ||
| 878 | prefix => $prefix_1, | ||
| 879 | } | ||
| 880 | ) | ||
| 881 | } | ||
| 882 | ); | ||
| 883 | } | ||
| 884 | |||
| 885 | 1; | ||
| 886 | |||
| 887 | __END__ | ||