This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I am new to WS and can anyone explain what is the difference between WSDL and JAXB OR are they interconnected ?
For example , 1) WSDL file will be accessed from web service provider afte opening a connection with them. 2) We need to send the data in the xml format to server in the same WSDL format . 3) Do we require JAXB to bind the data in xml format or not?.
I may be wrong in my understanding if yes someone please correct me. [ July 11, 2007: Message edited by: Anandha Loganathan ]
Originally posted by Anandha Loganathan: 1) WSDL file will be accessed from web service provider after opening a connection with them.
You will typically access the WSDL before you access the web service endpoint. The WSDL describes the web service and can be used to generate client stubs with code generation tools.
2) We need to send the data in the xml format to server in the same WSDL format.
The WSDL is one (the most common one for SOAP based web services) way to communicate what the valid SOAP requests and responses for the web service endpoint are. Theoretically you can get along without a WSDL - however then you must find an alternate method of documenting your web service and you can't use any of the code generation tools.
3) Do we require JAXB to bind the data in xml format or not?.
There is no such requirement - however from Sun's perspective JAXB 2.0 is the preferred binding method for document-based web services that are implemented on the Java EE 5 or Java SE 6 platform.