java webservices fundamentals

20 pts.
Tags:
Java
Java Web services
Web services
WSDL
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

Answer Wiki

Thanks. We'll let you know when a new response is added.

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.

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Pawinder
    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.
    20 pointsBadges:
    report
  • UsmanAzhar
    Yes, your are right . you need to regenerate the stubs again. cheers Usman
    75 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following