WSDL xsd:choice to java?
I'm parsing a WSDL which has a xsd:choice. How ca开发者_JAVA百科n I model a xsd:choice on java?, I didn't find a union class or something like that.
JAXB does this , Give it a try it will choose proper model.
You can use a "Marker" interface (an interface which defines no methods) and let the different choices be a class which implements that interface.
精彩评论