Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java with Webservices??

 
Ahamed Sharif
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a doubt how the web services archetecture works and the flows?
I have developed java classes and written WSDD file for thst and put into
Tomcat with Axis. When I run the server it creats the WSDL file.
Then I written Client programm to call that service then its working.
But I am not understanding the following
1. how it works and what happened internallay?
2. How request and response flow is working??
3. What does WSDL do here ??
4. Where is SOAP server and SOAP client should be fit??

Any one could clear these are things and please try to give archetecture
or flow diagram how it works java web services.
Thanks,
Ahamed.
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. how it works and what happened internallay?
2. How request and response flow is working??
4. Where is SOAP server and SOAP client should be fit??

1) Client application asks the generated web service stub class(es) to make a request
2) The stub asks the SOAP client library to send a SOAP envelope to the server
3) The SOAP client library makes a connection (typically HTTP, might be something else) to the remote server
4) The SOAP server figures out based on the request which class and method to invoke, and invokes the method
5) The web service implementation class does its thang and returns a response to the SOAP server
6) The SOAP server packages the response into a SOAP envelope and returns it as a HTTP response
7) The SOAP client receives the response document, parses it, and returns the corresponding "Java response" to the client application
3. What does WSDL do here ??

In this particular example, nothing. WSDL is used to describe a web service's interface. It may be used in two ways: 1) for statically generating stub code for using/implementing the web service, or 2) for dynamically figuring out the interface provided and generating a "dynamic stub" for using the web service.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic