[Xml-compile] $wsdl->operation fails with "Not a HASH reference..."

Chase Whitener cwhitener at gmail.com
Fri Nov 15 23:36:28 GMT 2013


Hi Christian,

You found the correct answer.  I recently had the same issue.  See the link
below for how to properly include the XML::Compile:: modules to get your
code working.

-- Chase

https://gist.github.com/genio/6597241

On Friday, November 15, 2013, Reiber Christian wrote:

> Hi all,
>
> when running any WSDL in $wdsl->operation or $wsdl->compileClient I end up
> with "Not a HASH reference at
> /home/zarbr/SOAP/perl/lib/perl5/site_perl/5.10.0/XML/Compile/WSDL11.pm li=
ne
> 229".
> $port at that point contains
>
> $VAR1 =3D {
>           'soap_address' =3D> [
>                             bless( do{\(my $o =3D 25711024)},
> 'XML::LibXML::Element' )
>                           ],
>           'binding' =3D> '{
> http://example.com/stockquote/service}StockQuoteSoapBinding',
>           'name' =3D> 'StockQuotePort'
>         };
>
> This uses the nice little WSDL and the accompanying code from the YAPC
> presentation at perl.overmeer.net but other examples fail as well.
> Modules are a fresh install and libxml2 is up-to-date. Just the installed
> Perl version is not the youngest (5.10.0)...
>
> I found the post on gmane.org which describes the same issue but my
> "hooray" was premature... I nowhere found the "use ...::SOAP" vs. "use
> ...::SOAP11" in the code.
>
> And as the guy from this post I also have a strong feeling that I have
> done something awefully wrong and expect things becoming embarrassing for
> me :-)
>
> Thanks for reading and for any hint ... Christian
>
> -------------------------------------------------------------------------=
----
> Zeppelin Baumaschinen GmbH
>
> Handelsregister - Commercial register: AG M=FCnchen HRB 107767
> Sitz - Registered Domicile: D-85748 Garching b. M=FCnchen
>
> Vorsitzender des Aufsichtsrats - Chairman of the Supervisory Board: Peter
> Gerstmann
> Gesch=E4ftsf=FChrer - General Manager: Michael Heidemann(Vorsitzender -
> Chairman), Fred Cordes, Arne Severin, Thomas Weber
>
> -------------------------------------------------------------------------=
----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/xml-compile/attachments/20131115/13=
21118e/attachment.htm


More information about the Xml-compile mailing list