KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ejbca > core > protocol > xkms > XKMSService


1
2 package org.ejbca.core.protocol.xkms;
3
4 import java.net.MalformedURLException JavaDoc;
5 import java.net.URL JavaDoc;
6
7 import javax.xml.namespace.QName JavaDoc;
8 import javax.xml.ws.Service;
9 import javax.xml.ws.WebEndpoint;
10 import javax.xml.ws.WebServiceClient;
11
12
13 /**
14  * This class was generated by the JAXWS SI.
15  * JAX-WS RI 2.1-10/21/2006 12:56 AM(vivek)-EA2
16  * Generated source version: 2.0
17  *
18  */

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 JavaDoc XKMSSERVICE_WSDL_LOCATION;
25
26     static {
27         URL JavaDoc url = null;
28         try {
29             url = new URL JavaDoc("file:/C:/workspace/ejbca/src/xkms/wsdl/xkms.wsdl");
30         } catch (MalformedURLException JavaDoc e) {
31             e.printStackTrace();
32         }
33         XKMSSERVICE_WSDL_LOCATION = url;
34     }
35
36     public XKMSService(URL JavaDoc wsdlLocation, QName JavaDoc serviceName) {
37         super(wsdlLocation, serviceName);
38     }
39
40     public XKMSService() {
41         super(XKMSSERVICE_WSDL_LOCATION, new QName JavaDoc("http://www.w3.org/2002/03/xkms#wsdl", "XKMSService"));
42     }
43
44     /**
45      *
46      * @return
47      * returns XKMSPortType
48      */

49     @WebEndpoint(name = "XKMSPort")
50     public XKMSPortType getXKMSPort() {
51         return (XKMSPortType)super.getPort(new QName JavaDoc("http://www.w3.org/2002/03/xkms#wsdl", "XKMSPort"), XKMSPortType.class);
52     }
53
54     /**
55      *
56      * @param features
57      * A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the <code>features</code> parameter will have their default values.
58      * @return
59      * returns XKMSPortType
60      */

61   /* @WebEndpoint(name = "XKMSPort")
62     public XKMSPortType getXKMSPort(WebServiceFeature... features) {
63         return (XKMSPortType)super.getPort(new QName("http://www.w3.org/2002/03/xkms#wsdl", "XKMSPort"), XKMSPortType.class, features);
64     }*/

65
66 }
67
Popular Tags