[Xml-compile] element `{foo}bar' not processed

Stig Brautaset stig at brautaset.org
Wed Sep 2 18:03:36 GMT 2009


On 2 Sep 2009, at 18:31, Mark Overmeer wrote:
>> trying all day to simply ignore the 'industries' element, with  
>> hooks or
>> whatnot, but I haven't been able to do so.
>> I'd really love it if anybody could let me know if it is possible.
>
> With hooks you can skip parsing nodes based on a type.  Should work
> something like this:
>
>  my $wsdl = XML::Compile::WSDL11->new('my.wsdl'
>    , prefixes => [ tns => .... ] );
>  $wsdl->addHook(type => "tns:CXIndustry", replace => 'SKIP');
>  my $get  = $wsdl->compileClient('getBasket');

Thanks, I'll try this!

>> I wonder if it could be because xsi:type is used to specify whether  
>> it
>> is CXComponent or Component, and the industries element just  
>> happens to
>> be encountered first?
>
> xsi:type is not (yet) supported: has too many performance  
> consequences.
> It's an old-fashioned construction: you should use substitutionGroups.

Unfortunately the wsdl is generated by a Java backend that I have no  
control over. It works with our Java and C# clients. :/

Stig
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/xml-compile/attachments/20090902/d5737aa5/attachment.htm


More information about the Xml-compile mailing list