summaryrefslogtreecommitdiff
path: root/EZLocate/Interfaces/Authentication/Authentication.pm
blob: 1d18d5a3f22d3266b776b6cf370dbd02937b8cc6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
package Geo::EZLocate::Interfaces::Authentication::Authentication;
use strict;
use warnings;
use Class::Std::Fast::Storable;
use Scalar::Util qw(blessed);
use base qw(SOAP::WSDL::Client::Base);

# only load if it hasn't been loaded before
require Geo::EZLocate::Typemaps::Authentication
    if not Geo::EZLocate::Typemaps::Authentication->can('get_class');

sub START {
    $_[0]->set_proxy('http://mmezl.teleatlas.com/axis/services/Authentication') if not $_[2]->{proxy};
    $_[0]->set_class_resolver('Geo::EZLocate::Typemaps::Authentication')
        if not $_[2]->{class_resolver};

    $_[0]->set_prefix($_[2]->{use_prefix}) if exists $_[2]->{use_prefix};
}

sub requestChallenge {
    my ($self, $body, $header) = @_;
    die "requestChallenge must be called as object method (\$self is <$self>)" if not blessed($self);
    return $self->SUPER::call({
        operation => 'requestChallenge',
        soap_action => 'Authentication:AuthenticationPortType#requestChallenge',
        style => 'document',
        body => {
            

           'use'            => 'literal',
            namespace       => 'http://schemas.xmlsoap.org/wsdl/soap/',
            encodingStyle   => '',
            parts           =>  [qw( Geo::EZLocate::Elements::requestChallenge )],
        },
        header => {
            
        },
        headerfault => {
            
        }
    }, $body, $header);
}


sub answerChallenge {
    my ($self, $body, $header) = @_;
    die "answerChallenge must be called as object method (\$self is <$self>)" if not blessed($self);
    return $self->SUPER::call({
        operation => 'answerChallenge',
        soap_action => 'Authentication:AuthenticationPortType#answerChallenge',
        style => 'document',
        body => {
            

           'use'            => 'literal',
            namespace       => 'http://schemas.xmlsoap.org/wsdl/soap/',
            encodingStyle   => '',
            parts           =>  [qw( Geo::EZLocate::Elements::answerChallenge )],
        },
        header => {
            
        },
        headerfault => {
            
        }
    }, $body, $header);
}


sub invalidateCredential {
    my ($self, $body, $header) = @_;
    die "invalidateCredential must be called as object method (\$self is <$self>)" if not blessed($self);
    return $self->SUPER::call({
        operation => 'invalidateCredential',
        soap_action => 'Authentication:AuthenticationPortType#invalidateCredential',
        style => 'document',
        body => {
            

           'use'            => 'literal',
            namespace       => 'http://schemas.xmlsoap.org/wsdl/soap/',
            encodingStyle   => '',
            parts           =>  [qw( Geo::EZLocate::Elements::invalidateCredential )],
        },
        header => {
            
        },
        headerfault => {
            
        }
    }, $body, $header);
}


sub testCredential {
    my ($self, $body, $header) = @_;
    die "testCredential must be called as object method (\$self is <$self>)" if not blessed($self);
    return $self->SUPER::call({
        operation => 'testCredential',
        soap_action => 'Authentication:AuthenticationPortType#testCredential',
        style => 'document',
        body => {
            

           'use'            => 'literal',
            namespace       => 'http://schemas.xmlsoap.org/wsdl/soap/',
            encodingStyle   => '',
            parts           =>  [qw( Geo::EZLocate::Elements::testCredential )],
        },
        header => {
            
        },
        headerfault => {
            
        }
    }, $body, $header);
}




1;



__END__

=pod

=head1 NAME

Geo::EZLocate::Interfaces::Authentication::Authentication - SOAP Interface for the Authentication Web Service

=head1 SYNOPSIS

 use Geo::EZLocate::Interfaces::Authentication::Authentication;
 my $interface = Geo::EZLocate::Interfaces::Authentication::Authentication->new();

 my $response;
 $response = $interface->requestChallenge();
 $response = $interface->answerChallenge();
 $response = $interface->invalidateCredential();
 $response = $interface->testCredential();



=head1 DESCRIPTION

SOAP Interface for the Authentication web service
located at http://mmezl.teleatlas.com/axis/services/Authentication.

=head1 SERVICE Authentication



=head2 Port Authentication



=head1 METHODS

=head2 General methods

=head3 new

Constructor.

All arguments are forwarded to L<SOAP::WSDL::Client|SOAP::WSDL::Client>.

=head2 SOAP Service methods

Method synopsis is displayed with hash refs as parameters.

The commented class names in the method's parameters denote that objects
of the corresponding class can be passed instead of the marked hash ref.

You may pass any combination of objects, hash and list refs to these
methods, as long as you meet the structure.

List items (i.e. multiple occurences) are not displayed in the synopsis.
You may generally pass a list ref of hash refs (or objects) instead of a hash
ref - this may result in invalid XML if used improperly, though. Note that
SOAP::WSDL always expects list references at maximum depth position.

XML attributes are not displayed in this synopsis and cannot be set using
hash refs. See the respective class' documentation for additional information.



=head3 requestChallenge



Returns a L<Geo::EZLocate::Elements::requestChallengeResponse|Geo::EZLocate::Elements::requestChallengeResponse> object.

 $response = $interface->requestChallenge( {
    userName =>  $some_value, # string
    minutesValid =>  $some_value, # int
  },,
 );

=head3 answerChallenge



Returns a L<Geo::EZLocate::Elements::answerChallengeResponse|Geo::EZLocate::Elements::answerChallengeResponse> object.

 $response = $interface->answerChallenge( {
    encryptedResponse =>  $some_value, # int
    originalChallenge =>  $some_value, # int
  },,
 );

=head3 invalidateCredential



Returns a L<Geo::EZLocate::Elements::invalidateCredentialResponse|Geo::EZLocate::Elements::invalidateCredentialResponse> object.

 $response = $interface->invalidateCredential( {
    credential =>  $some_value, # int
  },,
 );

=head3 testCredential



Returns a L<Geo::EZLocate::Elements::testCredentialResponse|Geo::EZLocate::Elements::testCredentialResponse> object.

 $response = $interface->testCredential( {
    ipAddress =>  $some_value, # string
    credential =>  $some_value, # int
    serverCred =>  $some_value, # int
  },,
 );



=head1 AUTHOR

Generated by SOAP::WSDL on Fri Nov  2 14:12:51 2012

=cut