package com.shulead.datasync.portalcoupon;

public class PortalCouponWSProxy implements PortalCouponWS {
  private String _endpoint = null;
  private PortalCouponWS portalCouponWS = null;

  public PortalCouponWSProxy() {
    _initPortalCouponWSProxy();
  }

  public PortalCouponWSProxy(String endpoint) {
    _endpoint = endpoint;
    _initPortalCouponWSProxy();
  }

  private void _initPortalCouponWSProxy() {
    try {
      portalCouponWS = (new PortalcouponLocator()).getPortalCouponWSImplPort();
      if (portalCouponWS != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)portalCouponWS)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)portalCouponWS)._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 (portalCouponWS != null)
      ((javax.xml.rpc.Stub)portalCouponWS)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);

  }

  public PortalCouponWS getPortalCouponWS() {
    if (portalCouponWS == null)
      _initPortalCouponWSProxy();
    return portalCouponWS;
  }

  public Result createPortalCoupon(PortalCouponParams params) throws java.rmi.RemoteException{
    if (portalCouponWS == null)
      _initPortalCouponWSProxy();
    return portalCouponWS.createPortalCoupon(params);
  }

public String sendPost(String ht05url, String jsons) {
	// TODO Auto-generated method stub
	return null;
}



}