Apache CXF - How to change the SEI name in wsdl2java?

<link rel="stylesheet" type="text/css" href="http://maomaode.bokeland.com/plugins/plogeshi/styles/plogeshi.css">你可以通过JAXWS customization 来改变产生的SEI的名字

<bindings wsdllocation="hello_world.wsdl" xmlns="http://java.sun.com/xml/ns/jaxws">
    <bindings node="wsdl:definitions/wsdl:portType">
  <class name="GreeterSEI"/">
    </bindings>
</bindings>

<link rel="stylesheet" type="text/css" href="http://maomaode.bokeland.com/plugins/plogeshi/styles/plogeshi.css">其中的node, 是一个xpath值,你可以通过这个xpath来指定你要修改的class,name, 比如你有多个portType, 其中的一个portType名字是Hello, 你希望产出的SEI的class叫HelloSEI, 那么这个xpath, 就需要写成:

<bindings node="wsdl:definitions/wsdl:portType[@name='Hello']">
  <class name="HelloSEI"/">
    </bindings>

你还可以修改portType operation, Service 等。
利用这个方法,可以订制很多wsdl2java本身不提供的参数
更多参数请阅读文档

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值