1 package Geo::EZLocate::Interfaces::Authentication::Authentication;
4 use Class::Std::Fast::Storable;
5 use Scalar::Util qw(blessed);
6 use base qw(SOAP::WSDL::Client::Base);
8 # only load if it hasn't been loaded before
9 require Geo::EZLocate::Typemaps::Authentication
10 if not Geo::EZLocate::Typemaps::Authentication->can('get_class');
13 $_[0]->set_proxy('http://mmezl.teleatlas.com/axis/services/Authentication') if not $_[2]->{proxy};
14 $_[0]->set_class_resolver('Geo::EZLocate::Typemaps::Authentication')
15 if not $_[2]->{class_resolver};
17 $_[0]->set_prefix($_[2]->{use_prefix}) if exists $_[2]->{use_prefix};
20 sub requestChallenge {
21 my ($self, $body, $header) = @_;
22 die "requestChallenge must be called as object method (\$self is <$self>)" if not blessed($self);
23 return $self->SUPER::call({
24 operation => 'requestChallenge',
25 soap_action => 'Authentication:AuthenticationPortType#requestChallenge',
31 namespace => 'http://schemas.xmlsoap.org/wsdl/soap/',
33 parts => [qw( Geo::EZLocate::Elements::requestChallenge )],
46 my ($self, $body, $header) = @_;
47 die "answerChallenge must be called as object method (\$self is <$self>)" if not blessed($self);
48 return $self->SUPER::call({
49 operation => 'answerChallenge',
50 soap_action => 'Authentication:AuthenticationPortType#answerChallenge',
56 namespace => 'http://schemas.xmlsoap.org/wsdl/soap/',
58 parts => [qw( Geo::EZLocate::Elements::answerChallenge )],
70 sub invalidateCredential {
71 my ($self, $body, $header) = @_;
72 die "invalidateCredential must be called as object method (\$self is <$self>)" if not blessed($self);
73 return $self->SUPER::call({
74 operation => 'invalidateCredential',
75 soap_action => 'Authentication:AuthenticationPortType#invalidateCredential',
81 namespace => 'http://schemas.xmlsoap.org/wsdl/soap/',
83 parts => [qw( Geo::EZLocate::Elements::invalidateCredential )],
96 my ($self, $body, $header) = @_;
97 die "testCredential must be called as object method (\$self is <$self>)" if not blessed($self);
98 return $self->SUPER::call({
99 operation => 'testCredential',
100 soap_action => 'Authentication:AuthenticationPortType#testCredential',
106 namespace => 'http://schemas.xmlsoap.org/wsdl/soap/',
108 parts => [qw( Geo::EZLocate::Elements::testCredential )],
132 Geo::EZLocate::Interfaces::Authentication::Authentication - SOAP Interface for the Authentication Web Service
136 use Geo::EZLocate::Interfaces::Authentication::Authentication;
137 my $interface = Geo::EZLocate::Interfaces::Authentication::Authentication->new();
140 $response = $interface->requestChallenge();
141 $response = $interface->answerChallenge();
142 $response = $interface->invalidateCredential();
143 $response = $interface->testCredential();
149 SOAP Interface for the Authentication web service
150 located at http://mmezl.teleatlas.com/axis/services/Authentication.
152 =head1 SERVICE Authentication
156 =head2 Port Authentication
162 =head2 General methods
168 All arguments are forwarded to L<SOAP::WSDL::Client|SOAP::WSDL::Client>.
170 =head2 SOAP Service methods
172 Method synopsis is displayed with hash refs as parameters.
174 The commented class names in the method's parameters denote that objects
175 of the corresponding class can be passed instead of the marked hash ref.
177 You may pass any combination of objects, hash and list refs to these
178 methods, as long as you meet the structure.
180 List items (i.e. multiple occurences) are not displayed in the synopsis.
181 You may generally pass a list ref of hash refs (or objects) instead of a hash
182 ref - this may result in invalid XML if used improperly, though. Note that
183 SOAP::WSDL always expects list references at maximum depth position.
185 XML attributes are not displayed in this synopsis and cannot be set using
186 hash refs. See the respective class' documentation for additional information.
190 =head3 requestChallenge
194 Returns a L<Geo::EZLocate::Elements::requestChallengeResponse|Geo::EZLocate::Elements::requestChallengeResponse> object.
196 $response = $interface->requestChallenge( {
197 userName => $some_value, # string
198 minutesValid => $some_value, # int
202 =head3 answerChallenge
206 Returns a L<Geo::EZLocate::Elements::answerChallengeResponse|Geo::EZLocate::Elements::answerChallengeResponse> object.
208 $response = $interface->answerChallenge( {
209 encryptedResponse => $some_value, # int
210 originalChallenge => $some_value, # int
214 =head3 invalidateCredential
218 Returns a L<Geo::EZLocate::Elements::invalidateCredentialResponse|Geo::EZLocate::Elements::invalidateCredentialResponse> object.
220 $response = $interface->invalidateCredential( {
221 credential => $some_value, # int
225 =head3 testCredential
229 Returns a L<Geo::EZLocate::Elements::testCredentialResponse|Geo::EZLocate::Elements::testCredentialResponse> object.
231 $response = $interface->testCredential( {
232 ipAddress => $some_value, # string
233 credential => $some_value, # int
234 serverCred => $some_value, # int
242 Generated by SOAP::WSDL on Fri Nov 2 14:12:51 2012