« Shipment/UPS/WSDL/XAVInterfaces/XAVService/XAVPort.pm
↑ Summary
Shipment/UPS/WSDL/ShipInterfaces/ShipService/ShipPort.pm »
| 1 | package Shipment::FedEx::WSDL::TrackInterfaces::TrackService::TrackServicePort; | ||
| 2 | $Shipment::FedEx::WSDL::TrackInterfaces::TrackService::TrackServicePort::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 | # only load if it hasn't been loaded before | ||
| 10 | require Shipment::FedEx::WSDL::TrackTypemaps::TrackService | ||
| 11 | if not Shipment::FedEx::WSDL::TrackTypemaps::TrackService->can('get_class'); | ||
| 12 | |||
| 13 | sub START { | ||
| 14 | my $proxy_domain = $_[2]->{proxy_domain} || 'wsbeta.fedex.com:443'; | ||
| 15 | |||
| 16 | $_[0]->set_proxy('https://' . $proxy_domain . '/web-services/track') | ||
| 17 | if not $_[2]->{proxy}; | ||
| 18 | |||
| 19 | $_[0]->set_class_resolver( | ||
| 20 | 'Shipment::FedEx::WSDL::TrackTypemaps::TrackService') | ||
| 21 | if not $_[2]->{class_resolver}; | ||
| 22 | |||
| 23 | $_[0]->set_prefix($_[2]->{use_prefix}) if exists $_[2]->{use_prefix}; | ||
| 24 | } | ||
| 25 | |||
| 26 | sub retrieveSignatureProofOfDeliveryLetter { | ||
| 27 | my ($self, $body, $header) = @_; | ||
| 28 | die | ||
| 29 | "retrieveSignatureProofOfDeliveryLetter must be called as object method (\$self is <$self>)" | ||
| 30 | if not blessed($self); | ||
| 31 | return $self->SUPER::call( | ||
| 32 | { operation => 'retrieveSignatureProofOfDeliveryLetter', | ||
| 33 | soap_action => | ||
| 34 | 'http://fedex.com/ws/track/v9/retrieveSignatureProofOfDeliveryLetter', | ||
| 35 | style => 'document', | ||
| 36 | body => { | ||
| 37 | |||
| 38 | |||
| 39 | 'use' => 'literal', | ||
| 40 | namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', | ||
| 41 | encodingStyle => '', | ||
| 42 | parts => [ | ||
| 43 | qw( Shipment::FedEx::WSDL::TrackElements::SignatureProofOfDeliveryLetterRequest ) | ||
| 44 | ], | ||
| 45 | }, | ||
| 46 | header => { | ||
| 47 | |||
| 48 | }, | ||
| 49 | headerfault => { | ||
| 50 | |||
| 51 | } | ||
| 52 | }, | ||
| 53 | $body, | ||
| 54 | $header | ||
| 55 | ); | ||
| 56 | } | ||
| 57 | |||
| 58 | |||
| 59 | sub track { | ||
| 60 | my ($self, $body, $header) = @_; | ||
| 61 | die "track must be called as object method (\$self is <$self>)" | ||
| 62 | if not blessed($self); | ||
| 63 | return $self->SUPER::call( | ||
| 64 | { operation => 'track', | ||
| 65 | soap_action => 'http://fedex.com/ws/track/v9/track', | ||
| 66 | style => 'document', | ||
| 67 | body => { | ||
| 68 | |||
| 69 | |||
| 70 | 'use' => 'literal', | ||
| 71 | namespace => 'http://schemas.xmlsoap.org/wsdl/soap/', | ||
| 72 | encodingStyle => '', | ||
| 73 | parts => | ||
| 74 | [qw( Shipment::FedEx::WSDL::TrackElements::TrackRequest )], | ||
| 75 | }, | ||
| 76 | header => { | ||
| 77 | |||
| 78 | }, | ||
| 79 | headerfault => { | ||
| 80 | |||
| 81 | } | ||
| 82 | }, | ||
| 83 | $body, | ||
| 84 | $header | ||
| 85 | ); | ||
| 86 | } | ||
| 87 | |||
| 88 | |||
| 89 | sub sendSignatureProofOfDeliveryFax { | ||
| 90 | my ($self, $body, $header) = @_; | ||
| 91 | die | ||
| 92 | "sendSignatureProofOfDeliveryFax must be called as object method (\$self is <$self>)" | ||
| 93 | if not blessed($self); | ||
| 94 | return $self->SUPER::call( | ||
| 95 | { operation => 'sendSignatureProofOfDeliveryFax', | ||
| 96 | soap_action => | ||
| 97 | 'http://fedex.com/ws/track/v9/sendSignatureProofOfDeliveryFax', | ||
| 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::FedEx::WSDL::TrackElements::SignatureProofOfDeliveryFaxRequest ) | ||
| 107 | ], | ||
| 108 | }, | ||
| 109 | header => { | ||
| 110 | |||
| 111 | }, | ||
| 112 | headerfault => { | ||
| 113 | |||
| 114 | } | ||
| 115 | }, | ||
| 116 | $body, | ||
| 117 | $header | ||
| 118 | ); | ||
| 119 | } | ||
| 120 | |||
| 121 | |||
| 122 | sub sendNotifications { | ||
| 123 | my ($self, $body, $header) = @_; | ||
| 124 | die "sendNotifications must be called as object method (\$self is <$self>)" | ||
| 125 | if not blessed($self); | ||
| 126 | return $self->SUPER::call( | ||
| 127 | { operation => 'sendNotifications', | ||
| 128 | soap_action => 'http://fedex.com/ws/track/v9/sendNotifications', | ||
| 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::TrackElements::SendNotificationsRequest ) | ||
| 138 | ], | ||
| 139 | }, | ||
| 140 | header => { | ||
| 141 | |||
| 142 | }, | ||
| 143 | headerfault => { | ||
| 144 | |||
| 145 | } | ||
| 146 | }, | ||
| 147 | $body, | ||
| 148 | $header | ||
| 149 | ); | ||
| 150 | } | ||
| 151 | |||
| 152 | |||
| 153 | 1; | ||
| 154 | |||
| 155 | __END__ |