}
@Test
public void testHttpPOSTDispatchHTTPBinding() throws Exception {
Service service = Service.create(serviceName);
service.addPort(portName, HTTPBinding.HTTP_BINDING, endpointAddress);
Dispatch<Source> dispatcher = service.createDispatch(portName, Source.class, Service.Mode.MESSAGE);
Map<String, Object> requestContext = dispatcher.getRequestContext();
requestContext.put(MessageContext.HTTP_REQUEST_METHOD, "POST");
InputStream is = getClass().getResourceAsStream("resources/CustomerJohnReq.xml");
Source result = dispatcher.invoke(new StreamSource(is));