开发者

What annotation/property defines the wsdl:definitions section of a wsdl in Jaxb?

开发者 https://www.devze.com 2023-01-02 19:25 出处:网络
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开发者_Pyt

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).

0

精彩评论

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