From: Aleš Křenek Date: Thu, 18 Dec 2008 09:07:13 +0000 (+0000) Subject: prototype, not working on sl4 due to SSL X-Git-Tag: test_tag~17 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=64866d1f59309951b39f83c7794a984e7c638dc0;p=jra1mw.git prototype, not working on sl4 due to SSL --- diff --git a/org.glite.lb.ws-test/examples/ws_getversion.pl b/org.glite.lb.ws-test/examples/ws_getversion.pl new file mode 100755 index 0000000..7b8604f --- /dev/null +++ b/org.glite.lb.ws-test/examples/ws_getversion.pl @@ -0,0 +1,28 @@ +#!/usr/bin/perl + +use SOAP::Lite; # +trace; +use Data::Dumper; + +$ENV{HTTPS_CA_DIR}='/etc/grid-security/certificates'; +$ENV{HTTPS_VERSION}='3'; + +$ENV{HTTPS_CA_FILE}= $ENV{HTTPS_CERT_FILE} = $ENV{HTTPS_KEY_FILE} = + $ENV{X509_USER_PROXY} ? $ENV{X509_USER_PROXY} : "/tmp/x509up_u$<"; + + +$srv = shift; + +$c = SOAP::Lite + -> proxy("$srv/lb") + -> uri('http://glite.org/wsdl/services/lb'); + +# TODO: replace with $srv/lb/?wsdl once it works +service $c 'http://egee.cesnet.cz/en/WSDL/HEAD/LB.wsdl'; +ns $c 'http://glite.org/wsdl/elements/lb'; + +on_fault $c sub { print Dumper($_[1]->fault); $fault = 1; }; + +$resp = uuGetVersion $c; + +print Dumper($resp); +