Hello Perl Monks,

I have a project where I am supposed to access a web service using XML/SOAP to check for the spelling of some texts. The web service is located at http://ws.cdyne.com/SpellChecker/check.asmx. I looked around this site and the XML protocol format that it accepts is:
http://ws.cdyne.com/spellchecker/check.asmx?op=CheckTextBody
SOAP 1.2 The following is a sample SOAP 1.2 request and response. The placehold +ers shown need to be replaced with actual values. POST /spellchecker/check.asmx HTTP/1.1 Host: ws.cdyne.com Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://ww +w.w3.org/2003/05/soap-envelope"> <soap12:Body> <CheckTextBody xmlns="http://ws.cdyne.com/"> <BodyText>string</BodyText> <LicenseKey>string</LicenseKey> </CheckTextBody> </soap12:Body> </soap12:Envelope> HTTP/1.1 200 OK Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://ww +w.w3.org/2003/05/soap-envelope"> <soap12:Body> <CheckTextBodyResponse xmlns="http://ws.cdyne.com/"> <DocumentSummary> <MisspelledWord> <Suggestions>string</Suggestions> <Suggestions>string</Suggestions> <word>string</word> <SuggestionCount>int</SuggestionCount> </MisspelledWord> <MisspelledWord> <Suggestions>string</Suggestions> <Suggestions>string</Suggestions> <word>string</word> <SuggestionCount>int</SuggestionCount> </MisspelledWord> <ver>string</ver> <body>string</body> <MisspelledWordCount>int</MisspelledWordCount> </DocumentSummary> </CheckTextBodyResponse> </soap12:Body> </soap12:Envelope>
I have created a simple HTML interface for the user to enter the text for spell check but am not sure how to proceed on connecting to this web site and sending the text over and retrieving the XML response back. What kind of module to I need to include in my Perl script? use xml::simple? Please help. Some simple script to help me started would be appreciated.

Thanks.
Here is my html interface to take the user input:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> <html> <head> <title>OS2 - Lab3 Project</title> </head> <body> <center><b><font size="+3">Online Spellchecker via SOAP and XML</b></c +enter> <br> <br> <p> <form method="post" action="cgi-bin/check.cgi"> <b>Enter text:</b><textarea cols="45" rows="5" name="text"></textarea> <br> <pre> <input type="submit" name="submit" value="Submit"></ +pre> <br> <b>Correction:</b><textarea cols="45" rows="5" name="response"></texta +rea> <p> <p> <br> </form> </body> </html>

In reply to Help with using XML SpellChecker Service by Anonymous Monk

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.