1, instantiation interface
_webFun=new WebApplication1. WebReference. Service1 {Url=Settings. The Default. ServiceUrl};
2,
_webFun. Discover ();
3, send data to the interface
String ret=_webFun. SendDataToSer (Settings. The Default. ProductAcc, Settings. The Default. ProductPwd,
Settings. The Default. The deviceId paramName, paramValue, DateTime. Now. The ToString (" yyyy/MM/dd HH: MM: ss "));
4, receiving data,
The dataSet=_webFun. GetDataFromSer (Settings. The Default. MasterAcc, Settings. The Default. MasterPwd,
"# 01", "0001", "0010", barcode, DateTime. Now. The ToString (" yyyy/MM/dd HH: MM: ss "));
CodePudding user response:
That didn't want to add Web reference WebService, right?CodePudding user response: