Compare commits

...
1 Commits
Author SHA1 Message Date
Martin Kutter 7ba2f93e44 import SOAP-WSDL 2.00_15 from CPAN
git-cpan-module:   SOAP-WSDL
git-cpan-version:  2.00_15
git-cpan-authorid: MKUTTER
git-cpan-file:     authors/id/M/MK/MKUTTER/SOAP-WSDL-2.00_15.tar.gz
2009-12-12 19:47:55 -08:00
14 changed files with 54 additions and 34 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ Module::Build->new(
create_makefile_pl => 'passthrough', create_makefile_pl => 'passthrough',
dist_abstract => 'SOAP with WSDL support', dist_abstract => 'SOAP with WSDL support',
dist_name => 'SOAP-WSDL', dist_name => 'SOAP-WSDL',
dist_version => '2.00_14', dist_version => '2.00_15',
module_name => 'SOAP::WSDL', module_name => 'SOAP::WSDL',
license => 'artistic', license => 'artistic',
requires => { requires => {
+10 -1
View File
@@ -1,4 +1,4 @@
Release notes for SOAP::WSDL 2.00_14 Release notes for SOAP::WSDL 2.00_15
------- -------
I'm very happy to present a new pre-release version of SOAP::WSDL. I'm very happy to present a new pre-release version of SOAP::WSDL.
@@ -27,6 +27,15 @@ Features:
The following changes have been made: The following changes have been made:
2.00_15
----
The following bugs have been fixed (the numbers in square brackets are the
tracker IDs from https://sourceforge.net/tracker/?group_id=111978&atid=660921):
* [ 1792321 ] 2.00_14 requires SOAP::Lite for passing tests
Fixed.
2.00_14 2.00_14
---- ----
+2 -2
View File
@@ -1,6 +1,6 @@
--- ---
name: SOAP-WSDL name: SOAP-WSDL
version: 2.00_14 version: 2.00_15
author: author:
abstract: SOAP with WSDL support abstract: SOAP with WSDL support
license: artistic license: artistic
@@ -40,7 +40,7 @@ provides:
version: 2.00_13 version: 2.00_13
SOAP::WSDL::Deserializer::SOM: SOAP::WSDL::Deserializer::SOM:
file: lib/SOAP/WSDL/Deserializer/SOM.pm file: lib/SOAP/WSDL/Deserializer/SOM.pm
version: 2.00_14 version: 2.00_15
SOAP::WSDL::Expat::MessageParser: SOAP::WSDL::Expat::MessageParser:
file: lib/SOAP/WSDL/Expat/MessageParser.pm file: lib/SOAP/WSDL/Expat/MessageParser.pm
SOAP::WSDL::Expat::MessageStreamParser: SOAP::WSDL::Expat::MessageStreamParser:
+8 -11
View File
@@ -2,19 +2,16 @@ package SOAP::WSDL::Deserializer::SOM;
use strict; use strict;
use warnings; use warnings;
our $VERSION = '2.00_14'; our $VERSION = '2.00_15';
our @ISA = qw(SOAP::Deserializer); our @ISA;
my $HAVE_SOAP_LITE = eval { require SOAP::Lite }; eval {
require SOAP::Lite;
sub deserialize { push @ISA, 'SOAP::Deserializer';
my $self = shift;
die 'Cannot deserialize to SOM object without SOAP::Lite.
Please install SOAP::Lite.
'
if not $HAVE_SOAP_LITE;
$self->SUPER::deserialize(@_);
} }
or die "Cannot load SOAP::Lite.
Cannot deserialize to SOM object without SOAP::Lite.
Please install SOAP::Lite.";
sub generate_fault { sub generate_fault {
my ($self, $args_from_ref) = @_; my ($self, $args_from_ref) = @_;
+4
View File
@@ -42,6 +42,10 @@ ok $soap->wsdlinit(
), 'parse WSDL'; ), 'parse WSDL';
ok $soap->no_dispatch(1), 'set no dispatch'; ok $soap->no_dispatch(1), 'set no dispatch';
# won't work without - would require SOAP::WSDL::Deserializer::SOM,
# which requires SOAP::Lite
$soap->outputxml(1);
ok ($xml = $soap->call('test', ok ($xml = $soap->call('test',
testAll => { testAll => {
Test1 => 'Test 1', Test1 => 'Test 1',
+4
View File
@@ -28,6 +28,10 @@ ok( $soap = SOAP::WSDL->new(
no_dispatch => 1, no_dispatch => 1,
), 'Instantiated object' ); ), 'Instantiated object' );
# won't work without - would require SOAP::WSDL::Deserializer::SOM,
# which requires SOAP::Lite
$soap->outputxml(1);
ok ($xml = $soap->call('test', ok ($xml = $soap->call('test',
testAll => { testAll => {
Test2 => 'Test2', Test2 => 'Test2',
+5
View File
@@ -36,6 +36,11 @@ ok( $soap->wsdlinit(
), 'parsed WSDL' ); ), 'parsed WSDL' );
$soap->no_dispatch(1); $soap->no_dispatch(1);
# won't work without - would require SOAP::WSDL::Deserializer::SOM,
# which requires SOAP::Lite
$soap->outputxml(1);
#4 #4
ok $xml = $soap->call('test', ok $xml = $soap->call('test',
testSequence => { testSequence => {
+5 -2
View File
@@ -26,6 +26,11 @@ ok( $soap = SOAP::WSDL->new(
#3 #3
$soap->readable(1); $soap->readable(1);
# won't work without - would require SOAP::WSDL::Deserializer::SOM,
# which requires SOAP::Lite
$soap->outputxml(1);
ok( $soap->wsdlinit( ok( $soap->wsdlinit(
servicename => 'testService', servicename => 'testService',
), 'parsed WSDL' ); ), 'parsed WSDL' );
@@ -34,8 +39,6 @@ $soap->no_dispatch(1);
ok ( $xml = $soap->call('test', testElement1 => 1 ) , ok ( $xml = $soap->call('test', testElement1 => 1 ) ,
'Serialized (simpler) element' ); 'Serialized (simpler) element' );
# print $xml, "\n";
TODO: { TODO: {
local $TODO="implement min/maxOccurs checks"; local $TODO="implement min/maxOccurs checks";
+2
View File
@@ -30,6 +30,8 @@ ok( $soap = SOAP::WSDL->new(
#3 #3
$soap->readable(1); $soap->readable(1);
$soap->outputxml(1);
ok( $soap->wsdlinit( ok( $soap->wsdlinit(
servicename => 'testService', servicename => 'testService',
), 'parsed WSDL' ); ), 'parsed WSDL' );
+3
View File
@@ -23,6 +23,9 @@ ok( $soap = SOAP::WSDL->new(
), 'Instantiated object' ); ), 'Instantiated object' );
$soap->readable(1); $soap->readable(1);
# won't work without - would require SOAP::WSDL::Deserializer::SOM,
# which requires SOAP::Lite
$soap->outputxml(1);
#3 #3
ok( $soap->wsdlinit( ok( $soap->wsdlinit(
+3
View File
@@ -31,6 +31,9 @@ ok( $soap->wsdlinit(
), 'parsed WSDL' ); ), 'parsed WSDL' );
$soap->no_dispatch(1); $soap->no_dispatch(1);
$soap->autotype(0); $soap->autotype(0);
# won't work without - would require SOAP::WSDL::Deserializer::SOM,
# which requires SOAP::Lite
$soap->outputxml(1);
#4 #4
ok $xml = $soap->call('test', testAll => [ 1, 2 ] ) , 'Serialize list call'; ok $xml = $soap->call('test', testAll => [ 1, 2 ] ) , 'Serialize list call';
+3
View File
@@ -26,6 +26,9 @@ ok $soap = SOAP::WSDL->new(
$soap->readable(1); $soap->readable(1);
ok $soap->wsdlinit(), 'parsed WSDL'; ok $soap->wsdlinit(), 'parsed WSDL';
$soap->no_dispatch(1); $soap->no_dispatch(1);
# won't work without - would require SOAP::WSDL::Deserializer::SOM,
# which requires SOAP::Lite
$soap->outputxml(1);
#4 #4
ok $xml = $soap->call('test', testAll => 1 ) , 'Serialized call'; ok $xml = $soap->call('test', testAll => 1 ) , 'Serialized call';
+4
View File
@@ -43,6 +43,10 @@ ok $soap = SOAP::WSDL->new(
no_dispatch => 1 no_dispatch => 1
), 'Create SOAP::WSDL object'; ), 'Create SOAP::WSDL object';
# won't work without - would require SOAP::WSDL::Deserializer::SOM,
# which requires SOAP::Lite
$soap->outputxml(1);
$soap->proxy('http://helloworld/helloworld.asmx'); $soap->proxy('http://helloworld/helloworld.asmx');
ok $soap->wsdlinit( ok $soap->wsdlinit(
-17
View File
@@ -27,20 +27,3 @@ ok( $soap = SOAP::WSDL->new(
ok $soap->wsdlinit( url => $url ); ok $soap->wsdlinit( url => $url );
ok $soap->servicename('testService'); ok $soap->servicename('testService');
ok $soap->portname('testPort'); ok $soap->portname('testPort');
__END__
my $xpath = $soap->_wsdl_xpath( );
my @ports = $xpath->findnodes( '/definitions/service[@name="' . $soap->servicename() . '"]/port/soap:address[@location="' . $url .'"]');
if (@ports)
{
print "# found testPort URL\n";
my $address = shift @ports;
my $port = $address->getParentNode();
print $port->getAttribute('binding'), "\n";
print $port->getAttribute('name'), "\n";
}