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