1 2 package org.ejbca.core.protocol.xkms; 3 4 import java.net.MalformedURLException ; 5 import java.net.URL ; 6 7 import javax.xml.namespace.QName ; 8 import javax.xml.ws.Service; 9 import javax.xml.ws.WebEndpoint; 10 import javax.xml.ws.WebServiceClient; 11 12 13 19 @WebServiceClient(name = "XKMSService", targetNamespace = "http://www.w3.org/2002/03/xkms#wsdl", wsdlLocation = "src/xkms/wsdl/xkms.wsdl") 20 public class XKMSService 21 extends Service 22 { 23 24 private final static URL XKMSSERVICE_WSDL_LOCATION; 25 26 static { 27 URL url = null; 28 try { 29 url = new URL ("file:/C:/workspace/ejbca/src/xkms/wsdl/xkms.wsdl"); 30 } catch (MalformedURLException e) { 31 e.printStackTrace(); 32 } 33 XKMSSERVICE_WSDL_LOCATION = url; 34 } 35 36 public XKMSService(URL wsdlLocation, QName serviceName) { 37 super(wsdlLocation, serviceName); 38 } 39 40 public XKMSService() { 41 super(XKMSSERVICE_WSDL_LOCATION, new QName ("http://www.w3.org/2002/03/xkms#wsdl", "XKMSService")); 42 } 43 44 49 @WebEndpoint(name = "XKMSPort") 50 public XKMSPortType getXKMSPort() { 51 return (XKMSPortType)super.getPort(new QName ("http://www.w3.org/2002/03/xkms#wsdl", "XKMSPort"), XKMSPortType.class); 52 } 53 54 61 65 66 } 67 | Popular Tags |