This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Web Services and the fly likes Java with Webservices?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Java with Webservices??" Watch "Java with Webservices??" New topic
Author

Java with Webservices??

Ahamed Sharif
Ranch Hand

Joined: Aug 24, 2003
Posts: 47
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

Joined: Jan 23, 2002
Posts: 11962
    
    5
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.


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java with Webservices??
 
Similar Threads
Sample Questions for 288 - Need answers
Problem with the missing namespace
java client for a VB web service
Web Services Tutorials covers WSDL, Apache Axis, and more
Struggling with use of my Webservice from PHP client.