• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Java with Webservices??

 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Yes, my master! Here is the tiny ad you asked for:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic