Hi Martin
I've been having a look at the generated classes, and I hope I haven't confused this issue by simplifying my question in a way that obscured the problem.
I can see some generated types that have a namespace set (via the get_xmlns() method), e.g
package MobPayTypes::ConsumerTransportType;
use strict;
use warnings;
sub get_xmlns { 'http://www.mycompany.com/schema/common'};
# derivation by restriction
use base qw(
SOAP::WSDL::XSD::Typelib::Builtin::string);
1;
__END__
=pod
=head1 NAME
=head1 DESCRIPTION
Perl data type class for the XML Schema defined simpleType
ConsumerTransportType from the namespace http://www.dialogue.net/mobpay/schema/common.
This is a simple type. The example that I have a problem with is a complex type with 2 or more sub elements. This is missing the get_xmlns() method
Here is the ClassificationType in full
package MobPayTypes::ClassificationType;
use strict;
use warnings;
__PACKAGE__->_set_element_form_qualified(0);
our $XML_ATTRIBUTE_CLASS;
undef $XML_ATTRIBUTE_CLASS;
sub __get_attr_class {
return $XML_ATTRIBUTE_CLASS;
}
use Class::Std::Fast::Storable constructor => 'none';
use base qw(SOAP::WSDL::XSD::Typelib::ComplexType);
Class::Std::initialize();
{ # BLOCK to scope variables
my %Category_of :ATTR(:get<Category>);
my %Adult_of :ATTR(:get<Adult>);
__PACKAGE__->_factory(
[ qw( Category
Adult
) ],
{
'Category' => \%Category_of,
'Adult' => \%Adult_of,
},
{
'Category' => 'MobPayTypes::ClassificationType::_Category',
'Adult' => 'SOAP::WSDL::XSD::Typelib::Builtin::boolean',
},
{
'Category' => 'Category',
'Adult' => 'Adult',
}
);
} # end BLOCK
package MobPayTypes::ClassificationType::_Category;
use strict;
use warnings;
{
# derivation by restriction
use base qw(
SOAP::WSDL::XSD::Typelib::Builtin::string);
}
1;
=pod
=head1 NAME
MobPayTypes::ClassificationType
=head1 DESCRIPTION
Perl data type class for the XML Schema defined complexType
ClassificationType from the namespace http://www.mycompany.com/schema/common.
I have played with adding the get_xmlns() method into both the ClassificationType and the inner class _Category with no visible success.
Sorry for any bad info.
regards,
tubby