}
private void sendMessage()
throws ServiceException, MalformedURLException, RemoteException
{
ServiceFactoryImpl factory = (ServiceFactoryImpl) ServiceFactory.newInstance();
URL wsdlLocation = new URL("http://127.0.0.1:8080/jms-web-service/JMSWebServiceExample?wsdl");
QName serviceName = new QName("http://endpoint.webservices.jms.example.jboss.org/", "JMSSampleService");
File fileMapping = new File("./output/client/jaxrpc-mapping.xml");
ServiceImpl service = (ServiceImpl)factory.createService(wsdlLocation, serviceName, fileMapping.toURL());
JMSSample proxy = (JMSSample)service.getPort(JMSSample.class);
proxy.sendMessage(getDestinationJNDIName(), MESSAGE_TEXT);
}