⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 getlinkidsoapproxy.java

📁 中国电信isag短信部分源码和ismp部分源码
💻 JAVA
字号:
package test.link;

import java.net.MalformedURLException;

public class GetLinkIdSoapProxy implements test.link.GetLinkIdSoap {
  private String _endpoint = null;
  private test.link.GetLinkIdSoap getLinkIdSoap = null;
  
  public GetLinkIdSoapProxy() {
    _initGetLinkIdSoapProxy();
  }
  public GetLinkIdSoapProxy(String url) {
	    _initGetLinkIdSoapProxy(url);
	  }
  private void _initGetLinkIdSoapProxy() {
    try {
      getLinkIdSoap = (new test.link.GetLinkIdLocator()).getGetLinkIdSoap();
      if (getLinkIdSoap != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)getLinkIdSoap)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)getLinkIdSoap)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  private void _initGetLinkIdSoapProxy(String url) {
	    try {
	      java.net.URL	wsurl = new java.net.URL(url);
	      getLinkIdSoap = (new test.link.GetLinkIdLocator()).getGetLinkIdSoap(wsurl);
	      if (getLinkIdSoap != null) {
	        if (_endpoint != null)
	          ((javax.xml.rpc.Stub)getLinkIdSoap)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
	        else
	          _endpoint = (String)((javax.xml.rpc.Stub)getLinkIdSoap)._getProperty("javax.xml.rpc.service.endpoint.address");
	      }
	      
	    }
	    catch (javax.xml.rpc.ServiceException serviceException) {} catch (MalformedURLException e) {
			// TODO 自动生成 catch 块
			e.printStackTrace();
		}
	  }
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (getLinkIdSoap != null)
      ((javax.xml.rpc.Stub)getLinkIdSoap)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public test.link.GetLinkIdSoap getGetLinkIdSoap() {
    if (getLinkIdSoap == null)
      _initGetLinkIdSoapProxy();
    return getLinkIdSoap;
  }
  
  public void sendLinkId(java.lang.String streamingNo, java.lang.String userId, int userIdType, java.lang.String productId, java.lang.String linkId, java.lang.String featureStr) throws java.rmi.RemoteException{
    if (getLinkIdSoap == null)
      _initGetLinkIdSoapProxy();
    getLinkIdSoap.sendLinkId(streamingNo, userId, userIdType, productId, linkId, featureStr);
  }
  
  public void seviceStatusChange(java.lang.String streamingNo, java.lang.String id, int idType, java.lang.String status) throws java.rmi.RemoteException{
    if (getLinkIdSoap == null)
      _initGetLinkIdSoapProxy();
    getLinkIdSoap.seviceStatusChange(streamingNo, id, idType, status);
  }
  
  public void getPrivion(java.lang.String streamingNo, java.lang.String userId, int userIdType, java.lang.String productId, java.lang.String packageId, java.lang.String opType) throws java.rmi.RemoteException{
    if (getLinkIdSoap == null)
      _initGetLinkIdSoapProxy();
    getLinkIdSoap.getPrivion(streamingNo, userId, userIdType, productId, packageId, opType);
  }
  
  
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -