jim li wrote:i am really hoping there is way to annotate the attributes so that i could do validation once data is entered.
My free books and tutorials: http://www.slideshare.net/krizsan
Lingan Rajan wrote:Jim
I may be missing something here , But usually you should be able to refer the XSD from within your WSDL and generate the classes.
This way it is always only one place where you are maintining the definitions.
My free books and tutorials: http://www.slideshare.net/krizsan
Ivan Krizsan wrote:Hi!
If you want to do code-first development, you can do this the first time and let JAX-WS generated the WSDL and XML schemas for you.
However, after the first time, you use the WSDL-first approach and only change the WSDL and/or XML schemas, from which you then generate artifacts.
So:
1. JAX-WS can generate them for you the first time.
2. You generate artifacts from the WSDL which, if needed, imports any XML schemas it uses.
To make sure that your JAX-WS web service uses the existing WSDL and does not generate a new one, use the wsdlLocation attribute in the @WebService annotation.
Best wishes!
My free books and tutorials: http://www.slideshare.net/krizsan
Ivan Krizsan wrote:Hi!
Have you, as I suggested in my earlier post, modified in the @WebService annotation to point to the existing WSDL, using the wsdlLocation attribute?
Best wishes!
My free books and tutorials: http://www.slideshare.net/krizsan
Ivan Krizsan wrote:Hi!
Have you, as I suggested in my earlier post, modified in the @WebService annotation to point to the existing WSDL, using the wsdlLocation attribute?
Best wishes!
- Aditya Webservices Blog
My free books and tutorials: http://www.slideshare.net/krizsan
Is this the real life? Is this just fantasy? Is this a tiny ad?
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
|