How to change JAVAX-WS Endpoint binding to SOAP 1.2?

后端 未结 2 772
灰色年华
灰色年华 2021-02-20 08:50

I\'m publishing a test WS implementation using Endpoint.publish() for consumption in Visual Studio. According to the documentation the default SOAP binding is

2条回答
  •  余生分开走
    2021-02-20 08:55

    Since the current answer is not valid and the links are broken

    By Class Annotation

    @BindingType(javax.xml.ws.soap.SOAPBinding.SOAP12HTTP_BINDING)
    

    By Code configuration

    JaxWsClientFactoryBean factory = new JaxWsClientFactoryBean();
    ...
    factory.setBindingId(SOAPBinding.SOAP12HTTP_BINDING);
    

    By xml configuration

    
      
        
          
          
            
            
          
    ...
    
    

提交回复
热议问题