|
|
| Syntactic Confectionery Delight | |
| PerlMonks |
SOAP server must offer WSDL document tooby Hue-Bond (Priest) |
| on Aug 07, 2006 at 02:48 UTC ( [id://565898]=perlquestion: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.Hue-Bond has asked for the wisdom of the Perl Monks concerning the following question: I'm trying to make a SOAP request from javascript using AJAX, thus getting my feet wet with two technologies and one programming language at the same time :^). I'm using a javascript SOAP client I've found here [guru4.net]. This client asks for the WSDL first, and does so by appending ?wsdl to the URL of the SOAP service. So my simple SOAP service:
Became:
This code has a problem: CGI->new eats the input to the script and chokes on it. I remedied it by doing my $q = CGI->new ('') but this prevents me from accesing $q->keywords. So I had to resort to $ENV{'QUERY_STRING'}. The final code reads:
I realize that right now, CGI.pm is only used to send the proper header to the client. I think this is a good thing and see no point in removing CGI.pm from the equation, since probably Apache will have to load it for other scripts anyway. This runs under mod_perl, by the way. Is this an acceptable way of doing it? Or is there a "better"TM method? --
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||