The. NET Compact Framework plus Web Service Walkthroughs.

Source: Internet
Author: User
The Web is specific:

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

}



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.