added SeqSearch service interface. Documented and refactored web service client ...
[jalview.git] / src / ext / vamsas / SeqSearchServiceLocator.java
1 /**\r
2  * ScanPSServiceServiceLocator.java\r
3  *\r
4  * This file was auto-generated from WSDL\r
5  * by the Apache Axis 1.2RC2 Nov 16, 2004 (12:19:44 EST) WSDL2Java emitter.\r
6  */\r
7 \r
8 package ext.vamsas;\r
9 \r
10 public class SeqSearchServiceLocator extends org.apache.axis.client.Service implements ext.vamsas.SeqSearchServiceService {\r
11 \r
12     public SeqSearchServiceLocator() {\r
13     }\r
14 \r
15 \r
16     public SeqSearchServiceLocator(org.apache.axis.EngineConfiguration config) {\r
17         super(config);\r
18     }\r
19 \r
20     // Use to get a proxy class for ScanPSService\r
21     private java.lang.String ScanPSService_address = "http://localhost:8080/TestJWS/services/ScanPSService";\r
22 \r
23     public java.lang.String getSeqSeachServiceAddress() {\r
24         return ScanPSService_address;\r
25     }\r
26 \r
27     // The WSDD service name defaults to the port name.\r
28     private java.lang.String ScanPSServiceWSDDServiceName = "ScanPSService";\r
29 \r
30     public java.lang.String getScanPSServiceWSDDServiceName() {\r
31         return ScanPSServiceWSDDServiceName;\r
32     }\r
33 \r
34     public void setScanPSServiceWSDDServiceName(java.lang.String name) {\r
35         ScanPSServiceWSDDServiceName = name;\r
36     }\r
37 \r
38     public ext.vamsas.SeqSearchI getSeqSearchService() throws javax.xml.rpc.ServiceException {\r
39        java.net.URL endpoint;\r
40         try {\r
41             endpoint = new java.net.URL(ScanPSService_address);\r
42         }\r
43         catch (java.net.MalformedURLException e) {\r
44             throw new javax.xml.rpc.ServiceException(e);\r
45         }\r
46         return getSeqSearchService(endpoint);\r
47     }\r
48 \r
49     public ext.vamsas.SeqSearchI getSeqSearchService(java.net.URL portAddress) throws javax.xml.rpc.ServiceException {\r
50         try {\r
51             ext.vamsas.SeqSearchServiceSoapBindingStub _stub = new ext.vamsas.SeqSearchServiceSoapBindingStub(portAddress, this);\r
52             _stub.setPortName(getScanPSServiceWSDDServiceName());\r
53             return _stub;\r
54         }\r
55         catch (org.apache.axis.AxisFault e) {\r
56             return null;\r
57         }\r
58     }\r
59 \r
60     public void setScanPSServiceEndpointAddress(java.lang.String address) {\r
61         ScanPSService_address = address;\r
62     }\r
63 \r
64     /**\r
65      * For the given interface, get the stub implementation.\r
66      * If this service has no port for the given interface,\r
67      * then ServiceException is thrown.\r
68      */\r
69     public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {\r
70         try {\r
71             if (ext.vamsas.SeqSearchI.class.isAssignableFrom(serviceEndpointInterface)) {\r
72                 ext.vamsas.SeqSearchServiceSoapBindingStub _stub = new ext.vamsas.SeqSearchServiceSoapBindingStub(new java.net.URL(ScanPSService_address), this);\r
73                 _stub.setPortName(getScanPSServiceWSDDServiceName());\r
74                 return _stub;\r
75             }\r
76         }\r
77         catch (java.lang.Throwable t) {\r
78             throw new javax.xml.rpc.ServiceException(t);\r
79         }\r
80         throw new javax.xml.rpc.ServiceException("There is no stub implementation for the interface:  " + (serviceEndpointInterface == null ? "null" : serviceEndpointInterface.getName()));\r
81     }\r
82 \r
83     /**\r
84      * For the given interface, get the stub implementation.\r
85      * If this service has no port for the given interface,\r
86      * then ServiceException is thrown.\r
87      */\r
88     public java.rmi.Remote getPort(javax.xml.namespace.QName portName, Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {\r
89         if (portName == null) {\r
90             return getPort(serviceEndpointInterface);\r
91         }\r
92         java.lang.String inputPortName = portName.getLocalPart();\r
93         if ("ScanPSService".equals(inputPortName)) {\r
94             return getSeqSearchService();\r
95         }\r
96         else  {\r
97             java.rmi.Remote _stub = getPort(serviceEndpointInterface);\r
98             ((org.apache.axis.client.Stub) _stub).setPortName(portName);\r
99             return _stub;\r
100         }\r
101     }\r
102 \r
103     public javax.xml.namespace.QName getServiceName() {\r
104         return new javax.xml.namespace.QName("vamsas", "ScanPSServiceService");\r
105     }\r
106 \r
107     private java.util.HashSet ports = null;\r
108 \r
109     public java.util.Iterator getPorts() {\r
110         if (ports == null) {\r
111             ports = new java.util.HashSet();\r
112             ports.add(new javax.xml.namespace.QName("vamsas", "ScanPSService"));\r
113         }\r
114         return ports.iterator();\r
115     }\r
116 \r
117     /**\r
118     * Set the endpoint address for the specified port name.\r
119     */\r
120     public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {\r
121         if ("ScanPSService".equals(portName)) {\r
122             setScanPSServiceEndpointAddress(address);\r
123         }\r
124         else { // Unknown Port Name\r
125             throw new javax.xml.rpc.ServiceException(" Cannot set Endpoint Address for Unknown Port" + portName);\r
126         }\r
127     }\r
128 \r
129     /**\r
130     * Set the endpoint address for the specified port name.\r
131     */\r
132     public void setEndpointAddress(javax.xml.namespace.QName portName, java.lang.String address) throws javax.xml.rpc.ServiceException {\r
133         setEndpointAddress(portName.getLocalPart(), address);\r
134     }\r
135 \r
136 }\r