开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