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?