axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ngalla...@apache.org
Subject svn commit: r549515 - /webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/BindingProvider.java
Date Thu, 21 Jun 2007 15:32:42 GMT
Author: ngallardo
Date: Thu Jun 21 08:32:42 2007
New Revision: 549515

URL: http://svn.apache.org/viewvc?view=rev&rev=549515
Log:
Set the binding type according to the client configuration, rather than always defaulting
to SOAP.

Modified:
    webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/BindingProvider.java

Modified: webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/BindingProvider.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/BindingProvider.java?view=diff&rev=549515&r1=549514&r2=549515
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/BindingProvider.java
(original)
+++ webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/BindingProvider.java
Thu Jun 21 08:32:42 2007
@@ -18,6 +18,7 @@
  */
 package org.apache.axis2.jaxws;
 
+import org.apache.axis2.jaxws.binding.BindingUtils;
 import org.apache.axis2.jaxws.binding.SOAPBinding;
 import org.apache.axis2.jaxws.client.PropertyValidator;
 import org.apache.axis2.jaxws.core.InvocationContext;
@@ -80,12 +81,9 @@
     }
 
     public Binding getBinding() {
-
-        // TODO support HTTP binding when available
-
-        // The default Binding is the SOAPBinding
         if (binding == null) {
-            binding = new SOAPBinding(endpointDesc);
+            binding = BindingUtils.createBinding(endpointDesc);
+
             // TODO should we allow the ServiceDelegate to figure out the
             // default handlerresolver? Probably yes, since a client app may
             // look for one there.



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message