|
#!/usr/local/bin/perl -w use strict; use SOAP::Lite; print SOAP::Lite -> uri('http://localhost/Demo') -> proxy('http://localhost/perl/hello.pl') -> hi() -> result, "\n"; print SOAP::Lite -> uri('http://localhost/Demo') -> proxy('http://localhost/perl/hello.pl') -> echo("Hallo Welt\n") -> result; |
Ein Aufruf eines Web Services in Perl.
| |
proxy ist die Adresse, die auf dem Server angesprochen wird.
| |
Bei proxy wird auch das Protokoll bestimmt (http, mailto, ftp,
... ).
| |
uri gibt an, was man ueber den proxy ansprechen möchte.
Es handelt sich nur um einen Namen für den Dienst.
|
Copyright © 2003 Ingo Melzer, in HTML konvertiert am 18.01.2004 |