Hello oh wise ones I am very new to raw perl programming but have been using the TT2 for a while and would like advice on how to tackle building a web service that can be used to aid me in my project. With our TT2 we have custom/pref files containing text, language settings that control the basic running of our website. These are stored in files in a hash table like structure. we would like our users in ecommerce to be able to amend simple parts of this through a GUI tool that uses SOAP. THis will hopefully allow us to expand on the initial requirements.
%SKYLIGHTS_PREFS = ( ############################################### ############################################### ##### STERLING SPECIAL SETTINGS ##### ############################################### ############################################### # Forces the customer to put in their flyme PNR on the contact pag +e! STERLING_FLYME_ENABLED => "false",
etc... this is where I start to get confused.. I can output the hash data using SOAP::lite if i setup a server client type setup...
sub getHash { my $self = shift; #my ($strxml) = $_[0]; my %params = (ref $_[0] eq 'HASH') ? %{$_[0]} : @_; # important adding new line char to reqXML my $reqXML = $params{SkylightsHash}; print "Content-type: text/plain\n\n"; print SOAP::Lite -> uri('http://sterlingSOAP/Demo') -> proxy('http://localhost/skylights/cgi-bin/sterlingSOAP.cgi') -> hi(SOAP::Serializer->serialize($reqXML)) -> result(), "\n"; };
But.. I want the user to work on this type of structure make a change to the text contained and send it back to the server and make a change to the actual pref data that is located in a file. HOw do I start? I am a little lost and the documentation on SOAP is way too much. Thank you in advance... BTW can anyone recommend any good documentation on SOAP::lite and web services in general?

In reply to good material on SOAP::lite + where to find by andyfives

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.