Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7716d4349a |
@@ -2,19 +2,25 @@ use Module::Build;
|
|||||||
Module::Build->new(
|
Module::Build->new(
|
||||||
dist_abstract => 'SOAP with WSDL support',
|
dist_abstract => 'SOAP with WSDL support',
|
||||||
dist_name => 'SOAP-WSDL',
|
dist_name => 'SOAP-WSDL',
|
||||||
dist_version => '2.00_01',
|
dist_version => '2.00_02',
|
||||||
module_name => 'SOAP::WSDL',
|
module_name => 'SOAP::WSDL',
|
||||||
license => 'artistic',
|
license => 'artistic',
|
||||||
requires => {
|
requires => {
|
||||||
|
'Class::Std' => q/v0.0.8/,
|
||||||
|
'Class::Std::Storable' => 0,
|
||||||
'SOAP::Lite' => 0,
|
'SOAP::Lite' => 0,
|
||||||
'XML::XPath' => 0,
|
'XML::XPath' => 0,
|
||||||
'XML::LibXML' => 0,
|
'XML::LibXML' => 0,
|
||||||
'XML::SAX::Base' => 0,
|
'XML::SAX::Base' => 0,
|
||||||
'XML::SAX::ParserFactory' => 0,
|
'XML::SAX::ParserFactory' => 0,
|
||||||
},
|
},
|
||||||
buildrequires => { 'Test::More' => 0,
|
buildrequires => {
|
||||||
|
'Test::More' => 0,
|
||||||
'SOAP::Lite' => 0,
|
'SOAP::Lite' => 0,
|
||||||
|
'Class::Std' => 0.0.8,
|
||||||
|
'Class::Std::Storable' => 0,
|
||||||
'XML::XPath' => 0,
|
'XML::XPath' => 0,
|
||||||
|
'XML::Simple' => 0,
|
||||||
'XML::LibXML' => 0,
|
'XML::LibXML' => 0,
|
||||||
'XML::SAX::Base' => 0,
|
'XML::SAX::Base' => 0,
|
||||||
'XML::SAX::ParserFactory' => 0,
|
'XML::SAX::ParserFactory' => 0,
|
||||||
|
|||||||
@@ -1,11 +1,13 @@
|
|||||||
---
|
---
|
||||||
name: SOAP-WSDL
|
name: SOAP-WSDL
|
||||||
version: 2.00_01
|
version: 2.00_02
|
||||||
author:
|
author:
|
||||||
- "Replace the whitespace in the e-mail adresses by '@'."
|
- "Replace the whitespace in the e-mail adresses by '@'."
|
||||||
abstract: SOAP with WSDL support
|
abstract: SOAP with WSDL support
|
||||||
license: artistic
|
license: artistic
|
||||||
requires:
|
requires:
|
||||||
|
Class::Std: v0.0.8
|
||||||
|
Class::Std::Storable: 0
|
||||||
SOAP::Lite: 0
|
SOAP::Lite: 0
|
||||||
XML::LibXML: 0
|
XML::LibXML: 0
|
||||||
XML::SAX::Base: 0
|
XML::SAX::Base: 0
|
||||||
|
|||||||
@@ -225,7 +225,7 @@ use base qw(
|
|||||||
);
|
);
|
||||||
|
|
||||||
[% FOREACH element = type.get_element %]
|
[% FOREACH element = type.get_element %]
|
||||||
my %[% element.get_name %]_of :ATTR(get:<[% element.get_name %]>);
|
my %[% element.get_name %]_of :ATTR(:get<[% element.get_name %]>);
|
||||||
[% END %]
|
[% END %]
|
||||||
|
|
||||||
__PACKAGE__->_factory(
|
__PACKAGE__->_factory(
|
||||||
|
|||||||
+15
-1
@@ -18,12 +18,26 @@ ok $obj->isa('SOAP::WSDL::XSD::Typelib::Builtin::anyType')
|
|||||||
, 'inherited class';
|
, 'inherited class';
|
||||||
|
|
||||||
ok $obj->get_test->isa('SOAP::WSDL::XSD::Typelib::Builtin::string')
|
ok $obj->get_test->isa('SOAP::WSDL::XSD::Typelib::Builtin::string')
|
||||||
, 'element isa';
|
, 'element isa';
|
||||||
|
|
||||||
is $obj, '<MyAtomicComplexTypeElement xmlns="urn:Test" ><MyTestElement >Test</MyTestElement>'
|
is $obj, '<MyAtomicComplexTypeElement xmlns="urn:Test" ><MyTestElement >Test</MyTestElement>'
|
||||||
. '<MyTestElement2 >Test2</MyTestElement2></MyAtomicComplexTypeElement>'
|
. '<MyTestElement2 >Test2</MyTestElement2></MyAtomicComplexTypeElement>'
|
||||||
, 'stringification';
|
, 'stringification';
|
||||||
|
|
||||||
|
$obj = MyElement->new({ value => undef});
|
||||||
|
ok $obj->isa('SOAP::WSDL::XSD::Typelib::Builtin::anySimpleType')
|
||||||
|
, 'inherited class';
|
||||||
|
|
||||||
|
# is $obj, '<MyElementName xmlns="urn:Test" xsi:nil="true" />', 'nillable stringification';
|
||||||
|
|
||||||
|
$obj = MyAtomicComplexTypeElement->new({ test=> 'Test', test2 => [ 'Test2', 'Test3' ]});
|
||||||
|
ok $obj->isa('SOAP::WSDL::XSD::Typelib::Builtin::anyType')
|
||||||
|
, 'inherited class';
|
||||||
|
is $obj, '<MyAtomicComplexTypeElement xmlns="urn:Test" ><MyTestElement >Test</MyTestElement>'
|
||||||
|
. '<MyTestElement2 >Test2</MyTestElement2>'
|
||||||
|
. '<MyTestElement2 >Test3</MyTestElement2>'
|
||||||
|
. '</MyAtomicComplexTypeElement>'
|
||||||
|
, 'multi value stringification';
|
||||||
|
|
||||||
|
|
||||||
__END__
|
__END__
|
||||||
|
|||||||
Reference in New Issue
Block a user