jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From milam...@apache.org
Subject svn commit: r1337828 - /jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/WSDLHelper.java
Date Sun, 13 May 2012 10:24:56 GMT
Author: milamber
Date: Sun May 13 10:24:55 2012
New Revision: 1337828

URL: http://svn.apache.org/viewvc?rev=1337828&view=rev
Log:
Remove dead code

Modified:
    jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/WSDLHelper.java

Modified: jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/WSDLHelper.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/WSDLHelper.java?rev=1337828&r1=1337827&r2=1337828&view=diff
==============================================================================
--- jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/WSDLHelper.java (original)
+++ jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/WSDLHelper.java Sun
May 13 10:24:55 2012
@@ -142,25 +142,23 @@ public class WSDLHelper {
             if (ports.getLength() == 0) {
                 ports = node.getElementsByTagName("wsdl:port");
             }
-            for (int idx = 0; idx < ports.getLength(); idx++) {
-                Element pnode = (Element) ports.item(idx);
-                // NOTUSED String portname = pnode.getAttribute("name");
-                // used to check binding, but now it doesn't. it was
-                // failing when wsdl did not using binding as expected
-                NodeList servlist = pnode.getElementsByTagName("soap:address");
-                // check wsdlsoap
-                if (servlist.getLength() == 0) {
-                    servlist = pnode.getElementsByTagName("wsdlsoap:address");
-                }
-                if (servlist.getLength() == 0) {
-                    servlist = pnode.getElementsByTagName("SOAP:address");
-                }
-                Element addr = (Element) servlist.item(0);
-                this.SOAPBINDING = addr.getAttribute("location");
-                this.bindingURL = new URL(this.SOAPBINDING);
-                return this.SOAPBINDING;
-            }
-            return null;
+            
+            Element pnode = (Element) ports.item(0);
+            // NOTUSED String portname = pnode.getAttribute("name");
+            // used to check binding, but now it doesn't. it was
+            // failing when wsdl did not using binding as expected
+            NodeList servlist = pnode.getElementsByTagName("soap:address");
+            // check wsdlsoap
+            if (servlist.getLength() == 0) {
+                servlist = pnode.getElementsByTagName("wsdlsoap:address");
+            }
+            if (servlist.getLength() == 0) {
+                servlist = pnode.getElementsByTagName("SOAP:address");
+            }
+            Element addr = (Element) servlist.item(0);
+            this.SOAPBINDING = addr.getAttribute("location");
+            this.bindingURL = new URL(this.SOAPBINDING);
+            return this.SOAPBINDING;
         } catch (Exception exception) {
             return null;
         }



Mime
View raw message