A few months ago I dabbled with SOAP and was ok calling a service and getting data from it. Trouble is not touched Perl since but I'd like to write a prototype to further my knowledge though am not entirely clear where to start.

I'd like to write a service that listens on a port with no need for a separate web server (ie. Apache). It would receive XML in a specific format and then act upon that data. I also need a client to test it.

Reading up it seems like I need:

  • SOAP::Lite for the server and client
  • WSDL service on the server
  • XML::LibXML to parse the XML
  • But I'm not entirely sure how this all hangs together and the more I google the more confused I become. This would seem a very straight forward a task but every example I've seen seems more complex and/or relies on Apache and inserting the Perl as CGI.

    Does anyone have a sample bit of code that view? ie. Basic server to receive two tags in an XML file over a port? Tend to find I need examples to get me that initial leg up!

    Any help would be greatly appreciated.


    In reply to SOAP, WSDL, XML service/client by agentorange

    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.