Dispatch<Object> dispatch = svc
.createDispatch(portName, jbc, Service.Mode.PAYLOAD);
//Create a request bean with imagedepot bean as value
ObjectFactory factory = new ObjectFactory();
SendImage request = factory.createSendImage();
request.setInput(imageDepot);
TestLogger.logger.debug(">> Invoking Dispatch<Object> JAXBProviderService");
SendImageResponse response = (SendImageResponse) dispatch.invoke(request);