SOAP::Transport::TCP (3)
Leading comments
Automatically generated by Pod::Man 4.09 (Pod::Simple 3.35) Standard preamble: ========================================================================
NAME
SOAP::Transport::TCP - TCP Transport Support for SOAP::LiteSOAP::Transport::TCP
The classes provided by this module implement directThe connections don't use
Both of the following classes catch methods that are intended for the socket objects and pass them along, allowing calls such as $client->accept( ) without including the socket class in the inheritance tree.
SOAP::Transport::TCP::Client
Inherits from: SOAP::Client.
The
- SSL(optional new boolean value)
-
if ($client->SSL) # Execute only if in SSL mode
Reflects the attribute that denotes whether the client object is using
SSLsockets for communications. - io_socket_class
-
($client->io_socket_class)->new(%options);
Returns the name of the class to use when creating socket objects for internal use in communications. As implemented, it returns one of IO::Socket::INET or IO::Socket::SSL, depending on the return value of the previous
SSLmethod.
If an application creates a subclass that inherits from this client class, either method is a likely target for overloading.
The new method behaves identically to most other classes, except that it detects the presence of SSL-targeted values in the parameter list and sets the
The send_receive method creates a socket of the appropriate class and connects to the configured endpoint. It then sets the socket to nonblocking I/O, sends the message, shuts down the client end of the connection (preventing further writing), and reads the response back from the server. The socket object is discarded after the response and appropriate status codes are set on the client object.
SOAP::Transport::TCP::Server
Inherits from: SOAP::Server.
The server class also defines the same two additional methods as in the client class:
- SSL(optional new boolean value)
-
if ($client->SSL) # Execute only if in SSL mode
Reflects the attribute that denotes whether the client object is using
SSLsockets for communications. - io_socket_class
-
($client->io_socket_class)->new(%options);
Returns the name of the class to use when creating socket objects for internal use in communications. As implemented, it returns one of IO::Socket::INET or IO::Socket::SSL, depending on the return value of the previous
SSLmethod. The new method also manages the automatic selection ofSSLin the same fashion as the client class does.The handle method in this server implementation isn't designed to be called once with each new request. Rather, it is called with no arguments, at which time it enters into an infinite loop of waiting for a connection, reading the request, routing the request and sending back the serialized response. This continues until the process itself is interrupted by an untrapped signal or similar means.
COPYRIGHT
Copyright (C) 2000-2004 Paul Kulchenko. All rights reserved.This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
AUTHORS
Written by Paul Kulchenko.Split from SOAP::Lite and SOAP-Transport-TCP packaging by Martin Kutter