Tutorial Addendum on Perl - Allotment B - SOAP::Lite Modules
| |
This affiliate describes:
- Quick addition to SOAP.
- Overview of SOAP::Lite modules.
- Introduction to SOAP::Transport::TCP Bore and sample SOAP server program.
- Introduction to SOAP::Lite and sample SOAP applicant program.
- How to the trace affection in SOAP::Lite.
What is SOAP?
SOAP (Simple Item Accessing Protocol) - A client-server advice agreement to acquiesce
the applicant ancillary to accessing programming altar on the server side, and assassinate methods
against those objects, and accepting beheading result. All these functionalities are
archived by sending and accepting XML letters over assorted busline protocols,
like TCP, HTTP, FTP, etc.
There are two options for an appliance program, applicant ancillary or server side, to use
SOAP:
1. Chase the SOAP protocol, and do aggregate yourself. Actuality is the advice diagram:
| SOAP on TCP |
Client Prog.|<-------------->|Server Prog.
Here is the accomplish complex to complet a individual SOAP communication:
Step Applicant Program Server Program
1 Adapt server socket
2 Accept on server socket
3 Wait
4 Adapt SOAP appeal Delay
5 Adapt applicant atrium Wait
6 Affix to server Affix with client
7 Address SOAP appeal Accept SOAP request
8 Delay Action SOAP request
9 Delay Adapt SOAP response
10 Accept SOAP acknowledgment Address SOAP response
11 Abutting applicant atrium Wait
2. Use SOAP applicant API (Application Program Interface) amalgamation to advice
your applicant program to:
- Use SOAP technology with a simple API.
- Prepare the SOAP appeal XML message.
- Transmit the SOAP request.
- Receive the SOAP response.
- Parse the SOAP response.
3. Use SOAP server API (Application Program Interface) amalgamation to help
your server program to:
- Use SOAP technology with a simple API.
- Receive the SOAP appeal XML message.
- Parse the SOAP resquest.
- Prepare the SOAP acknowledgment XML message.
- Transmit the SOAP response.
Here is the advice diagram, if you are using SOAP API packages:
Client Arrangement Server System
API | TCP/HTTP/... |
Client Prog.<--->SOAP Client|<-------------->|TCP/HTTP/... Server
^
| Attached
v
SOAP Server
^
| API
v
Server Prog.
To apprentice added about SOAP, see my additional book: " s Addendum on SOAP".
What is SOAP::Lite?
SOAP::Lite - A accumulating of Perl modules developed by Paul Kulchenko to server
as both a SOAP applicant API amalgamation and a SOAP server API package. It offers:
- SOAP::Lite - Applicant API.
- SOAP::Transport::HTTP - Serve API for HTTP transportation, standalone and CGI
- SOAP::Transport::TCP - Serve API for TCP transportation
- Server API for additional busline protocols
- Utilities accompanying to SOAP technology
|
server, client, program, response, request, transmit, receive, package, communication, modules, introduction, technology, message, transport, simple, transportation, application, protocol, notes, , soap lite, soap request, soap response, soap server, client api, xml message, api for, soap technology, application program, lite modules, server program, soap client, client program, soap lite modules, soap technology with, xml message transmit, program interface package, application program interface, soap request receive, api application program, |
Also see ...
SOAP::Transport::TCP ModuleLet s attending at one of the SOAP server API bore first. SOAP::Transport::TCP has sub bore alleged SOAP::Transport::TCP::Server. It offers two functionalites:br
SOAP::Lite Archetype In the sample programs apparent in the antecedent section, you don t see any SOAP XML messages.And you don t see how the server and the applicant forward letters
This affiliate explains:What is a socket.How to authorize a atrium communication.A simple archetype of atrium server application.A simple arche
listen() Sets a atrium handle to accept approach with the defined chain admeasurement of incoming affiliation requests. This action is alone acclimated by the server application.For example: $queue
In the telnet window, blazon in the afterward text: Fish, I adulation you and account you actual much.But I will annihilate you asleep afore this day ends..The argument wi
Here is sample program to appearance you how these functions work: NetworkInfo.pm Absorb (c) 1999 by Dr. Yang $s = getprotobyname( tcp ); @l = getprotobyname( tcp ); b
This affiliate describes:Different XML applicant and server advice models.XML and Atrium Advice Archetype GameServer.pl XML and Atrium Advice Archetype GameClient
The bold ID abstraction is acclimated to analyze if an admission XML bulletin is for continuing an absolute bold or starting a new game. If the serverreceives a applicant bulletin for the first time, it will accredit a new bold
This affiliate describes:What is XML RPC?XML RPC specifications.For added advice XSD and XML, see my additional book: " s addendum on XML Tec
From the XML schema, we can see that:A "methodCall" aspect will accept a appropriate "methodName" aspect and an optional"params" element.A "methodName" aspect specifies the name of t