cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r517117 - in /incubator/cxf/trunk/benchmark/performance: basic_type/src/org/apache/cxf/performance/basic_type/client/Client.java complex_type/src/org/apache/cxf/performance/complex_type/client/Client.java
Date Mon, 12 Mar 2007 07:02:45 GMT
Author: ningjiang
Date: Mon Mar 12 00:02:44 2007
New Revision: 517117

URL: http://svn.apache.org/viewvc?view=rev&rev=517117
Log:
[CXF-345] Applied Frank's patch for wsdl URL building.

Modified:
    incubator/cxf/trunk/benchmark/performance/basic_type/src/org/apache/cxf/performance/basic_type/client/Client.java
    incubator/cxf/trunk/benchmark/performance/complex_type/src/org/apache/cxf/performance/complex_type/client/Client.java

Modified: incubator/cxf/trunk/benchmark/performance/basic_type/src/org/apache/cxf/performance/basic_type/client/Client.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/benchmark/performance/basic_type/src/org/apache/cxf/performance/basic_type/client/Client.java?view=diff&rev=517117&r1=517116&r2=517117
==============================================================================
--- incubator/cxf/trunk/benchmark/performance/basic_type/src/org/apache/cxf/performance/basic_type/client/Client.java
(original)
+++ incubator/cxf/trunk/benchmark/performance/basic_type/src/org/apache/cxf/performance/basic_type/client/Client.java
Mon Mar 12 00:02:44 2007
@@ -122,7 +122,12 @@
             }
         }
         try {
-            URL wsdl = new URL(wsdlPath);
+            URL wsdl = null;
+            if ((wsdlPath.startsWith("file://")) || (wsdlPath.startsWith("http://"))) {
+                 wsdl = new URL(wsdlPath);
+            } else {
+                 wsdl = new URL("file://" + wsdlPath);
+            }
             ss = new BasicService(wsdl, SERVICE_NAME);
         } catch (MalformedURLException e) {
             e.printStackTrace();

Modified: incubator/cxf/trunk/benchmark/performance/complex_type/src/org/apache/cxf/performance/complex_type/client/Client.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/benchmark/performance/complex_type/src/org/apache/cxf/performance/complex_type/client/Client.java?view=diff&rev=517117&r1=517116&r2=517117
==============================================================================
--- incubator/cxf/trunk/benchmark/performance/complex_type/src/org/apache/cxf/performance/complex_type/client/Client.java
(original)
+++ incubator/cxf/trunk/benchmark/performance/complex_type/src/org/apache/cxf/performance/complex_type/client/Client.java
Mon Mar 12 00:02:44 2007
@@ -136,7 +136,12 @@
             System.out.println("not using pipe");
         }
         try{ 
-            URL wsdl = new URL(wsdlPath);
+            URL wsdl = null;
+            if ((wsdlPath.startsWith("file://")) || (wsdlPath.startsWith("http://"))) {
+                 wsdl = new URL(wsdlPath);
+            } else {
+                 wsdl = new URL("file://" + wsdlPath);
+            }
             cs = new ComplexService(wsdl, SERVICE_NAME);
         } catch (MalformedURLException e) {
             e.printStackTrace();



Mime
View raw message