servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r488857 - /incubator/servicemix/trunk/common/servicemix-soap/src/main/java/org/apache/servicemix/soap/SoapHelper.java
Date Tue, 19 Dec 2006 23:57:04 GMT
Author: gnodet
Date: Tue Dec 19 15:57:04 2006
New Revision: 488857

URL: http://svn.apache.org/viewvc?view=rev&rev=488857
Log:
SOAP Operation is not correctly recognized when the targetService is used without targetEndpoint

Modified:
    incubator/servicemix/trunk/common/servicemix-soap/src/main/java/org/apache/servicemix/soap/SoapHelper.java

Modified: incubator/servicemix/trunk/common/servicemix-soap/src/main/java/org/apache/servicemix/soap/SoapHelper.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/common/servicemix-soap/src/main/java/org/apache/servicemix/soap/SoapHelper.java?view=diff&rev=488857&r1=488856&r2=488857
==============================================================================
--- incubator/servicemix/trunk/common/servicemix-soap/src/main/java/org/apache/servicemix/soap/SoapHelper.java
(original)
+++ incubator/servicemix/trunk/common/servicemix-soap/src/main/java/org/apache/servicemix/soap/SoapHelper.java
Tue Dec 19 15:57:04 2006
@@ -304,8 +304,19 @@
                 }
             } else if (definition.getService(serviceName) != null) {
                 Service service = definition.getService(serviceName);
-                Port port = service.getPort(endpointName);
-                if (port != null) {
+                if (endpointName != null) {
+                    Port port = service.getPort(endpointName);
+                    if (port != null) {
+                        Binding binding = port.getBinding();
+                        if (binding != null) {
+                            PortType portType = binding.getPortType();
+                            if (portType != null) {
+                                return findOperationFor(portType, bodyName);
+                            }
+                        }
+                    }
+                } else if (service.getPorts().size() == 1) {
+                    Port port = (Port) service.getPorts().values().iterator().next();
                     Binding binding = port.getBinding();
                     if (binding != null) {
                         PortType portType = binding.getPortType();



Mime
View raw message