首页 > 编程 > .NET > 正文

.net compact framework 加 web service的演练.

2024-07-10 13:01:38
字体:
来源:转载
供稿:网友
具体是这样的:

invoke the web service of http://samples.gotdotnet.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;

}

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表