1 2 package org.ejbca.core.protocol.ws.client.gen; 3 4 import java.net.MalformedURLException ; 5 import java.net.URL ; 6 import javax.xml.namespace.QName ; 7 import javax.xml.ws.Service; 8 import javax.xml.ws.WebEndpoint; 9 import javax.xml.ws.WebServiceClient; 10 11 12 18 @WebServiceClient(name = "EjbcaWSService", targetNamespace = "http://ws.protocol.core.ejbca.org/", wsdlLocation = "http://localhost:8080/ejbca/ejbcaws/ejbcaws?wsdl") 19 public class EjbcaWSService 20 extends Service 21 { 22 23 private final static URL EJBCAWSSERVICE_WSDL_LOCATION; 24 25 static { 26 URL url = null; 27 try { 28 url = new URL ("http://localhost:8080/ejbca/ejbcaws/ejbcaws?wsdl"); 29 } catch (MalformedURLException e) { 30 e.printStackTrace(); 31 } 32 EJBCAWSSERVICE_WSDL_LOCATION = url; 33 } 34 35 public EjbcaWSService(URL wsdlLocation, QName serviceName) { 36 super(wsdlLocation, serviceName); 37 } 38 39 public EjbcaWSService() { 40 super(EJBCAWSSERVICE_WSDL_LOCATION, new QName ("http://ws.protocol.core.ejbca.org/", "EjbcaWSService")); 41 } 42 43 48 @WebEndpoint(name = "EjbcaWSPort") 49 public EjbcaWS getEjbcaWSPort() { 50 return super.getPort(new QName ("http://ws.protocol.core.ejbca.org/", "EjbcaWSPort"), EjbcaWS.class); 51 } 52 53 } 54 | Popular Tags |