最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
.net compact framework 加 web service的演练.
时间:2022-07-02 11:21:33 编辑:袖梨 来源:一聚教程网
具体是这样的:
invoke the web service of http://samples.gotd*ot*n*et.com/quickstart/aspplus/samples/services/MathService/CS/MathService.asmx?WSDL
which service privided the math mothd such as add/sub/mulite/div.
I invoke the mothd in the win ce with compact framework,
ye,the result is out at faniliy.I am happy now.
some source followed :
switch (comboBox1.SelectedItem.ToString())
{
case "+":
textBox3.Text
= MathService.Add(Single.Parse(textBox1.Text),Single.Parse(textBox2.Text)).ToString();
break;
case "-":
textBox2.Text
= MathService.Subtract(Single.Parse(textBox1.Text),Single.Parse(textBox2.Text)).ToString();
break;
case "*":
textBox2.Text
= MathService.Multiply(Single.Parse(textBox1.Text),Single.Parse(textBox2.Text)).ToString();
break;
case "/":
textBox2.Text
= MathService.Divide(Single.Parse(textBox1.Text),Single.Parse(textBox2.Text)).ToString();
break;
}
invoke the web service of http://samples.gotd*ot*n*et.com/quickstart/aspplus/samples/services/MathService/CS/MathService.asmx?WSDL
which service privided the math mothd such as add/sub/mulite/div.
I invoke the mothd in the win ce with compact framework,
ye,the result is out at faniliy.I am happy now.
some source followed :
switch (comboBox1.SelectedItem.ToString())
{
case "+":
textBox3.Text
= MathService.Add(Single.Parse(textBox1.Text),Single.Parse(textBox2.Text)).ToString();
break;
case "-":
textBox2.Text
= MathService.Subtract(Single.Parse(textBox1.Text),Single.Parse(textBox2.Text)).ToString();
break;
case "*":
textBox2.Text
= MathService.Multiply(Single.Parse(textBox1.Text),Single.Parse(textBox2.Text)).ToString();
break;
case "/":
textBox2.Text
= MathService.Divide(Single.Parse(textBox1.Text),Single.Parse(textBox2.Text)).ToString();
break;
}
相关文章
- 我的休闲时光黑金璀璨套间怎么获得-黑金璀璨套间获取方法 09-18
- 桃源深处有人家颐养四时活动怎么玩-颐养四时主题活动玩法介绍 09-18
- 原神闲话家常任务怎么做-原神闲话家常任务怎么完成 09-18
- 幻兽帕鲁异构格里芬在哪-幻兽帕鲁异构格里芬位置在哪里 09-18
- 王者荣耀白起苍鳞隐世皮肤多少钱-白起苍鳞隐世皮肤售价介绍 09-18
- 和平精英2025新春版本福利有什么-2025新春版本福利汇总 09-18