Spring Framework JaxWsPortProxyFactoryBean - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Spring Framework JaxWsPortProxyFactoryBean class.

This code example shows how to use the following methods:createJaxWsService, setEndpointAddress, setNamespaceUri, setServiceInterface, setServiceName
	private void initializeService() { 
		if(soapService == null) {
			String url = appSensorClient.getConfiguration().getServerConnection().getUrl();
			 
			try { 
				JaxWsPortProxyFactoryBean proxy = new JaxWsPortProxyFactoryBean();
				 
				proxy.setServiceInterface(org.owasp.appsensor.handler.SoapRequestHandler.class);
				proxy.setWsdlDocumentUrl(new URL(url + "?wsdl"));
				proxy.setNamespaceUri("https://www.owasp.org/index.php/OWASP_AppSensor_Project/wsdl");
				proxy.setServiceName("SoapRequestHandlerService");
				proxy.setEndpointAddress(url);
				 
				Service result = proxy.createJaxWsService();
				 
				soapService = result.getPort(SoapRequestHandler.class);
			} catch (MalformedURLException e) {
				e.printStackTrace();
			} 
		} 
6
CodeRank