JrrzServiceProxy.java 1.49 KB
package ws.loushang;

public class JrrzServiceProxy implements ws.loushang.JrrzService {
  private String _endpoint = null;
  private ws.loushang.JrrzService jrrzService = null;
  
  public JrrzServiceProxy() {
    _initJrrzServiceProxy();
  }
  
  public JrrzServiceProxy(String endpoint) {
    _endpoint = endpoint;
    _initJrrzServiceProxy();
  }
  
  private void _initJrrzServiceProxy() {
    try {
      jrrzService = (new ws.loushang.JrrzServiceServiceLocator()).getJrrzServicePort();
      if (jrrzService != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)jrrzService)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)jrrzService)._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 (jrrzService != null)
      ((javax.xml.rpc.Stub)jrrzService)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public ws.loushang.JrrzService getJrrzService() {
    if (jrrzService == null)
      _initJrrzServiceProxy();
    return jrrzService;
  }
  
  public java.lang.String exchangeInfo(java.lang.String args0) throws java.rmi.RemoteException{
    if (jrrzService == null)
      _initJrrzServiceProxy();
    return jrrzService.exchangeInfo(args0);
  }
  
  
}