Ein Taschenrechner in Perl - Client mit WSDL

 [Vorheriges Kapitel]  [Vorherige Seite]  [Inhaltsverzeichnis]  [Nächste Seite]  [Nächstes Kapitel]

CallAddWSDL.pl
#!/usr/local/bin/perl -w

use strict;
use SOAP::Lite;

print "result=",
   SOAP::Lite->uri("http://localhost/Calulator")
   ->proxy("http://localhost/axis/Calc.jws")
   ->add(@ARGV[0, 1])
   ->result, "\n";

my $service = SOAP::Lite->service('http://localhost/axis/Calc.jws?wsdl');
print "result=", $service->add(@ARGV[0, 1]), "\n";

*Das Gleiche nochmals --- aber mit WSDL
 

 [Vorheriges Kapitel]  [Vorherige Seite]  [Inhaltsverzeichnis]  [Nächste Seite]  [Nächstes Kapitel]
Copyright © 2003 Ingo Melzer, in HTML konvertiert am 18.01.2004