You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by dk...@apache.org on 2012/11/01 20:33:37 UTC
svn commit: r1404731 -
/cxf/trunk/systests/jaxws/src/test/java/org/apache/cxf/systest/dispatch/DispatchClientServerTest.java
Author: dkulp
Date: Thu Nov 1 19:33:37 2012
New Revision: 1404731
URL: http://svn.apache.org/viewvc?rev=1404731&view=rev
Log:
[CXF-4608] Simplify a bit and try the Service.create method
Modified:
cxf/trunk/systests/jaxws/src/test/java/org/apache/cxf/systest/dispatch/DispatchClientServerTest.java
Modified: cxf/trunk/systests/jaxws/src/test/java/org/apache/cxf/systest/dispatch/DispatchClientServerTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/jaxws/src/test/java/org/apache/cxf/systest/dispatch/DispatchClientServerTest.java?rev=1404731&r1=1404730&r2=1404731&view=diff
==============================================================================
--- cxf/trunk/systests/jaxws/src/test/java/org/apache/cxf/systest/dispatch/DispatchClientServerTest.java (original)
+++ cxf/trunk/systests/jaxws/src/test/java/org/apache/cxf/systest/dispatch/DispatchClientServerTest.java Thu Nov 1 19:33:37 2012
@@ -867,7 +867,7 @@ public class DispatchClientServerTest ex
URL wsdl = getClass().getResource("/wsdl/hello_world.wsdl");
assertNotNull(wsdl);
- SOAPService service = new SOAPService(wsdl, SERVICE_NAME);
+ Service service = Service.create(wsdl, SERVICE_NAME);
assertNotNull(service);
Dispatch<StAXSource> disp = service.createDispatch(PORT_NAME, StAXSource.class, Service.Mode.PAYLOAD);
@@ -878,11 +878,7 @@ public class DispatchClientServerTest ex
// Test request-response
InputStream is = getClass().getResourceAsStream("resources/GreetMeDocLiteralSOAPBodyReq.xml");
- InputSource inputSource = new InputSource(is);
- inputSource.setPublicId(getClass()
- .getResource("resources/GreetMeDocLiteralSOAPBodyReq.xml").toString());
- inputSource.setSystemId(inputSource.getPublicId());
- StAXSource staxSourceReq = new StAXSource(StaxUtils.createXMLStreamReader(inputSource));
+ StAXSource staxSourceReq = new StAXSource(StaxUtils.createXMLStreamReader(is));
assertNotNull(staxSourceReq);
Source resp = disp.invoke(staxSourceReq);
assertNotNull(resp);