1 package Geo::EZLocate::Interfaces::Geocoding::Geocoding;
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::Geocoding
10 if not Geo::EZLocate::Typemaps::Geocoding->can('get_class');
13 $_[0]->set_proxy('http://mmezl.teleatlas.com/axis/services/Geocoding') if not $_[2]->{proxy};
14 $_[0]->set_class_resolver('Geo::EZLocate::Typemaps::Geocoding')
15 if not $_[2]->{class_resolver};
17 $_[0]->set_prefix($_[2]->{use_prefix}) if exists $_[2]->{use_prefix};
21 my ($self, $body, $header) = @_;
22 die "getServices must be called as object method (\$self is <$self>)" if not blessed($self);
23 return $self->SUPER::call({
24 operation => 'getServices',
25 soap_action => 'Geocoding:GeocodingPortType#getServices',
31 namespace => 'http://schemas.xmlsoap.org/wsdl/soap/',
33 parts => [qw( Geo::EZLocate::Elements::getServices )],
45 sub getServiceDescription {
46 my ($self, $body, $header) = @_;
47 die "getServiceDescription must be called as object method (\$self is <$self>)" if not blessed($self);
48 return $self->SUPER::call({
49 operation => 'getServiceDescription',
50 soap_action => 'Geocoding:GeocodingPortType#getServiceDescription',
56 namespace => 'http://schemas.xmlsoap.org/wsdl/soap/',
58 parts => [qw( Geo::EZLocate::Elements::getServiceDescription )],
71 my ($self, $body, $header) = @_;
72 die "findAddress must be called as object method (\$self is <$self>)" if not blessed($self);
73 return $self->SUPER::call({
74 operation => 'findAddress',
75 soap_action => 'Geocoding:GeocodingPortType#findAddress',
81 namespace => 'http://schemas.xmlsoap.org/wsdl/soap/',
83 parts => [qw( Geo::EZLocate::Elements::findAddress )],
95 sub findMultiAddress {
96 my ($self, $body, $header) = @_;
97 die "findMultiAddress must be called as object method (\$self is <$self>)" if not blessed($self);
98 return $self->SUPER::call({
99 operation => 'findMultiAddress',
100 soap_action => 'Geocoding:GeocodingPortType#findMultiAddress',
106 namespace => 'http://schemas.xmlsoap.org/wsdl/soap/',
108 parts => [qw( Geo::EZLocate::Elements::findMultiAddress )],
132 Geo::EZLocate::Interfaces::Geocoding::Geocoding - SOAP Interface for the Geocoding Web Service
136 use Geo::EZLocate::Interfaces::Geocoding::Geocoding;
137 my $interface = Geo::EZLocate::Interfaces::Geocoding::Geocoding->new();
140 $response = $interface->getServices();
141 $response = $interface->getServiceDescription();
142 $response = $interface->findAddress();
143 $response = $interface->findMultiAddress();
149 SOAP Interface for the Geocoding web service
150 located at http://mmezl.teleatlas.com/axis/services/Geocoding.
152 =head1 SERVICE Geocoding
156 =head2 Port Geocoding
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.
194 Returns a L<Geo::EZLocate::Elements::getServicesResponse|Geo::EZLocate::Elements::getServicesResponse> object.
196 $response = $interface->getServices( {
197 identity => $some_value, # int
201 =head3 getServiceDescription
205 Returns a L<Geo::EZLocate::Elements::getServiceDescriptionResponse|Geo::EZLocate::Elements::getServiceDescriptionResponse> object.
207 $response = $interface->getServiceDescription( {
208 service => $some_value, # string
209 identity => $some_value, # int
217 Returns a L<Geo::EZLocate::Elements::findAddressResponse|Geo::EZLocate::Elements::findAddressResponse> object.
219 $response = $interface->findAddress( {
220 service => $some_value, # string
221 input => { # Geo::EZLocate::Types::Record
222 nv => { # Geo::EZLocate::Types::NameValue
223 name => $some_value, # string
224 value => $some_value, # string
227 identity => $some_value, # int
231 =head3 findMultiAddress
235 Returns a L<Geo::EZLocate::Elements::findMultiAddressResponse|Geo::EZLocate::Elements::findMultiAddressResponse> object.
237 $response = $interface->findMultiAddress( {
238 service => $some_value, # string
239 inputs => { # Geo::EZLocate::Types::RecordSequence
240 record => { # Geo::EZLocate::Types::Record
241 nv => { # Geo::EZLocate::Types::NameValue
242 name => $some_value, # string
243 value => $some_value, # string
247 identity => $some_value, # int
255 Generated by SOAP::WSDL on Fri Nov 2 14:12:17 2012