Xfire generates webservice. Android uses ksoap2 to access the webservice client. xfireksoap2

Source: Internet
Author: User

Xfire generates webservice. Android uses ksoap2 to access the webservice client. xfireksoap2

Use adt to create an Android application project


Confirm the information


Create Interface

Delete the original component


Click hello world


Click delete to open the xml file. The following page is displayed:


Switch to view mode and add textview and button


Switch to xml and you will see the interface


Add permission

Open the androidmainfest. xml file


Add the following code:


Compile mainactivity. java to implement specific code


How to view ip addresses



Now you can understand your mobile phone.

If not, check whether your Android program is wrong. Therefore, you can create a web project in myeclipse and import the xfire package. Then write the following code:



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.