Hy there, I am having a hard time getting my webservice working like I envisioned it. I am using the standard JDK stuff, no fancy frameworks here. I am aware that you can use JAXB to map complex types. As far as I know you can use JAXB on all kinds of java beans as long as their contained data types aren't anything complex.
My Model, just won't get fully exported to WSDL.
My data model I want to transfer is structured like this:
I am going to spare you the rest of the model classes, because they are just full of strings. My Webservice looks like this:
When I publish it via Endpoint.publish(), and try to access the WSDL, I see the first type only (TaskType) but none of all the nested types I have defined. And even TaskType only appears as a reference (and nowhere eles):
This can't be right. What am I doing wrong here? Any ideas?
posted 7 years ago
You are supposed to see something like this:
xsd=1 is an XML Schema that contains all the necessary type definitions.