cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r463589 - in /incubator/cxf/trunk: rt/core/src/main/java/org/apache/cxf/endpoint/ rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/ rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/support/ rt/frontend/simple/src/main/java/org/apach...
Date Fri, 13 Oct 2006 08:35:32 GMT
Author: ningjiang
Date: Fri Oct 13 01:35:28 2006
New Revision: 463589

URL: http://svn.apache.org/viewvc?view=rev&rev=463589
Log:
[JIRA CXF-18] PhaseOne: Implemented the addPort API by using hard code BindingInfoFactoryBean
,now the addport can support the dispatch, and SEI(only soap Binding), added some system tests
to it. 
Changed the benchmark1 build.xml to let client get wsdl by ?wsdl  

Added:
    incubator/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/support/DummyImpl.java
Modified:
    incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/endpoint/EndpointImpl.java
    incubator/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/ServiceImpl.java
    incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/AbstractBindingInfoFactoryBean.java
    incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/dispatch/DispatchClientServerTest.java
    incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/dispatch/DispatchXMLClientServerTest.java
    incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/jaxws/ClientServerTest.java
    incubator/cxf/trunk/test/benchmark1/build.xml

Modified: incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/endpoint/EndpointImpl.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/endpoint/EndpointImpl.java?view=diff&rev=463589&r1=463588&r2=463589
==============================================================================
--- incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/endpoint/EndpointImpl.java (original)
+++ incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/endpoint/EndpointImpl.java Fri
Oct 13 01:35:28 2006
@@ -65,7 +65,7 @@
         this.bus = bus;
         service = s;
         endpointInfo = ei;
-        faultInterceptor = new FaultChainIntiatorInterceptor(this, bus);
+        faultInterceptor = new FaultChainIntiatorInterceptor(this, bus);        
         createBinding(endpointInfo.getBinding());
     }
 
@@ -118,18 +118,20 @@
     }
 
     final void createBinding(BindingInfo bi) throws EndpointException {
-        String namespace = bi.getBindingId();
-        BindingFactory bf = null;
-        try {
-            bf = bus.getExtension(BindingFactoryManager.class).getBindingFactory(namespace);
-            binding = bf.createBinding(bi);
-        } catch (BusException ex) {
-            throw new EndpointException(ex);
-        }
-        if (null == bf) {
-            Message msg = new Message("NO_BINDING_FACTORY", BUNDLE, namespace);
-            throw new EndpointException(msg);
-        }
+        if (null != bi) {
+            String namespace = bi.getBindingId();
+            BindingFactory bf = null;
+            try {
+                bf = bus.getExtension(BindingFactoryManager.class).getBindingFactory(namespace);
+                binding = bf.createBinding(bi);
+            } catch (BusException ex) {
+                throw new EndpointException(ex);
+            }
+            if (null == bf) {
+                Message msg = new Message("NO_BINDING_FACTORY", BUNDLE, namespace);
+                throw new EndpointException(msg);
+            }
+        }    
     }
 
 }

Modified: incubator/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/ServiceImpl.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/ServiceImpl.java?view=diff&rev=463589&r1=463588&r2=463589
==============================================================================
--- incubator/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/ServiceImpl.java
(original)
+++ incubator/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/ServiceImpl.java
Fri Oct 13 01:35:28 2006
@@ -23,8 +23,10 @@
 import java.lang.reflect.Proxy;
 import java.net.URL;
 import java.util.Collection;
+import java.util.HashMap;
 import java.util.HashSet;
 import java.util.Iterator;
+import java.util.Map;
 import java.util.ResourceBundle;
 import java.util.concurrent.Executor;
 import java.util.logging.Level;
@@ -41,7 +43,6 @@
 import javax.xml.ws.spi.ServiceDelegate;
 
 import org.apache.cxf.Bus;
-import org.apache.cxf.common.i18n.Message;
 import org.apache.cxf.common.logging.LogUtils;
 import org.apache.cxf.configuration.Configurer;
 import org.apache.cxf.endpoint.Client;
@@ -50,13 +51,18 @@
 import org.apache.cxf.endpoint.EndpointException;
 import org.apache.cxf.jaxb.JAXBDataBinding;
 import org.apache.cxf.jaxws.handler.HandlerResolverImpl;
+import org.apache.cxf.jaxws.support.DummyImpl;
 import org.apache.cxf.jaxws.support.JaxWsEndpointImpl;
 import org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean;
 import org.apache.cxf.service.Service;
