{
ServiceFactoryImpl factory = (ServiceFactoryImpl)ServiceFactory.newInstance();
URL wsdlURL = getResourceURL("jaxrpc/jbws1384/WEB-INF/wsdl/ExampleService.wsdl");
URL mappingURL = getResourceURL("jaxrpc/jbws1384/WEB-INF/jaxrpc-mapping.xml");
QName serviceName = new QName("http://org.jboss.test.webservice/samples2", "Gasherbrum");
Service service = factory.createService(wsdlURL, serviceName , mappingURL);
port = (TransmulatorInterface)service.getPort(TransmulatorInterface.class);
((Stub)port)._setProperty(Stub.ENDPOINT_ADDRESS_PROPERTY, "http://" + getServerHost() + ":8080/jaxrpc-jbws1384");
}
}