and I'm generating the wsdl using the wsgen, used in a build file.
The schema that is generated is as below
My customer class consists of several fields lke fName, lName, phone and Address object which is also defined. But I do not see neither Customer, Address and also CustomerException properly defined in schema. Why is this happening? Do I need to annotate and specify to have these classes also be included in schema definition. Please advice.
I took what snippets you provided in your first post and added my own Customer and CustomerException etc and managed to create a WSDL file as well as a XML schema which has a customer complex type that looks like this:
My Customer class is a POJO without any annotations.
- Check the console output after having run your Ant script carefully - did the execution really succeed?
- Please post more complete files, not just excerpts, when asking.
- Where is the wsgen command that you use to generate the artifacts?