cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ff...@apache.org
Subject cxf git commit: [CXF-7168]CXF WSN Publisher should support SOAP 1.2 Binding
Date Thu, 15 Dec 2016 06:50:37 GMT
Repository: cxf
Updated Branches:
  refs/heads/master b418fd795 -> 897694e83


[CXF-7168]CXF WSN Publisher should support SOAP 1.2 Binding


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/897694e8
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/897694e8
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/897694e8

Branch: refs/heads/master
Commit: 897694e83a14e319ae89621ffda74a6c56ca7155
Parents: b418fd7
Author: Freeman Fang <freeman.fang@gmail.com>
Authored: Thu Dec 15 14:50:19 2016 +0800
Committer: Freeman Fang <freeman.fang@gmail.com>
Committed: Thu Dec 15 14:50:19 2016 +0800

----------------------------------------------------------------------
 .../src/main/java/org/apache/cxf/wsn/util/CXFWSNHelper.java       | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/897694e8/services/wsn/wsn-api/src/main/java/org/apache/cxf/wsn/util/CXFWSNHelper.java
----------------------------------------------------------------------
diff --git a/services/wsn/wsn-api/src/main/java/org/apache/cxf/wsn/util/CXFWSNHelper.java
b/services/wsn/wsn-api/src/main/java/org/apache/cxf/wsn/util/CXFWSNHelper.java
index 4a5b9f7..644ba65 100644
--- a/services/wsn/wsn-api/src/main/java/org/apache/cxf/wsn/util/CXFWSNHelper.java
+++ b/services/wsn/wsn-api/src/main/java/org/apache/cxf/wsn/util/CXFWSNHelper.java
@@ -30,6 +30,7 @@ import javax.xml.namespace.QName;
 import javax.xml.transform.Source;
 import javax.xml.transform.stream.StreamSource;
 import javax.xml.ws.Endpoint;
+import javax.xml.ws.soap.SOAPBinding;
 
 import org.apache.cxf.jaxws.JaxWsProxyFactoryBean;
 import org.apache.cxf.wsn.wsdl.WSNWSDLLocator;
@@ -72,7 +73,7 @@ public class CXFWSNHelper extends WSNHelper {
         }
     }
     public Endpoint publish(String address, Object o, Class<?> ... extraClasses) {
-        Endpoint endpoint = Endpoint.create(o);
+        Endpoint endpoint = Endpoint.create(SOAPBinding.SOAP12HTTP_BINDING, o);
         if (extraClasses != null && extraClasses.length > 0) {
             Map<String, Object> props = new HashMap<String, Object>();
             props.put("jaxb.additionalContextClasses", extraClasses);


Mime
View raw message