 
 
using System;using System.Collections.Generic;using System.Linq;using System.Text;using cma.cimiss.demo.util;namespace cma.cimiss.demo.webs.FileInfoSearchAPI{  /*   * web service调取,文件信息列表检索,返回二维数组   */  class UpdateStationDataAPI_WEBS_callAPI_to_storeSerializedStr  {    /*    * main方法    * 如:按时间段、站号检索雷达文件 getRadaFileByTimeRangeAndStaId    */    static void Main1(string[] args) {      Console.WriteLine("test API");      new UpdateStationDataAPI_WEBS_callAPI_to_storeSerializedStr().test();    }    public void test()    {    /* 1. 调用方法的参数定义,并赋值 */string @params = "userId=user_nordb" ///* 1.1 用户名&密码 */ "&pwd=user_nordb_pwd1"         "&interfaceId=updateStationData" ///*1.2 接口ID */         "&dataCode=SEVP_WEFC_ACPP_STORE" //* 1.3 必选参数*///资料代码          "&keyEles=Datetime,Station_Id_C,Validtime" // * 1.4 必选参数*更新条件要素         "&valueEles=TEM_Min_2m";//* 1.5 必选参数* 更新值要素名         //保存或更新要素值,如果存在则更新 ,不存在则保存    string inArray2D = "20150114060000,54324,24,-30.02";     /* 2. 调用接口 */    WebsUtil websUtil = new WebsUtil() ;    string rstData = websUtil.storeWsString("callAPI_to_storeSerializedStr", @params, inArray2D);    //wsPortType wsPort = new wsPortType();    Console.WriteLine(rstData);    /* 3. 输出结果 */    //websUtil.outputRst(rstData);    Console.ReadKey();    }   }}

 
  
					
				
评论