2: They don't. There is NO standard for serving WSDL in relation to the web service.. Some services will return it if they get a QUERY_STRING of wsdl. So for instance, if your access URL is http://server/path, someone might ask for http://server/path?wsdl. WSDL discovery is supposed to be handled through UDDI, but that's just adding a whole 'nother level of complexity to things. As for SOAP::Lite generating WSDL -- it doesn't. It can use it for connecting as a client, but it can't do anything with them as a server. There's SOAP::WSDL, which is supposed to make sure that your return message is properly serialized (as you have to bless your elements with the names that were used for complex types in the WSDL, so that strictly typed languages like Java don't choke on SOAP::Lite's RPC/encoded messages.)

1: I have no idea. I don't run it as a Daemon -- but you can connect to the port w/ telnet, and make sure it's still returning responses, which should give you a clue if it's a problem.

But anyway, a bit of advice on the WSDL side of things -- write the WSDL first, then the service to match the WSDL. The WSDL doesn't have to describe everything, just the best case incoming scenario, and any responses that might be returned from that case. It's much easier than trying to write a WSDL to describe all of the existing quirks in your service. I think getting all of the quirks out of <a href="http://vso1.nascom.nasa.gov/API/sdacVSOi_strict.wsdl">our WSDL</a> took more than a month, and we replaced the serializer to straighten up some of the formatting.


In reply to Re: SOAP::Lite questions by jhourcle
in thread SOAP::Lite questions by DJpumps

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.