1284cf83ced647bca1c0df5c993f2b072978235d.svn-base 2.15 KB
package tdh.ckw.webService.service.ip;

public class IpConvertWsZjDataHandleProxy implements tdh.ckw.webService.service.ip.IpConvertWsZjDataHandle {
  private String _endpoint = null;
  private tdh.ckw.webService.service.ip.IpConvertWsZjDataHandle ipConvertWsZjDataHandle = null;
  
  public IpConvertWsZjDataHandleProxy() {
    _initIpConvertWsZjDataHandleProxy();
  }
  
  public IpConvertWsZjDataHandleProxy(String endpoint) {
    _endpoint = endpoint;
    _initIpConvertWsZjDataHandleProxy();
  }
  
  private void _initIpConvertWsZjDataHandleProxy() {
    try {
      ipConvertWsZjDataHandle = (new tdh.ckw.webService.service.ip.IpConvertWsZjDataServiceLocator()).getIpConvertWsZjDataPort();
      if (ipConvertWsZjDataHandle != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)ipConvertWsZjDataHandle)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)ipConvertWsZjDataHandle)._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 (ipConvertWsZjDataHandle != null)
      ((javax.xml.rpc.Stub)ipConvertWsZjDataHandle)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public tdh.ckw.webService.service.ip.IpConvertWsZjDataHandle getIpConvertWsZjDataHandle() {
    if (ipConvertWsZjDataHandle == null)
      _initIpConvertWsZjDataHandleProxy();
    return ipConvertWsZjDataHandle;
  }
  
  public java.lang.String cxwsInfo(java.lang.String usermarker, java.lang.String wsbhinfo) throws java.rmi.RemoteException{
    if (ipConvertWsZjDataHandle == null)
      _initIpConvertWsZjDataHandleProxy();
    return ipConvertWsZjDataHandle.cxwsInfo(usermarker, wsbhinfo);
  }
  
  public java.lang.String zjInfo(java.lang.String arg0, java.lang.String arg1) throws java.rmi.RemoteException{
    if (ipConvertWsZjDataHandle == null)
      _initIpConvertWsZjDataHandleProxy();
    return ipConvertWsZjDataHandle.zjInfo(arg0, arg1);
  }
  
  
}