We're using apache cxf 2.2.2 with JaxB and I need to change the wsdl:definitions name of an exported wsdl to something else. Does anyone know how I could change it, possibly via a JAXB annot开发者_Python百科ation?
Assuming you mean the name
attribute of the <wsdl:definitions>
element, that's set by the serviceName
attribute of the @WebService
annotation on your main implementation class. If you need any deeper configuration than that, you'll have to tell CXF to serve up your own custom WSDL instead of that which is derived from annotations (I've not experimented with doing that).
精彩评论