use of jakarta.xml.ws.Response in project metro-jax-ws by eclipse-ee4j.
the class HelloLiteralTest method testHelloRequestResponseSourceAsyncPoll.
public void testHelloRequestResponseSourceAsyncPoll() throws Exception {
Dispatch<Source> dispatch = createDispatchSource();
Source source = getSource();
Response result = dispatch.invokeAsync(source);
Object obj = result.get();
assertTrue(obj instanceof Source);
HelloResponse response = (HelloResponse) jaxbContext.createUnmarshaller().unmarshal((Source) obj);
assertTrue("foo".equals(response.getArgument()));
assertTrue("bar".equals(response.getExtra()));
}
Aggregations