Mahmoud
Mahmoud

Reputation: 5

How to Connect a Webservice to an Android Application

I am new to web services and I want to make a RESTful web service, and connect it to an Android application. I would like the steps or a tutorial on how to do this.

I started to create my service using this link This link gives steps to create web service but I can't get why it is using entity classes (customer , DicountCode) from an existing database. What are these classes for?

Upvotes: 0

Views: 9468

Answers (2)

Bennya
Bennya

Reputation: 554

you can try it to connect and parse automatically your web service http://www.wsdl2code.com

SampleService srv1 = new SampleService();
     req = new Request();                     
     req.companyId = "1";
     req.userName = "userName";                                     
     req.password = "pas";
     Response response =    srv1.ServiceSample(req);

Upvotes: 4

pelumi
pelumi

Reputation: 1660

Since you are new to this zone, make sure you check out previous answers to similar questions. However you can find a tutorial to access webservices from android here and a question similar to yours was answered on stackoverflow here.

Upvotes: 2

Related Questions