最新下载
热门教程
- 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;
}
相关文章
- 无主之地4全载具获取方法 载具怎么解锁全攻略 09-16
- 魔兽世界沙塔斯城怎么去-沙塔斯城前往方法 09-16
- 超级机器人大战Y轮回的世界怎么过 多周目终极挑战攻略 09-16
- 无主之地4嚎叫森林农场宝箱怎么开启 嚎叫森林农场宝箱开启方法 09-16
- 无主之地4支线月是故乡明怎么做 支线月是故乡明图文攻略 09-16
- 超级机器人大战Y超越妖魔之力怎么过 终极妖魔战攻略 09-16