Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/70.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何将JAVAX-WS端点绑定更改为SOAP 1.2?_Java_Eclipse_Web Services_Soap_Java Metro Framework - Fatal编程技术网

如何将JAVAX-WS端点绑定更改为SOAP 1.2?

如何将JAVAX-WS端点绑定更改为SOAP 1.2?,java,eclipse,web-services,soap,java-metro-framework,Java,Eclipse,Web Services,Soap,Java Metro Framework,我正在使用Endpoint.publish发布测试WS实现,以便在Visual Studio中使用。根据默认的SOAP绑定是1.1,并且可以更改绑定,但是我不能明确地指出如何将绑定更改为1.2 感谢您的帮助 使用JAX-WS2.x,您可以通过配置文件或Java5注释启用SOAP1.2。有关更多详细信息,请参阅。,因为当前答案无效且链接已断开 按类注释 @BindingType(javax.xml.ws.soap.SOAPBinding.SOAP12HTTP_BINDING) 按代码配置 Jax

我正在使用Endpoint.publish发布测试WS实现,以便在Visual Studio中使用。根据默认的SOAP绑定是1.1,并且可以更改绑定,但是我不能明确地指出如何将绑定更改为1.2


感谢您的帮助

使用JAX-WS2.x,您可以通过配置文件或Java5注释启用SOAP1.2。有关更多详细信息,请参阅。

,因为当前答案无效且链接已断开

按类注释

@BindingType(javax.xml.ws.soap.SOAPBinding.SOAP12HTTP_BINDING)
按代码配置

JaxWsClientFactoryBean factory = new JaxWsClientFactoryBean();
...
factory.setBindingId(SOAPBinding.SOAP12HTTP_BINDING);
<binding name="headwig">
  <wsoap12:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="weave">
      <wsoap12:operation soapAction="" style="documment"/>
      <input name="grain">
        <wsoap12:body .../>
        <wsoap12:header message="QName" part="partName"
                       use="literal|encoded"
                        encodingStyle="encodingURI"
                        namespace="namespaceURI" />
      </input>
...
</binding>
通过xml配置

JaxWsClientFactoryBean factory = new JaxWsClientFactoryBean();
...
factory.setBindingId(SOAPBinding.SOAP12HTTP_BINDING);
<binding name="headwig">
  <wsoap12:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="weave">
      <wsoap12:operation soapAction="" style="documment"/>
      <input name="grain">
        <wsoap12:body .../>
        <wsoap12:header message="QName" part="partName"
                       use="literal|encoded"
                        encodingStyle="encodingURI"
                        namespace="namespaceURI" />
      </input>
...
</binding>

java.net现已关闭,没有在线替换。有一个例子吗?您可以在SEI impl类上使用:@BindingTypeSOAPBinding.SOAP12HTTP\u绑定。我不确定config属性是什么。修复了链接,资源在javaee.github.io上再次出现。