use of org.eclipse.scout.jaxws.consumer.jaxwspingtestservice.JaxWsPingTestServicePortType 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());
}
Aggregations