+import org.apache.cxf.service.factory.AbstractBindingInfoFactoryBean;
+import org.apache.cxf.service.factory.SoapBindingInfoFactoryBean;
+import org.apache.cxf.service.model.BindingInfo;
 import org.apache.cxf.service.model.EndpointInfo;
 import org.apache.cxf.service.model.ServiceInfo;
 import org.apache.cxf.wsdl11.WSDLServiceFactory;
 
+
 public class ServiceImpl extends ServiceDelegate {
 
     private static final Logger LOG = LogUtils.getL7dLogger(ServiceImpl.class);
@@ -67,34 +73,24 @@
 
     private HandlerResolver handlerResolver;
     private final Collection<QName> ports = new HashSet<QName>();
+    private Map<QName, PortInfo> portInfos = new HashMap<QName, PortInfo>();
     private Executor executor;
-    private QName serviceName;
-    private Service dispatchService;
+    private QName serviceName;    
+    private Class<?> clazz;
 
     public ServiceImpl(Bus b, URL url, QName name, Class<?> cls) {
         bus = b;
         wsdlURL = url;
         this.serviceName = name;
+        clazz = cls;
 
-        // TODO: shouldn't this also get set up when there is no WSDL?
-        // Dispatches should really use JaxWsServiceFactoryBean instead.
-        if (url != null) {
-            WSDLServiceFactory sf = new WSDLServiceFactory(bus, url, name);
-            dispatchService = sf.create();
-            try {
-                dispatchService.setDataBinding(new JAXBDataBinding(cls));
-            } catch (JAXBException e) {
-                throw new WebServiceException(e);
-            }
-            
-            configureObject(dispatchService);
-        }
-        
         handlerResolver = new HandlerResolverImpl(bus, name);
     }
 
+    
     public void addPort(QName portName, String bindingId, String address) {
-        throw new WebServiceException(new Message("UNSUPPORTED_API_EXC", LOG, "addPort").toString());
+        PortInfo portInfo = new PortInfo(bindingId, address);
+        portInfos.put(portName, portInfo);
     }
 
     // public <T> Dispatch<T> createDispatch(QName portName, Class<T> type,
Mode
@@ -110,43 +106,77 @@
     // return new ClientProxyFactory(bus).create(service, portName, type);
     // }
 
-    private Endpoint getJaxwsEndpoint(QName portName) {
-        ServiceInfo si = dispatchService.getServiceInfo();
+    private Endpoint getJaxwsEndpoint(QName portName, Service service) {
+        ServiceInfo si = service.getServiceInfo();
         EndpointInfo ei = null;
         if (portName == null) {
             ei = si.getEndpoints().iterator().next();
         } else {
-            ei = si.getEndpoint(portName);
+            PortInfo portInfo =  getPortInfor(portName);
+            if (null != portInfo) {
+                ei = createEndpointInfo(service, portName, portInfo);
+            } else {
+                ei = si.getEndpoint(portName);
+            }    
         }
 
         try {
-            return new JaxWsEndpointImpl(bus, dispatchService, ei);
+            return new JaxWsEndpointImpl(bus, service, ei);
         } catch (EndpointException e) {
             throw new WebServiceException(e);
         }
     }
+        
+    
+    private Service createDispatchService(Class<?> type) {
+        Service dispatchService = null;        
+        
+        if (null != wsdlURL) {
+            WSDLServiceFactory sf = new WSDLServiceFactory(bus, wsdlURL, serviceName);
+            dispatchService = sf.create();            
+            try {
+                dispatchService.setDataBinding(new JAXBDataBinding(clazz));
+            } catch (JAXBException e) {
+                new WebServiceException(e);
+            }           
+        } else {
+            JaxWsServiceFactoryBean serviceFactory = new JaxWsServiceFactoryBean();
+            serviceFactory.setBus(bus);
+            serviceFactory.setServiceName(serviceName);
+            // maybe we can find another way to create service which have no SEI
+            serviceFactory.setServiceClass(DummyImpl.class);
+            try {                
+                serviceFactory.setDataBinding(new JAXBDataBinding(type));               
 
+            } catch (JAXBException e) {
+                new WebServiceException(e);
+            } 
+            dispatchService = serviceFactory.create();
+        }    
+                
+        configureObject(dispatchService);
+        return dispatchService;
+    }
 
     public <T> Dispatch<T> createDispatch(QName portName, Class<T> type,
Mode mode) {
-        Dispatch<T> disp = new DispatchImpl<T>(bus, 
-            mode, 
-            type, 
-            getExecutor(), 
-            getJaxwsEndpoint(portName));
         
+        Service dispatchService = createDispatchService(type);                        
+        Endpoint endpoint = getJaxwsEndpoint(portName, dispatchService);
+        
+        Dispatch<T> disp = new DispatchImpl<T>(bus, mode, type, getExecutor(),
endpoint);
+
         configureObject(disp);
 
         return disp;
     }
-
+   
+   
     public Dispatch<Object> createDispatch(QName portName, JAXBContext context, Mode
mode) {
-
-        Dispatch<Object> disp = new DispatchImpl<Object>(bus, 
-            mode, 
-            context, 
-            Object.class, 
-            getExecutor(),
-            getJaxwsEndpoint(portName));
         
+        Service dispatchService = createDispatchService(null);
+        Endpoint endpoint = getJaxwsEndpoint(portName, dispatchService);
+        Dispatch<Object> disp = new DispatchImpl<Object>(bus, mode, context,
Object.class, getExecutor(),
+                                                         endpoint);
+
         configureObject(disp);
 
         return disp;
@@ -197,7 +227,7 @@
 
     protected <T> T createPort(QName portName, Class<T> serviceEndpointInterface)
{
         LOG.log(Level.FINE, "creating port for portName", portName);
-        LOG.log(Level.FINE, "endpoint interface:", serviceEndpointInterface);
+        LOG.log(Level.FINE, "endpoint interface:", serviceEndpointInterface);        
 
         JaxWsServiceFactoryBean serviceFactory = new JaxWsServiceFactoryBean();
         serviceFactory.setBus(bus);
@@ -210,17 +240,24 @@
 
         Service service = serviceFactory.create();
         configureObject(service);
-        
+
         QName pn = portName;
-        ServiceInfo si = service.getServiceInfo();
-        EndpointInfo ei = null;
+        ServiceInfo si = service.getServiceInfo();        
+        
+        EndpointInfo ei = null;        
         if (portName == null) {
             if (1 == si.getEndpoints().size()) {
                 ei = si.getEndpoints().iterator().next();
                 pn = new QName(service.getName().getNamespaceURI(), ei.getName().getLocalPart());
             }
         } else {
-            ei = si.getEndpoint(portName);
+            // first chech the endpointInfo from portInfos
+            PortInfo portInfo = portInfos.get(portName);
+            if (null != portInfo) {
+                ei = createEndpointInfo(service, portName, portInfo);                
+            } else {
+                ei = si.getEndpoint(portName);
+            }    
         }
         if (null == pn) {
             throw new WebServiceException(BUNDLE.getString("COULD_NOT_DETERMINE_PORT"));
@@ -251,11 +288,66 @@
         ports.add(pn);
         return serviceEndpointInterface.cast(obj);
     }
-    
+
+    private EndpointInfo createEndpointInfo(Service service, QName portName, PortInfo portInfo)
{        
+        EndpointInfo ei = null;
+        String address = portInfo.getAddress();        
+        //create bindingInfo from the bindingId
+        //TODO get the different BindingInfoFactoryBean from BindingInfoFactories
+        AbstractBindingInfoFactoryBean bindingFactory = new SoapBindingInfoFactoryBean();
+        bindingFactory.setServiceInfo(service.getServiceInfo());
+        
+        BindingInfo bindingInfo = bindingFactory.create();
+        service.getServiceInfo().addBinding(bindingInfo);
+            
+        ei = new EndpointInfo(service.getServiceInfo(), portInfo.getBindingUri());
+        ei.setName(portName);
+        ei.setAddress(address);
+        ei.setBinding(bindingInfo);
+         
+        service.getServiceInfo().addEndpoint(ei);
+        return ei;
+    }
+
+
     private void configureObject(Object instance) {
         Configurer configurer = bus.getExtension(Configurer.class);
         if (null != configurer) {
             configurer.configureBean(instance);
+        }
+    }
+    
+    private PortInfo getPortInfor(QName portName) {
+        //TODO if the portName null ?
+        return portInfos.get(portName);
+    }
+
+
+   
+
+    static class PortInfo {
+        private String bindingUri;
+        private String address;
+
+        public PortInfo(String bindingUri, String address2) {
+            this.bindingUri = bindingUri;
+            this.address = address2;
+        }
+
+        public String getAddress() {
+            return address;
+        }
+
+        public void setAddress(String address) {
+            this.address = address;
+        }
+
+        public String getBindingUri() {
+            return bindingUri;
+        }
+
+        public void setBindingUri(String bindingUri) {
+            this.bindingUri = bindingUri;
         }
     }
 

Added: incubator/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/support/DummyImpl.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/support/DummyImpl.java?view=auto&rev=463589
==============================================================================
--- incubator/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/support/DummyImpl.java
(added)
+++ incubator/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/support/DummyImpl.java
Fri Oct 13 01:35:28 2006
@@ -0,0 +1,24 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.cxf.jaxws.support;
+
+// this class do nothing here, just for facking Impl
+public class DummyImpl {
+
+}

Modified: incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/AbstractBindingInfoFactoryBean.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/AbstractBindingInfoFactoryBean.java?view=diff&rev=463589&r1=463588&r2=463589
==============================================================================
--- incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/AbstractBindingInfoFactoryBean.java
(original)
+++ incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/AbstractBindingInfoFactoryBean.java
Fri Oct 13 01:35:28 2006
@@ -26,6 +26,7 @@
  */
 public abstract class AbstractBindingInfoFactoryBean {
     private AbstractServiceFactoryBean serviceFactory;
+    private ServiceInfo serviceInfo;
     
     public abstract BindingInfo create();
 
@@ -36,8 +37,16 @@
     public AbstractServiceFactoryBean getServiceFactory() {
         return serviceFactory;
     }
+    
+    public void setServiceInfo(ServiceInfo si) {
+        this.serviceInfo = si;
+    }
 
     protected ServiceInfo getServiceInfo() {
-        return getServiceFactory().getService().getServiceInfo();
+        if (null != serviceInfo) {
+            return serviceInfo;
+        } else {
+            return getServiceFactory().getService().getServiceInfo();
+        }    
     }
 }

Modified: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/dispatch/DispatchClientServerTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/dispatch/DispatchClientServerTest.java?view=diff&rev=463589&r1=463588&r2=463589
==============================================================================
--- incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/dispatch/DispatchClientServerTest.java
(original)
+++ incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/dispatch/DispatchClientServerTest.java
Fri Oct 13 01:35:28 2006
@@ -140,20 +140,27 @@
         assertEquals("Response should be : Hello TestSOAPInputMessage3", expected3, tsmh.getReplyBuffer());
 
     }
-
+    
+  
     public void testDOMSourceMESSAGE() throws Exception {
-        URL wsdl = getClass().getResource("/wsdl/hello_world.wsdl");
+        /*URL wsdl = getClass().getResource("/wsdl/hello_world.wsdl");
         assertNotNull(wsdl);
 
         SOAPService service = new SOAPService(wsdl, serviceName);
+        assertNotNull(service);*/
+        SOAPService service = new SOAPService(null, serviceName);
         assertNotNull(service);
+        service.addPort(portName, "http://schemas.xmlsoap.org/soap/http", 
+                        "http://localhost:9006/SOAPDispatchService/SoapDispatchPort");
+
+        Dispatch<DOMSource> disp = service.createDispatch(portName, DOMSource.class,
Service.Mode.MESSAGE);
 
         InputStream is = getClass().getResourceAsStream("resources/GreetMeDocLiteralReq.xml");
         SOAPMessage soapReqMsg = MessageFactory.newInstance().createMessage(null, is);
         DOMSource domReqMsg = new DOMSource(soapReqMsg.getSOAPPart());
         assertNotNull(domReqMsg);
 
-        Dispatch<DOMSource> disp = service.createDispatch(portName, DOMSource.class,
Service.Mode.MESSAGE);
+
         DOMSource domResMsg = disp.invoke(domReqMsg);
         assertNotNull(domResMsg);
         String expected = "Hello TestSOAPInputMessage";
@@ -198,11 +205,15 @@
     }
 
     public void testDOMSourcePAYLOAD() throws Exception {
-        URL wsdl = getClass().getResource("/wsdl/hello_world.wsdl");
+        /*URL wsdl = getClass().getResource("/wsdl/hello_world.wsdl");
         assertNotNull(wsdl);
 
         SOAPService service = new SOAPService(wsdl, serviceName);
+        assertNotNull(service);*/
+        Service service = Service.create(serviceName);
         assertNotNull(service);
+        service.addPort(portName, "http://schemas.xmlsoap.org/soap/http", 
+                        "http://localhost:9006/SOAPDispatchService/SoapDispatchPort");
 
         Dispatch<DOMSource> disp = service.createDispatch(portName, DOMSource.class,
Service.Mode.PAYLOAD);
 
@@ -258,7 +269,7 @@
 
         SOAPService service = new SOAPService(wsdl, serviceName);
         assertNotNull(service);
-
+        
         JAXBContext jc = JAXBContext.newInstance("org.apache.hello_world_soap_http.types");
         Dispatch<Object> disp = service.createDispatch(portName, jc, Service.Mode.PAYLOAD);
 

Modified: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/dispatch/DispatchXMLClientServerTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/dispatch/DispatchXMLClientServerTest.java?view=diff&rev=463589&r1=463588&r2=463589
==============================================================================
--- incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/dispatch/DispatchXMLClientServerTest.java
(original)
+++ incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/dispatch/DispatchXMLClientServerTest.java
Fri Oct 13 01:35:28 2006
@@ -81,11 +81,15 @@
     }
 
     public void testStreamSourceMESSAGE() throws Exception {
-        URL wsdl = getClass().getResource("/wsdl/hello_world_xml_wrapped.wsdl");
+        /*URL wsdl = getClass().getResource("/wsdl/hello_world_xml_wrapped.wsdl");
         assertNotNull(wsdl);
 
         XMLService service = new XMLService(wsdl, serviceName);
+        assertNotNull(service);*/
+        Service service = Service.create(serviceName);       
         assertNotNull(service);
+        service.addPort(portName, "http://cxf.apache.org/bindings/xformat", 
+                        "http://localhost:9007/XMLService/XMLDispatchPort");        
 
         InputStream is = getClass().getResourceAsStream("/messages/XML_GreetMeDocLiteralReq.xml");
       
         StreamSource reqMsg = new StreamSource(is);

Modified: incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/jaxws/ClientServerTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/jaxws/ClientServerTest.java?view=diff&rev=463589&r1=463588&r2=463589
==============================================================================
--- incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/jaxws/ClientServerTest.java
(original)
+++ incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/jaxws/ClientServerTest.java
Fri Oct 13 01:35:28 2006
@@ -30,6 +30,7 @@
 import javax.xml.ws.AsyncHandler;
 import javax.xml.ws.Endpoint;
 import javax.xml.ws.Response;
+import javax.xml.ws.Service;
 
 import junit.framework.Test;
 import junit.framework.TestSuite;
@@ -55,6 +56,9 @@
     private final QName portName = new QName("http://apache.org/hello_world_soap_http",
                                              "SoapPort");
     
+    private final QName fakePortName = new QName("http://apache.org/hello_world_soap_http",
+                                             "FackPort");
+    
     
     private final QName portName1  = new QName("http://apache.org/hello_world_soap_http",
                 "SoapPort2");
@@ -114,6 +118,23 @@
             throw (Exception)ex.getCause();
         }
     } 
+    
+    public void testAddPort() throws Exception {
+        Service service = Service.create(serviceName);
+        service.addPort(fakePortName, "http://schemas.xmlsoap.org/soap/http", 
+                        "http://localhost:9000/SoapContext/SoapPort");
+        Greeter greeter = service.getPort(fakePortName, Greeter.class);
+
+        String response = new String("Bonjour");
+        try {
+            greeter.greetMe("test");
+            String reply = greeter.sayHi();
+            assertNotNull("no response received from service", reply);
+            assertEquals(response, reply);
+        } catch (UndeclaredThrowableException ex) {
+            throw (Exception)ex.getCause();
+        }
+    }
     
     public void testDocLitBareConnection() throws Exception {
         

Modified: incubator/cxf/trunk/test/benchmark1/build.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/test/benchmark1/build.xml?view=diff&rev=463589&r1=463588&r2=463589
==============================================================================
--- incubator/cxf/trunk/test/benchmark1/build.xml (original)
+++ incubator/cxf/trunk/test/benchmark1/build.xml Fri Oct 13 01:35:28 2006
@@ -11,7 +11,7 @@
                 200    totalelementtosend
                 aa     to invoke all method
                 1,10   the arraysize for eacho call  -->
-            <arg line="file:${basedir}/wsdl/${wsdl.file} 200 aa 1,10"/>
+            <arg line="http://localhost:8080/cxf/services/Benchmark?wsdl 200 aa 1,10"/>
             <classpath refid="cxf.classpath"/>
             <sysproperty key="java.util.logging.config.file" value="${cxf.etc.dir}/logging.properties"/>
             <sysproperty key="log4j.configuration" value="file:///${cxf.etc.dir}/log4j.properties"/>



Mime
View raw message