|Namespaces and java mapping in WSDL [message #1763367]
||Sun, 14 May 2017 10:50
Registered: May 2017
I'm creating a WSDL with the Eclipse WSDL editor.|
I want to organize the code (generated from the wsdl) in packages.
I saw that I can do that by adding namespaces to elements, but I'm not able to assign namespaces to types.
I mean: I created a XSD schema, with some types that I want to share between services, for example ErrorType.
For this file, I set as default namespace "http:// model.example.org/common", and then I imported it into my wsdl.
When I generate the code from the wsdl, it goes in the "model" packages, so it is the desired behaviour.
Now I want to do the same thing, but varying packages inside the same wsdl:
I want to assign the namespace "model.service306" to the types that I declare inside the Service306.wsdl, so they will be generated in the "model.service306" package, and so on with other services (service307, service308, etc...), and assign the namespace "business.service306" for the operations.
How can I do this by the Eclipse WSDL editor?
Another thing is: when I generate the code from the wsdl, it translates the xsd:date and xsd:datetime to Java Calendar class, but I want to map it to the Date class. Is it possible?
Thank you, and sorry for my bad English.
Powered by FUDForum
. Page generated in 0.02109 seconds