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