<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">#!/usr/bin/perl -w

#    debug =&gt; '+',
#    proxy('http://services.soaplite.com/temper.cgi', proxy =&gt; 'http://proxy:8080');
#    proxy =&gt; 'http://proxy:8080', proxy =&gt; 'http://services.soaplite.com/temper.cgi';
#   proxy =&gt; 'http://services.soaplite.com/temper.cgi', proxy =&gt; 'http://proxy:8080';
#    proxy =&gt; 'http://proxy:8080';
#    proxy =&gt; 'http://services.soaplite.com/temper.cgi';



#use SOAP::Lite +trace =&gt; 'debug';
#use SOAP::Lite +autodispatch =&gt;
#    uri =&gt; 'http://www.soaplite.com/Temperatures';
#print SOAP::Lite
#    proxy('http://services.soaplite.com/temper.cgi', proxy =&gt; 'http://proxy:8080/');
#my $temperatures = Temperatures-&gt;new(32); # get object
#print $temperatures-&gt;as_celsius;          # invoke method


use SOAP::Lite +trace =&gt; 'debug';
#use SOAP::Lite +autodispatch;

#my $sudsy = SOAP::Lite
#    -&gt; uri('http://simon.fell.com/calc')
#    -&gt; proxy('http://soap.4s4c.com/ssss4c/soap.asp', proxy =&gt; 'http://proxy:8080/')
#  ;

#my $sudsy = SOAP::Lite
#    -&gt; uri( "http://www.soaplite.com/Temperatures" )
##    -&gt; proxy( "http://services.soaplite.com/temper.cgi", proxy =&gt; 'http://proxy:8080/', timeout =&gt; 5)
#    -&gt; proxy( "http://services.soaplite.com/temper.cgi", timeout =&gt; 5)
#    -&gt; f2c(32)
#    -&gt; result
#  ;

my $sudsy = SOAP::Lite
    -&gt; uri('http://www.soaplite.com/Demo')
#    -&gt; proxy('http://services.soaplite.com/hibye.cgi')
#    -&gt; proxy('http://services.soaplite.com/hibye.cgi', proxy =&gt; 'http://proxy:8080/', timeout =&gt; 5)
    -&gt; proxy('http://services.soaplite.com/hibye.cgi', proxy =&gt; ['http', 'http://proxy:8080/'], timeout =&gt; 5)
# proxy=&gt;['http', 'http://wwwcache.dl.ac.uk:8080']],
    -&gt; hi()
    -&gt; result;

print "RESULT $sudsy\n";

# hangs?
# 2226  wget http://cookbook.soaplite.com/temper.cgi   NO?
# 2224  wget http://cookbook.soaplite.com/ yes?
#[jamesc@betty] ~/bin/soap/$ wget http://services.soaplite.com/temper.cgi
#--17:55:06--  http://services.soaplite.com/temper.cgi
#           =&gt; `temper.cgi'
#Resolving proxy... done.
#Connecting to proxy[192.168.10.2]:8080... connected.
#Proxy request sent, awaiting response... 411 Length Required
#17:55:07 ERROR 411: Length Required.

# http://www.soaplite.com/Temperatures#f2c :) 
# Page you are looking for does not exist on this site. Either link is outdated or you clicked something similar to http://www.soaplite.com/Demo or http://www.soaplite.com/Temperatures. Those are not links but URIs (Uniform Resource Identifier). They may look like clickable URLs (Uniform Resource Locator), but they are not and should be treated only as strings. They are not supposed to point to somewhere. Great explanation with more details you can find in XML Namespaces FAQ, Q12.3.

#use SOAP::Lite;
#print SOAP::Lite
#    -&gt; uri( "http://www.soaplite.com/Temperatures" )
#    #-&gt; proxy( "http://services.soaplite.com/temper.cgi" )
#    -&gt; proxy( "http://proxy:8080/" )
#    -&gt; f2c(32)
#    -&gt; result;



#http://builder.com.com/5100-6389-1046624-2.html
#http://www.onlamp.com/pub/a/onlamp/2001/06/29/soap_lite.html
# HA! http://cookbook.soaplite.com/#specifying%20proxy


#  $ENV{HTTP_proxy} = "http://proxy.my.com/";;
# my $soap = SOAP::Lite-&gt;proxy('http://endpoint.server/', 
#                              proxy =&gt; ['http' =&gt; 'http://my.proxy.server/']);
# my $soap = SOAP::Lite-&gt;proxy('http://endpoint.server/', 
#                              proxy =&gt; 'http://my.proxy.server/');
# my $soap = SOAP::Lite-&gt;proxy('http://endpoint.server/');
# $soap-&gt;transport-&gt;proxy(http =&gt; 'http://my.proxy.server/');
</pre></body></html>