* Nick Wellnhofer via RT (bug-XML-Compile-SOAP@rt.cpan.org) [150610 20:13]:
Show quoted text> Wed Jun 10 16:12:54 2015: Request 105161 was acted upon.
> Transaction: Ticket created by NWELLNHOF
> Queue: XML-Compile-SOAP
> Subject: Extensions that add headers break when SOAP11::Encoding is used
>
> This might be related to RT #99735. I have a
> XML::Compile::SOAP::Extension that adds a header.
Unrelated: that issue showed-up because there were to separate $wsdl objects
in the code.
Show quoted text> error: cannot find unnamed complex as simpleType or complexType
> A simple way to reproduce is to add 'use XML::Compile::SOAP11::Encoding'
> to t/30wsdl11.t from XML::Compile::SOAP::WSA. Then I get:
Very helpful.
The patch is very simple. In XML::Compile::Schema::Namespaces
sub doesExtend($$)
{ my ($self, $ext, $base) = @_;
return 1 if $ext eq $base;
+ return 0 if $ext =~ m/^unnamed /;
my ($node, $super, $subnode);
The ::Encoding uses a hook which uses the 'extends' feature, to apply
some sub on all elements of a type extending some base type. But not
all types have a name, so not all elements have information in the schema.
I have released XML::Compile version 1.49 to CPAN which contains this
fix. It may take Pause some time to distribute it.
--
thanks for the report,
MarkOv
------------------------------------------------------------------------
Mark Overmeer MSc MARKOV Solutions
Mark@Overmeer.net solutions@overmeer.net
http://Mark.Overmeer.net http://solutions.overmeer.net