1
2
3
4
5
6
7
8 package org.sirius.client.web.select;
9
10 public class WebSelectServiceLocator extends org.apache.axis.client.Service
11 implements org.sirius.client.web.select.WebSelectService {
12
13 public WebSelectServiceLocator() {
14 }
15
16 public WebSelectServiceLocator(org.apache.axis.EngineConfiguration config) {
17 super(config);
18 }
19
20 public WebSelectServiceLocator(java.lang.String wsdlLoc,
21 javax.xml.namespace.QName sName)
22 throws javax.xml.rpc.ServiceException {
23 super(wsdlLoc, sName);
24 }
25
26
27 private java.lang.String WebSelectPort_address = "http://localhost:21212/web/select";
28
29 public java.lang.String getWebSelectPortAddress() {
30 return WebSelectPort_address;
31 }
32
33
34 private java.lang.String WebSelectPortWSDDServiceName = "WebSelectPort";
35
36 public java.lang.String getWebSelectPortWSDDServiceName() {
37 return WebSelectPortWSDDServiceName;
38 }
39
40 public void setWebSelectPortWSDDServiceName(java.lang.String name) {
41 WebSelectPortWSDDServiceName = name;
42 }
43
44 public org.sirius.client.web.select.WebSelect getWebSelectPort()
45 throws javax.xml.rpc.ServiceException {
46 java.net.URL endpoint;
47 try {
48 endpoint = new java.net.URL(WebSelectPort_address);
49 } catch (java.net.MalformedURLException e) {
50 throw new javax.xml.rpc.ServiceException(e);
51 }
52 return getWebSelectPort(endpoint);
53 }
54
55 public org.sirius.client.web.select.WebSelect getWebSelectPort(
56 java.net.URL portAddress) throws javax.xml.rpc.ServiceException {
57 try {
58 org.sirius.client.web.select.WebSelectPortBindingStub _stub = new org.sirius.client.web.select.WebSelectPortBindingStub(
59 portAddress, this);
60 _stub.setPortName(getWebSelectPortWSDDServiceName());
61 return _stub;
62 } catch (org.apache.axis.AxisFault e) {
63 return null;
64 }
65 }
66
67 public void setWebSelectPortEndpointAddress(java.lang.String address) {
68 WebSelectPort_address = address;
69 }
70
71
72
73
74
75 public java.rmi.Remote getPort(Class serviceEndpointInterface)
76 throws javax.xml.rpc.ServiceException {
77 try {
78 if (org.sirius.client.web.select.WebSelect.class
79 .isAssignableFrom(serviceEndpointInterface)) {
80 org.sirius.client.web.select.WebSelectPortBindingStub _stub = new org.sirius.client.web.select.WebSelectPortBindingStub(
81 new java.net.URL(WebSelectPort_address), this);
82 _stub.setPortName(getWebSelectPortWSDDServiceName());
83 return _stub;
84 }
85 } catch (java.lang.Throwable t) {
86 throw new javax.xml.rpc.ServiceException(t);
87 }
88 throw new javax.xml.rpc.ServiceException(
89 "There is no stub implementation for the interface: "
90 + (serviceEndpointInterface == null ? "null"
91 : serviceEndpointInterface.getName()));
92 }
93
94
95
96
97
98 public java.rmi.Remote getPort(javax.xml.namespace.QName portName,
99 Class serviceEndpointInterface)
100 throws javax.xml.rpc.ServiceException {
101 if (portName == null) {
102 return getPort(serviceEndpointInterface);
103 }
104 java.lang.String inputPortName = portName.getLocalPart();
105 if ("WebSelectPort".equals(inputPortName)) {
106 return getWebSelectPort();
107 } else {
108 java.rmi.Remote _stub = getPort(serviceEndpointInterface);
109 ((org.apache.axis.client.Stub) _stub).setPortName(portName);
110 return _stub;
111 }
112 }
113
114 public javax.xml.namespace.QName getServiceName() {
115 return new javax.xml.namespace.QName("http://web.server.sirius.org/",
116 "WebSelectService");
117 }
118
119 private java.util.HashSet ports = null;
120
121 public java.util.Iterator getPorts() {
122 if (ports == null) {
123 ports = new java.util.HashSet();
124 ports.add(new javax.xml.namespace.QName(
125 "http://web.server.sirius.org/", "WebSelectPort"));
126 }
127 return ports.iterator();
128 }
129
130
131
132
133 public void setEndpointAddress(java.lang.String portName,
134 java.lang.String address) throws javax.xml.rpc.ServiceException {
135
136 if ("WebSelectPort".equals(portName)) {
137 setWebSelectPortEndpointAddress(address);
138 } else {
139 throw new javax.xml.rpc.ServiceException(
140 " Cannot set Endpoint Address for Unknown Port" + portName);
141 }
142 }
143
144
145
146
147 public void setEndpointAddress(javax.xml.namespace.QName portName,
148 java.lang.String address) throws javax.xml.rpc.ServiceException {
149 setEndpointAddress(portName.getLocalPart(), address);
150 }
151
152 }