QName portQName = new QName("http://test/", "EchoServicePort");
public void testJAXBResolution() {
try {
ObjectFactory factory = new ObjectFactory();
EchoString request = factory.createEchoString();
request.setInput("Operation resolution JAXB test");
JAXBContext jbc = JAXBContext.newInstance(EchoString.class);
Service service = Service.create(wsdlDocumentLocation, serviceQName);
Dispatch<Object> dispatch = service.createDispatch(portQName, jbc, Service.Mode.PAYLOAD);
// The InterceptableClientTestCase invoke will return the "request" as the response.
EchoString response = (EchoString) dispatch.invoke(request);
} catch (Exception e) {
fail("Caught exception: " + e);
}
TestClientInvocationController testController = getInvocationController();
InvocationContext ic = testController.getInvocationContext();