KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ejbca > core > protocol > ws > client > gen > EjbcaWSService


1
2 package org.ejbca.core.protocol.ws.client.gen;
3
4 import java.net.MalformedURLException JavaDoc;
5 import java.net.URL JavaDoc;
6 import javax.xml.namespace.QName JavaDoc;
7 import javax.xml.ws.Service;
8 import javax.xml.ws.WebEndpoint;
9 import javax.xml.ws.WebServiceClient;
10
11
12 /**
13  * This class was generated by the JAXWS SI.
14  * JAX-WS RI 2.0_01-b59-fcs
15  * Generated source version: 2.0
16  *
17  */

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 JavaDoc EJBCAWSSERVICE_WSDL_LOCATION;
24
25     static {
26         URL JavaDoc url = null;
27         try {
28             url = new URL JavaDoc("http://localhost:8080/ejbca/ejbcaws/ejbcaws?wsdl");
29         } catch (MalformedURLException JavaDoc e) {
30             e.printStackTrace();
31         }
32         EJBCAWSSERVICE_WSDL_LOCATION = url;
33     }
34
35     public EjbcaWSService(URL JavaDoc wsdlLocation, QName JavaDoc serviceName) {
36         super(wsdlLocation, serviceName);
37     }
38
39     public EjbcaWSService() {
40         super(EJBCAWSSERVICE_WSDL_LOCATION, new QName JavaDoc("http://ws.protocol.core.ejbca.org/", "EjbcaWSService"));
41     }
42
43     /**
44      *
45      * @return
46      * returns EjbcaWS
47      */

48     @WebEndpoint(name = "EjbcaWSPort")
49     public EjbcaWS getEjbcaWSPort() {
50         return super.getPort(new QName JavaDoc("http://ws.protocol.core.ejbca.org/", "EjbcaWSPort"), EjbcaWS.class);
51     }
52
53 }
54
Popular Tags