Author: dkulp
Date: Thu Jul 30 13:52:21 2009
New Revision: 799267
URL: http://svn.apache.org/viewvc?rev=799267&view=rev
Log:
[CXF-2371] Use a single wsdl and set the address. Should make it faster
and use less memory
Modified:
cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/wssc/WSSCTest.java
Modified:
cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/wssc/WSSCTest.java
URL:
http://svn.apache.org/viewvc/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/wssc/WSSCTest.java?rev=799267&r1=799266&r2=799267&view=diff
==============================================================================
---
cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/wssc/WSSCTest.java
(original)
+++
cxf/trunk/systests/src/test/java/org/apache/cxf/systest/ws/wssc/WSSCTest.java
Thu Jul 30 13:52:21 2009
@@ -19,8 +19,6 @@
package org.apache.cxf.systest.ws.wssc;
-import java.net.URL;
-
import javax.xml.namespace.QName;
import javax.xml.ws.BindingProvider;
@@ -101,13 +99,9 @@
new
SpringBusFactory().createBus("org/apache/cxf/systest/ws/wssc/client/client.xml");
BusFactory.setDefaultBus(bus);
BusFactory.setThreadDefaultBus(bus);
- URL wsdlLocation = null;
+ PingService svc = new PingService();
for (String portPrefix : argv) {
- PingService svc;
- wsdlLocation = new URL("http://localhost:9001/" + portPrefix +
"?wsdl");
-
- svc = new PingService(wsdlLocation);
final IPingService port =
svc.getPort(
new QName(
@@ -117,7 +111,8 @@
IPingService.class
);
-
+
((BindingProvider)port).getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY,
+
"http://localhost:9001/" + portPrefix);
if (portPrefix.charAt(0) == '_') {
//MS would like the _ versions to send a cancel
((BindingProvider)port).getRequestContext()