1
|
/**
|
2
|
* AphiaNameServiceLocator.java
|
3
|
*
|
4
|
* This file was auto-generated from WSDL
|
5
|
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
|
6
|
*/
|
7
|
|
8
|
package org.cybertaxonomy.utis.checklist.worms;
|
9
|
|
10
|
public class AphiaNameServiceLocator extends org.apache.axis.client.Service implements org.cybertaxonomy.utis.checklist.worms.AphiaNameService {
|
11
|
|
12
|
/**
|
13
|
* The data is licensed under a Creative Commons 'BY' 3.0 License,
|
14
|
* see http://creativecommons.org/licenses/by/3.0/deed.en. For more information,
|
15
|
* please visit http://www.marinespecies.org/aphia.php?p=webservice.
|
16
|
*/
|
17
|
|
18
|
public AphiaNameServiceLocator() {
|
19
|
}
|
20
|
|
21
|
|
22
|
public AphiaNameServiceLocator(org.apache.axis.EngineConfiguration config) {
|
23
|
super(config);
|
24
|
}
|
25
|
|
26
|
public AphiaNameServiceLocator(java.lang.String wsdlLoc, javax.xml.namespace.QName sName) throws javax.xml.rpc.ServiceException {
|
27
|
super(wsdlLoc, sName);
|
28
|
}
|
29
|
|
30
|
// Use to get a proxy class for AphiaNameServicePort
|
31
|
private java.lang.String AphiaNameServicePort_address = "http://www.marinespecies.org/aphia.php?p=soap";
|
32
|
|
33
|
public java.lang.String getAphiaNameServicePortAddress() {
|
34
|
return AphiaNameServicePort_address;
|
35
|
}
|
36
|
|
37
|
// The WSDD service name defaults to the port name.
|
38
|
private java.lang.String AphiaNameServicePortWSDDServiceName = "AphiaNameServicePort";
|
39
|
|
40
|
public java.lang.String getAphiaNameServicePortWSDDServiceName() {
|
41
|
return AphiaNameServicePortWSDDServiceName;
|
42
|
}
|
43
|
|
44
|
public void setAphiaNameServicePortWSDDServiceName(java.lang.String name) {
|
45
|
AphiaNameServicePortWSDDServiceName = name;
|
46
|
}
|
47
|
|
48
|
public org.cybertaxonomy.utis.checklist.worms.AphiaNameServicePortType getAphiaNameServicePort() throws javax.xml.rpc.ServiceException {
|
49
|
java.net.URL endpoint;
|
50
|
try {
|
51
|
endpoint = new java.net.URL(AphiaNameServicePort_address);
|
52
|
}
|
53
|
catch (java.net.MalformedURLException e) {
|
54
|
throw new javax.xml.rpc.ServiceException(e);
|
55
|
}
|
56
|
return getAphiaNameServicePort(endpoint);
|
57
|
}
|
58
|
|
59
|
public org.cybertaxonomy.utis.checklist.worms.AphiaNameServicePortType getAphiaNameServicePort(java.net.URL portAddress) throws javax.xml.rpc.ServiceException {
|
60
|
try {
|
61
|
org.cybertaxonomy.utis.checklist.worms.AphiaNameServiceBindingStub _stub = new org.cybertaxonomy.utis.checklist.worms.AphiaNameServiceBindingStub(portAddress, this);
|
62
|
_stub.setPortName(getAphiaNameServicePortWSDDServiceName());
|
63
|
return _stub;
|
64
|
}
|
65
|
catch (org.apache.axis.AxisFault e) {
|
66
|
return null;
|
67
|
}
|
68
|
}
|
69
|
|
70
|
public void setAphiaNameServicePortEndpointAddress(java.lang.String address) {
|
71
|
AphiaNameServicePort_address = address;
|
72
|
}
|
73
|
|
74
|
/**
|
75
|
* For the given interface, get the stub implementation.
|
76
|
* If this service has no port for the given interface,
|
77
|
* then ServiceException is thrown.
|
78
|
*/
|
79
|
public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
|
80
|
try {
|
81
|
if (org.cybertaxonomy.utis.checklist.worms.AphiaNameServicePortType.class.isAssignableFrom(serviceEndpointInterface)) {
|
82
|
org.cybertaxonomy.utis.checklist.worms.AphiaNameServiceBindingStub _stub = new org.cybertaxonomy.utis.checklist.worms.AphiaNameServiceBindingStub(new java.net.URL(AphiaNameServicePort_address), this);
|
83
|
_stub.setPortName(getAphiaNameServicePortWSDDServiceName());
|
84
|
return _stub;
|
85
|
}
|
86
|
}
|
87
|
catch (java.lang.Throwable t) {
|
88
|
throw new javax.xml.rpc.ServiceException(t);
|
89
|
}
|
90
|
throw new javax.xml.rpc.ServiceException("There is no stub implementation for the interface: " + (serviceEndpointInterface == null ? "null" : serviceEndpointInterface.getName()));
|
91
|
}
|
92
|
|
93
|
/**
|
94
|
* For the given interface, get the stub implementation.
|
95
|
* If this service has no port for the given interface,
|
96
|
* then ServiceException is thrown.
|
97
|
*/
|
98
|
public java.rmi.Remote getPort(javax.xml.namespace.QName portName, Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
|
99
|
if (portName == null) {
|
100
|
return getPort(serviceEndpointInterface);
|
101
|
}
|
102
|
java.lang.String inputPortName = portName.getLocalPart();
|
103
|
if ("AphiaNameServicePort".equals(inputPortName)) {
|
104
|
return getAphiaNameServicePort();
|
105
|
}
|
106
|
else {
|
107
|
java.rmi.Remote _stub = getPort(serviceEndpointInterface);
|
108
|
((org.apache.axis.client.Stub) _stub).setPortName(portName);
|
109
|
return _stub;
|
110
|
}
|
111
|
}
|
112
|
|
113
|
public javax.xml.namespace.QName getServiceName() {
|
114
|
return new javax.xml.namespace.QName("http://aphia/v1.0", "AphiaNameService");
|
115
|
}
|
116
|
|
117
|
private java.util.HashSet ports = null;
|
118
|
|
119
|
public java.util.Iterator getPorts() {
|
120
|
if (ports == null) {
|
121
|
ports = new java.util.HashSet();
|
122
|
ports.add(new javax.xml.namespace.QName("http://aphia/v1.0", "AphiaNameServicePort"));
|
123
|
}
|
124
|
return ports.iterator();
|
125
|
}
|
126
|
|
127
|
/**
|
128
|
* Set the endpoint address for the specified port name.
|
129
|
*/
|
130
|
public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {
|
131
|
|
132
|
if ("AphiaNameServicePort".equals(portName)) {
|
133
|
setAphiaNameServicePortEndpointAddress(address);
|
134
|
}
|
135
|
else
|
136
|
{ // Unknown Port Name
|
137
|
throw new javax.xml.rpc.ServiceException(" Cannot set Endpoint Address for Unknown Port" + portName);
|
138
|
}
|
139
|
}
|
140
|
|
141
|
/**
|
142
|
* Set the endpoint address for the specified port name.
|
143
|
*/
|
144
|
public void setEndpointAddress(javax.xml.namespace.QName portName, java.lang.String address) throws javax.xml.rpc.ServiceException {
|
145
|
setEndpointAddress(portName.getLocalPart(), address);
|
146
|
}
|
147
|
|
148
|
}
|