[Xml-compile] XML::Compile::WSDL11 in perl debugger

Brian Phillips bpphillips+ml at gmail.com
Wed Sep 9 17:23:34 GMT 2009


Has anyone else had issues parsing WSDLs in the perl debugger with
XML::Compile::SOAP?  I grabbed the sample WSDL from
http://www.w3.org/TR/wsdl#_wsdl and then did this:% perl
-MXML::Compile::WSDL11 -e 'XML::Compile::WSDL11->new("sample.wsdl")'

If you let the debugger run without stepping through, it hangs completely
after a few seconds and doesn't respond to anything short of a kill -9.  I
turned tracing on to verify that it wasn't just running slowly and it does
indeed stop at a consistent point:

in  @=3DCODE(0xa844318)(ref(XML::LibXML::Element)) from
/private/cpan/lib/perl5/XML/Compile/Translate/Reader.pm:610
 in  $=3DXML::LibXML::Element::getAttributeNodeNS(ref(XML::LibXML::Element),
'', 'element') from
/private/cpan/lib/perl5/XML/Compile/Translate/Reader.pm:897
 in  $=3DCODE(0xa84a4dc)(ref(XML::LibXML::Attr)) from
/private/cpan/lib/perl5/XML/Compile/Translate/Reader.pm:899
  in  $=3DXML::LibXML::Node::textContent(ref(XML::LibXML::Attr)) from
/private/cpan/lib/perl5/XML/Compile/Translate/Reader.pm:770
  in  $=3DCODE(0xa5436e4)('xsd1:TradePrice', ref(XML::LibXML::Attr)) from
/private/cpan/lib/perl5/XML/Compile/Translate/Reader.pm:772
   in  $=3Dutf8::SWASHNEW('utf8', '', '# comment^J', 1, 0) from
/private/cpan/lib/perl5/XML/Compile/Schema/BuiltInTypes.pm:484
   in  .=3Dutf8::DESTROY(ref(utf8)) from
/private/cpan/lib/perl5/XML/Compile/Schema/BuiltInTypes.pm:484
   in  $=3Dutf8::SWASHGET(ref(utf8), 0, 128) from
/private/cpan/lib/perl5/XML/Compile/Schema/BuiltInTypes.pm:484

I was first experiencing this with a much more complicated WSDL at $work and
decided to try a simpler WSDL but the size/complexity of the WSDL doesn't
seem to make any difference.  Changing the Log::Report level to DEBUG causes
it to fail much earlier (again, in a consistent point in the code) which
seems indicative of something that I can't quite put my finger on.

BTW, this is on the latest versions of XML::Compile (1.07) and XML::Compile
SOAP (2.08).

Any help would be greatly appreciated as this makes it very tricky to debug
code that uses XML::Compile.

Thanks!
Brian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/xml-compile/attachments/20090909/1c=
7ca918/attachment.htm


More information about the Xml-compile mailing list