Microsoft  CSIP   WindowsMobile   MEDC   合作伙伴   联合实验室 设为首页 加到收藏夹

 
登录       点击换一张     注册新用户 找回密码

.net compact framework 加 web service的演练
2007年01月03日11:22   编辑: 来源: 西部数码 浏览: 318

具体是这样的:

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;

}


文章整理:西部数码
发表评论
评论标题 :
评论内容 :

    查看评论

请您注意:遵守国家有关法律、法规,尊重网上道德,承担一切因您的行为而直接或间接引起的法律责任。 本站拥有管理笔名和留言的一切权利。
相关文章推荐
· 使用.NET CF开发Smartphone应用程序 FAQ 2006-7-26  马宁
· Microsoft .NET Compact Framework 开发常见问题解答 2005-7-1  

  

论坛推荐  
热点活动
更多»

© CSIP 信息产业部软件与集成电路促进中心 All Rights Reserved 版权所有 京ICP备06020771号
联系电话:010-63951881-8003 王先生        邮件:wangj@csip.org.cn