Code example for QName

0
 
	private static MetrinoService createClient() { 
		URL wsdlURL;
		try { 
			wsdlURL = new URL("http://localhost:9090/metrinoservice?wsdl");
			QName SERVICE_NAME = new QName("http://www.modelbus.org/MetrinoService/", "MetrinoServiceService");
			Service service = MetrinoServiceService.create(wsdlURL, SERVICE_NAME);
			MetrinoService client = service.getPort(MetrinoService.class);
			return client;
		} catch (MalformedURLException e) {
			e.printStackTrace();
		} 
		return null; 
	} 
 
}