TestLogger.logger.debug("test: " + getName());
// Initialize the JAX-WS client artifacts
Service svc = Service.create(DispatchTestConstants.QNAME_SERVICE);
svc.addPort(DispatchTestConstants.QNAME_PORT, null, DispatchTestConstants.URL);
Dispatch<Source> dispatch = svc.createDispatch(DispatchTestConstants.QNAME_PORT, Source.class,
Service.Mode.PAYLOAD);
// Create a StreamSource with the desired content
byte[] bytes = DispatchTestConstants.sampleBodyContent.getBytes();
ByteArrayInputStream stream = new ByteArrayInputStream(bytes);
Source srcStream = new StreamSource((InputStream) stream);