Greetings Monks-

I am in dire need of assistance with SOAP::WSDL. I'll admit upfront to being an average Perl programmer, and knowing little to nothing about WSDL, however, I've been thrust to the front lines and am confounded.

I'm working with our internal .NET team and they've chosen (or perhaps mandated) this format, and they also are using (and require) Complex datatypes. From what I read, this makes using SOAP::LITE more challenging, so I opted to go with SOAP::WSDL.

If I try to generate the bindings through wsdl2perl.pl I get many things generated, but I don't get any interfaces. Which seems to mean to me that something is failing.

When I call SOAP::WSDL directly like so:

use warnings; use strict; use SOAP::WSDL; use Data::Dumper; my $soap = SOAP::WSDL->new( wsdl => 'http://bar.foo.com/EventServices.svc?wsdl', ); my $result = $soap->call('NewEvent', %data); my ($body_ref,$header_ref); print Dumper($result);
I get the following error
cannot import document from namespace >http://tempuri.org/< without ba +se uri. Use >parse_uri< or >set_uri< to set one. at /usr/local/lib/pe +rl5/site_perl/5.10.1/SOAP/WSDL/Expat/WSDLParser.pm line 96. at line 1 at /usr/local/lib/perl5/site_perl/5.10.1/SOAP/WSDL/Expat/Ba +se.pm line 82

I've been googling to the point my eyes are bleeding. If I could wrap an answer around the problem that isn't "It's .NET's fault" I may be able to make some progress between us. For right now the attitude is one of "you're tools (meaning Perl) can't handle it".


In reply to wsdl2perl.pl & SOAP::WSDL by the.duck

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.