Author: ningjiang
Date: Thu Apr 26 19:58:37 2007
New Revision: 532940
URL: http://svn.apache.org/viewvc?view=rev&rev=532940
Log:
CXF-604 fixed the CXFServletTest java.net.SocketException
Modified:
incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/servlet/CXFServletTest.java
Modified:
incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/servlet/CXFServletTest.java
URL:
http://svn.apache.org/viewvc/incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/servlet/CXFServletTest.java?view=diff&rev=532940&r1=532939&r2=532940
==============================================================================
---
incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/servlet/CXFServletTest.java
(original)
+++
incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/systest/servlet/CXFServletTest.java
Thu Apr 26 19:58:37 2007
@@ -18,7 +18,6 @@
*/
package org.apache.cxf.systest.servlet;
-import java.net.URL;
import org.w3c.dom.Document;
@@ -32,9 +31,6 @@
import org.apache.cxf.Bus;
import org.apache.cxf.BusException;
import org.apache.cxf.helpers.DOMUtils;
-import org.apache.cxf.jaxws.JaxWsServerFactoryBean;
-import org.apache.cxf.service.invoker.BeanInvoker;
-import org.apache.hello_world_soap_http.GreeterImpl;
import org.junit.Test;
@@ -44,26 +40,9 @@
protected Bus createBus() throws BusException {
return null;
}
-
- // Create the JaxWsService with the JaxWsServerFactoryBean
- protected void setupJaxwsService() {
- JaxWsServerFactoryBean svr = new JaxWsServerFactoryBean();
- URL resource = getClass().getResource("/wsdl/hello_world.wsdl");
- assertNotNull(resource);
- svr.getServiceFactory().setWsdlURL(resource.toString());
- svr.setServiceClass(GreeterImpl.class);
- svr.setAddress("http://localhost/services/Greeter");
- GreeterImpl greeter = new GreeterImpl();
- BeanInvoker invoker = new BeanInvoker(greeter);
- svr.getServiceFactory().setInvoker(invoker);
-
- svr.create();
-
- }
@Test
- public void testPostInvokeServices() throws Exception {
- setupJaxwsService();
+ public void testPostInvokeServices() throws Exception {
//Thread.sleep(6000000);
//newClient();