今天完成了.net compact framework 加 web service的演练.

王朝c#·作者佚名  2006-01-09
窄屏简体版  字體: |||超大  

具体是这样的:

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;

}

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
© 2005- 王朝網路 版權所有 導航