下面的绑定在运行构建时会出错:
[wsdlc] [错误] 无效的扩展元素:“jaxws:provider”(在命名空间“ http://java.sun.com/xml/ns/jaxws ”中)
如果我放置在绑定之外,则骨架没有变化。我的目标是基于 wsdl 生成基于 Provider 的端点。
<jaxws:bindings
wsdlLocation="mywsdl.wsdl"
xmlns:jaxws="http://java.sun.com/xml/ns/jaxws"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns='http://java.sun.com/xml/ns/jax-ws/ri/runtime'
xsi:schemaLocation="http://java.sun.com/xml/ns/jaxws http://java.sun.com/xml/ns/jaxws" xmlns:javaee="http://java.sun.com/xml/ns/javaee">
<jaxws:bindings node="wsdl:definitions/wsdl:portType[@name='MyPortType']">
<jaxws:provider>true</jaxws:provider>
</jaxws:bindings>
</jaxws:bindings>