20 pts.
0
Q:
java webservices fundamentals
I have a fundamental question regarding java webservices.

Client side stubs has the following role:
1. Convert java object types to xml types and create soap messages
2. Handle communication from client to webservice and vice versa

SOAP message will differ depending upon the style and use parameters of webservice. My question is do client side stubs connect to wsdl and get style and use parameters at runtime from WSDL or is the information coded when the stubs are generated. I guess that a stub will have the information when it is created and if we change style/use parameters we need to create the stubs again. If this is the case do we need WSDL to call a webservice, since client has the stubs to connect to webservice.

Thanks,
Pawinder
ASKED: Jun 8 2009  2:09 PM GMT
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
0
75 pts.
0
A:
 RATE THIS ANSWER
+2
Click to Vote:
  •   2
  •  0
  • AddThis Social Bookmark Button
Hi Pawinder,
The Client stubs will not connect to wsdl to get the style and parameters , it will be coded when you generate the stubs using the WSDL file.
We dont need WSDL to call a webservice, wsdl is just defintion language .
Hope this clarifies your doubt.
Last Answered: Jun 26 2009  9:59 AM GMT by UsmanAzhar   75 pts.
0
0
Discuss This Answer:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _



_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Pawinder   20 pts.  |   Jun 27 2009  6:17AM GMT

Thanks for your answer, Usman. It clears the doubt. This implies that if we change the style/use tags of the webservice, we need to regenerate the stubs.

 

UsmanAzhar   75 pts.  |   Jul 1 2009  4:52AM GMT

Yes, your are right . you need to regenerate the stubs again.

cheers
Usman

 
0