zoneminder/onvif/proxy/lib/WSDiscovery11/Interfaces/WSDiscovery/WSDiscoveryPort.pm

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

132 lines
3.1 KiB
Perl
Raw Normal View History

2014-07-15 02:36:18 +08:00
package WSDiscovery::Interfaces::WSDiscovery::WSDiscoveryPort;
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 WSDiscovery::Typemaps::WSDiscovery
if not WSDiscovery::Typemaps::WSDiscovery->can('get_class');
sub START {
$_[0]->set_proxy('soap.udp://239.255.255.250:3702/') if not $_[2]->{proxy};
$_[0]->set_class_resolver('WSDiscovery::Typemaps::WSDiscovery')
if not $_[2]->{class_resolver};
$_[0]->set_prefix($_[2]->{use_prefix}) if exists $_[2]->{use_prefix};
}
sub ProbeOp {
my ($self, $body, $header) = @_;
die "ProbeOp must be called as object method (\$self is <$self>)" if not blessed($self);
return $self->SUPER::call({
operation => 'ProbeOp',
soap_action => 'http://docs.oasis-open.org/ws-dd/ns/discovery/2009/01/Probe',
style => 'document',
body => {
'use' => 'literal',
namespace => 'http://schemas.xmlsoap.org/wsdl/soap/',
encodingStyle => '',
parts => [qw( WSDiscovery::Elements::Probe )],
},
header => {
},
headerfault => {
}
}, $body, $header);
}
1;
__END__
=pod
=head1 NAME
WSDiscovery::Interfaces::WSDiscovery::WSDiscoveryPort - SOAP Interface for the WSDiscovery Web Service
=head1 SYNOPSIS
use WSDiscovery::Interfaces::WSDiscovery::WSDiscoveryPort;
my $interface = WSDiscovery::Interfaces::WSDiscovery::WSDiscoveryPort->new();
my $response;
$response = $interface->ProbeOp();
=head1 DESCRIPTION
SOAP Interface for the WSDiscovery web service
located at soap.udp://239.255.255.250:3702/.
=head1 SERVICE WSDiscovery
=head2 Port WSDiscoveryPort
=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 ProbeOp
Returns a L<WSDiscovery::Elements::ProbeMatches|WSDiscovery::Elements::ProbeMatches> object.
$response = $interface->ProbeOp( { # WSDiscovery::Types::ProbeType
Types => $some_value, # QNameListType
Scopes => { value => $some_value },
},,
);
=head1 AUTHOR
Generated by SOAP::WSDL on Wed Jul 2 11:45:24 2014
=cut