use of org.eclipse.scout.jaxws.consumer.jaxwspingtestservice.PingResponse in project scout.rt by eclipse.
the class AbstractJaxWsClientTest method testDifferentPortsInSameTransaction.
/*
* ************************************************************
* Test invoke different web services in same transaction
* ************************************************************/
@Test
public void testDifferentPortsInSameTransaction() {
JaxWsConsumerTestServicePortType echoPort = BEANS.get(JaxWsConsumerTestClient.class).newInvocationContext().getPort();
assertSendEcho(echoPort, 0);
JaxWsPingTestServicePortType pingPort = BEANS.get(JaxWsPingTestClient.class).newInvocationContext().getPort();
assertNotSame(echoPort, pingPort);
PingRequest pingRequest = new PingRequest();
pingRequest.setMessage("ping");
PingResponse pingResponse = pingPort.ping(pingRequest);
assertNotNull(pingResponse);
assertEquals("ping", pingResponse.getMessage());
}
use of org.eclipse.scout.jaxws.consumer.jaxwspingtestservice.PingResponse in project scout.rt by eclipse.
the class JaxWsPingTestServiceProvider method ping.
@Override
public PingResponse ping(PingRequest req) {
Assertions.assertNotNull(req);
LOG.info("echo '{}'", req.getMessage());
PingResponse resp = new PingResponse();
resp.setMessage(req.getMessage());
return resp;
}
Aggregations