MQClientSoapProxy.bak
1.8 KB
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
package org.tempuri;
public class MQClientSoapProxy implements org.tempuri.MQClientSoap {
private String _endpoint = null;
private org.tempuri.MQClientSoap mQClientSoap = null;
public MQClientSoapProxy() {
_initMQClientSoapProxy();
}
public MQClientSoapProxy(String endpoint) {
_endpoint = endpoint;
_initMQClientSoapProxy();
}
private void _initMQClientSoapProxy() {
try {
mQClientSoap = (new org.tempuri.MQClientLocator()).getMQClientSoap();
if (mQClientSoap != null) {
if (_endpoint != null)
((javax.xml.rpc.Stub)mQClientSoap)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
else
_endpoint = (String)((javax.xml.rpc.Stub)mQClientSoap)._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 (mQClientSoap != null)
((javax.xml.rpc.Stub)mQClientSoap)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
}
public org.tempuri.MQClientSoap getMQClientSoap() {
if (mQClientSoap == null)
_initMQClientSoapProxy();
return mQClientSoap;
}
public boolean sendMessage(java.lang.String msgLabel, java.lang.String msgBody) throws java.rmi.RemoteException{
if (mQClientSoap == null)
_initMQClientSoapProxy();
return mQClientSoap.sendMessage(msgLabel, msgBody);
}
public java.lang.String receiveMessage() throws java.rmi.RemoteException{
if (mQClientSoap == null)
_initMQClientSoapProxy();
return mQClientSoap.receiveMessage();
}
}