use of jakarta.xml.ws.Dispatch in project metro-jax-ws by eclipse-ee4j.
the class ClientTest method testResponseContext4.
public void testResponseContext4() throws Exception {
Dispatch dispatch = createDispatchJAXB();
assertNull(dispatch.getResponseContext());
}
use of jakarta.xml.ws.Dispatch in project metro-jax-ws by eclipse-ee4j.
the class ClientTest method testResponseContext3.
public void testResponseContext3() throws Exception {
Dispatch dispatch = createDispatchJAXB();
try {
Hello_Type req = new Hello_Type();
req.setArgument("foo");
req.setExtra("bar");
dispatch.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, helloPortAddress.toString());
dispatch.invoke(req);
} catch (Exception e) {
Map rc = dispatch.getResponseContext();
assertEquals(200, rc.get(jakarta.xml.ws.handler.MessageContext.HTTP_RESPONSE_CODE));
}
}
Aggregations