What is Web Services - Sharing information between two application on internet is know as web services.
There are other options to share information
1. Socket Programming (Both App should be in java)
2. RMI - Remote Method Invocation (Both App should be in java)
3. EJB - Session beans and entity beans (Both App should be in java)
4. RPC - Remote Procedure Call (Both App should be in CPP)
5. CORBA - Common Object Request Broker Architecture (Multi language app supported)
6. DCOM - Distributed communication (Both App should be in .NET)
NOTE : CORBA is the 1st Specification which supported different language app com. support.
But Every implementation provider given their own specification because of which in some cases they fail to share information.
In technical terms Web Services are nothing but specification(Set of interfaces) i.e set of rules.
WSDL - Web Service Definition language
It contains
1. Service Name
2. Operations
3. Parameters
4. Data Type
5. End point URL
NOTE : If you want to make your web service public you can register it to UDDI
UDDI stands for Universal Description, Discovery, and Integration.
WEB SERVICE ARCHITECTURE
1. WSDL generation tool will generate WSDL document from java service class
2. WSDL registration to UDDI registry to make it available publicly
3. WSDL document received by client
4. Stub class generation tool will create stub classes in respective programming language
5. Client will use stub classes to pass the parameters into request
6. XML request will form using stub classes
7. HTTP protocol will take SOAP request to service API
8. Soap request will be read by skeleton classes
9. Service operation will get perform
10. Soap response will sent back to client.
11. Stub classes will read the response from soap response
12. Reading soap response
13. response read
14. response will be given to client
A synchronous response returns to the client in the same HTTP connection as the request. With asynchronous responses, a client can send multiple requests and receive the responses in subsequent connections.
No comments:
Post a Comment