-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWebInterfaceProxy.java
90 lines (72 loc) · 2.94 KB
/
WebInterfaceProxy.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
package a3;
public class WebInterfaceProxy implements a3.WebInterface {
private String _endpoint = null;
private a3.WebInterface webInterface = null;
public WebInterfaceProxy() {
_initWebInterfaceProxy();
}
public WebInterfaceProxy(String endpoint) {
_endpoint = endpoint;
_initWebInterfaceProxy();
}
private void _initWebInterfaceProxy() {
try {
webInterface = (new a3.DSMSImplServiceLocator()).getDSMSImplPort();
if (webInterface != null) {
if (_endpoint != null)
((javax.xml.rpc.Stub)webInterface)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
else
_endpoint = (String)((javax.xml.rpc.Stub)webInterface)._getProperty("javax.xml.rpc.service.endpoint.address");
}
}
catch (javax.xml.rpc.ServiceException serviceException) {}
}
public String getEndpoint() {
return _endpoint;
}
public void setEndpoint(String endpoint) {
_endpoint = endpoint;
if (webInterface != null)
((javax.xml.rpc.Stub)webInterface)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
}
public a3.WebInterface getWebInterface() {
if (webInterface == null)
_initWebInterfaceProxy();
return webInterface;
}
public boolean addItem(java.lang.String arg0, java.lang.String arg1, java.lang.String arg2, short arg3, double arg4) throws java.rmi.RemoteException{
if (webInterface == null)
_initWebInterfaceProxy();
return webInterface.addItem(arg0, arg1, arg2, arg3, arg4);
}
public boolean removeItem(java.lang.String arg0, java.lang.String arg1, short arg2) throws java.rmi.RemoteException{
if (webInterface == null)
_initWebInterfaceProxy();
return webInterface.removeItem(arg0, arg1, arg2);
}
public double purchaseItem(java.lang.String arg0, java.lang.String arg1, a3.Date arg2) throws java.rmi.RemoteException{
if (webInterface == null)
_initWebInterfaceProxy();
return webInterface.purchaseItem(arg0, arg1, arg2);
}
public java.lang.String listItemAvailability(java.lang.String arg0) throws java.rmi.RemoteException{
if (webInterface == null)
_initWebInterfaceProxy();
return webInterface.listItemAvailability(arg0);
}
public java.lang.String findItem(java.lang.String arg0, java.lang.String arg1) throws java.rmi.RemoteException{
if (webInterface == null)
_initWebInterfaceProxy();
return webInterface.findItem(arg0, arg1);
}
public double returnItem(java.lang.String arg0, java.lang.String arg1, a3.Date arg2) throws java.rmi.RemoteException{
if (webInterface == null)
_initWebInterfaceProxy();
return webInterface.returnItem(arg0, arg1, arg2);
}
public boolean exchangeItem(java.lang.String arg0, java.lang.String arg1, java.lang.String arg2) throws java.rmi.RemoteException{
if (webInterface == null)
_initWebInterfaceProxy();
return webInterface.exchangeItem(arg0, arg1, arg2);
}
}