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