Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Comment on

( #3333=superdoc: print w/replies, xml ) Need Help??

I'm trying to connect to a WSDL service at the company I'm consulting to. I should state that I'm a complete newbie with SOAP and WSDL, although I've done plenty of other things with XML. The people in charge of the WSDL services don't speak Perl or anything other than Java, so they haven't been very helpful. My first step was to try to generate some classes, using the URL they gave me:

~$ -b wsdl_test/ -s http://sv-websvc-t1:9080/UAASCIAMWebS +ervices/services/UAASPort Use of uninitialized value $namespace in hash element at /opt/perl/lib +/site_perl/5.12.2/SOAP/WSDL/ line 235. Use of uninitialized value $namespace in hash element at /opt/perl/lib +/site_perl/5.12.2/SOAP/WSDL/ line 235. junk after document element at line 2, column 0, byte 64 at /opt/perl/ +lib/site_perl/5.12.2/SOAP/WSDL/Expat/ line 79 at line 2 at /opt/perl/lib/site_perl/5.12.2/SOAP/WSDL/Expat/ l +ine 82

I tried the trick I saw on a couple of posts here and tried appending '?wsdl' to their URL to get the WSDL, but that gave me another error. So they said "no, the WSDL is at another url", so I tried that:

~$ -b wsdl_test/ http://sv-websvc-t1:9080/UAASCIAMWebServ +ices/services/UAASPort/wsdl/ciam_uaas.wsdl [snip lots of "Creating complexType class" messages] Creating element class MyElements/ unsupported global type <faults:BaseFault> found in part <baseFault> Looks like a rpc/literal WSDL, which is not supported by SOAP::WSDL

I can't see anything in faults::BaseFault that looks any different from any other fault. wsdl_test/MyTypes/ has PM files for all of the types in faults.xsd including BaseFault, so I'm not sure what the error is telling me.

But more important (I think) is that I don't see the promised interface classes. How can I connect to this service?

In reply to SOAP::WSDL isn't generating interfaces by ptomblin

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, 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, 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.
  • Log In?

    What's my password?
    Create A New User
    and all is quiet...

    How do I use this? | Other CB clients
    Other Users?
    Others imbibing at the Monastery: (8)
    As of 2018-06-21 19:48 GMT
    Find Nodes?
      Voting Booth?
      Should cpanminus be part of the standard Perl release?

      Results (119 votes). Check out past polls.