1
2
3
4
5
6
7
8 package org.sirius.client.win32.utils;
9
10 public class Win32UtilsServiceLocator extends org.apache.axis.client.Service
11 implements org.sirius.client.win32.utils.Win32UtilsService {
12
13 public Win32UtilsServiceLocator() {
14 }
15
16 public Win32UtilsServiceLocator(org.apache.axis.EngineConfiguration config) {
17 super(config);
18 }
19
20 public Win32UtilsServiceLocator(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 Win32UtilsPort_address = "http://localhost:21212/win32/utils";
28
29 public java.lang.String getWin32UtilsPortAddress() {
30 return Win32UtilsPort_address;
31 }
32
33
34 private java.lang.String Win32UtilsPortWSDDServiceName = "Win32UtilsPort";
35
36 public java.lang.String getWin32UtilsPortWSDDServiceName() {
37 return Win32UtilsPortWSDDServiceName;
38 }
39
40 public void setWin32UtilsPortWSDDServiceName(java.lang.String name) {
41 Win32UtilsPortWSDDServiceName = name;
42 }
43
44 public org.sirius.client.win32.utils.Win32Utils getWin32UtilsPort()
45 throws javax.xml.rpc.ServiceException {
46 java.net.URL endpoint;
47 try {
48 endpoint = new java.net.URL(Win32UtilsPort_address);
49 } catch (java.net.MalformedURLException e) {
50 throw new javax.xml.rpc.ServiceException(e);
51 }
52 return getWin32UtilsPort(endpoint);
53 }
54
55 public org.sirius.client.win32.utils.Win32Utils getWin32UtilsPort(
56 java.net.URL portAddress) throws javax.xml.rpc.ServiceException {
57 try {
58 org.sirius.client.win32.utils.Win32UtilsPortBindingStub _stub = new org.sirius.client.win32.utils.Win32UtilsPortBindingStub(
59 portAddress, this);
60 _stub.setPortName(getWin32UtilsPortWSDDServiceName());
61 return _stub;
62 } catch (org.apache.axis.AxisFault e) {
63 return null;
64 }
65 }
66
67 public void setWin32UtilsPortEndpointAddress(java.lang.String address) {
68 Win32UtilsPort_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.win32.utils.Win32Utils.class
79 .isAssignableFrom(serviceEndpointInterface)) {
80 org.sirius.client.win32.utils.Win32UtilsPortBindingStub _stub = new org.sirius.client.win32.utils.Win32UtilsPortBindingStub(
81 new java.net.URL(Win32UtilsPort_address), this);
82 _stub.setPortName(getWin32UtilsPortWSDDServiceName());
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 ("Win32UtilsPort".equals(inputPortName)) {
106 return getWin32UtilsPort();
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://win32.server.sirius.org/",
116 "Win32UtilsService");
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://win32.server.sirius.org/", "Win32UtilsPort"));
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 ("Win32UtilsPort".equals(portName)) {
137 setWin32UtilsPortEndpointAddress(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 }