Exemple #1
0
        /// <summary>
        /// 访问接口并且获取xml数据
        /// </summary>
        /// <param name="interfaceNo">接口编号</param>
        /// <param name="xmlString">xml格式的参数</param>
        /// <returns></returns>
        public static string getXmlInfo(string interfaceNo, string xmlString)
        {
            ServiceReference1.MesWebSoapClient mws = new ServiceReference1.MesWebSoapClient();
            string XmlInfo = mws.Call(interfaceNo, xmlString, "");

            return(XmlInfo);
        }
Exemple #2
0
 /// <summary>
 /// 获取下载文件的byte字节
 /// </summary>
 /// <param name="ServerFileName">文件名</param>
 /// <param name="FilePath">该文件在服务器的路径</param>
 /// <param name="Message">结果信息</param>
 /// <returns></returns>
 public static byte[] GetFileInfo(string ServerFileName, string FilePath, out string Message)
 {
     ServiceReference1.MesWebSoapClient mws = new ServiceReference1.MesWebSoapClient();
     byte[] buffer = mws.DownFile(ServerFileName, FilePath, out Message);
     return(buffer);
 }