|
.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;
}
 文章整理:西部数码
|
|
|