Re: writing a client to use a TCP server
- Hi, Weidong!
--- In soaplite@y..., "Weidong Wang" <wwang@f...> wrote:
> Figured it out: 'tcp:localhost:88' should be the proxy spec.
Right. I'm thinking about support tcp:// also, yet tcp is not a
registered schema. btw, examples for all clients you can find in
Best wishes, Paul.
> --- In soaplite@y..., "Weidong Wang" <wwang@f...> wrote:
> > Version 0.50 supports a TCP SOAP server. SOAP::Transport::TCP
> > an example of how to get a server to run, but it does not give an
> > example.
> > I was able to get the server running.
> > For the client, I thought all I need to do is to change the proxy
> > specification in calling SOAP::Lite from "http://localhost/soap"
> > something like "tcp://localhost:88/" if my TCP server runs on the
> > localhost and listens on port 88. But it does not work. I got
> > IO::Socket::INET: Bad service '88/'
> > What was the problem here? Thanks.
> > Weidong
> > P.S.: My client code looks like the following:
> > use SOAP::Lite +trace;
> > my $soap_response = SOAP::Lite
> > -> uri('Temperatures')
> > -> proxy('tcp://localhost:88/');
> > print $soap_response
> > -> c2f(37.5)
> > -> result;