Re: How to switch between the servers in autodispatch
- Normal Model:
$soap1= new SOAP::Lite
proxy => 'http://localhost/cgi-bin/soap.cgi',
uri => 'http://my.own.com/My/Examples';
$obj = $soap1->newobject();
but I would like to have this as
$obj->method1(); I dont want to specifiy $soap1 in
each and every value like $soap1->method1($obj);
use SOAP::Lite +autodispatch =>
uri => 'urn:/My/Examples',
proxy => 'http://localhost/';
$obj = newobject();
$obj -> method1();
But How can I use this to work with multiple server.
Is it possible to create AutoDispatch soap objects?!!
$obj1 = $soap1->newobject(); # for server 1 calls
$obj2 = $soap2->newobject(); # for server 2 (differnt URL/Proxy)calls
Its looks like combining autodispatch and the normal method.
--- In email@example.com, "Randy J. Ray" <rjray@b...> wrote:
> naga_cit wrote:
> > Hi All,
> > Is there a way I can switch between two servers in autodispatch
> > in a same script.
> You can call the proxy() method as a static method to set a new
> That should apply to the internal object that autodispatch uses.
If the new URL
> uses the same scheme as before (both are http, for example), you
> change the endpoint itself:
> Note that this will *not* work if old URL is http, and new URL is
> are different protocols as far as SOAP::Lite is concerned.
> rjray@b... http://www.rjray.org
> We will never have true civilization until we have learned to
> rights of others.-- Will Rogers