0

i am new to Android and I would like to create a mobile application like web service concepts actually Java EE Web dynamic application using Struts frame work and Apache Tomcat so give the ideas how to create web service.

raja
  • 7
  • 4

3 Answers3

2

open you dynamic web in you web right click on your java file where you create all services, second last option is web services -> create web service. after create web services test it.

Testing WSDL:-

WebContent -> wsdl -> service.wsdl-> right click -> web services -> test web services with services explorer

Prashant09
  • 347
  • 3
  • 17
1

When you create web service with Apache Axis it will automatically generate WSDL file for the web service. If you want you can use custom WSDL file instead of the generated one.
What is Apache Axis ?
Simple tutorial to create Apache axis web service ?
Calling web service from Android ?

Community
  • 1
  • 1
xyz
  • 21,367
  • 33
  • 107
  • 150
  • thanks Aji, i have big problem which file dependence to create wsdl file like Action or form class – raja Jun 15 '12 at 11:59
0

You can use Axis 2 web services.

All you need to know is core java.

Steps: 1.Here is a simple tutorial to create a web service

2.After you are done with the server you can test the service using the WSDL(its mentioned in above link as to how to create it(wsdl)) in SOAP UI

3.Now create a simple hello Webservice application in android to consume these services(I prefer ksoap jar to consume services)

Ways to consume web service

    1.Ksoap jar

    2. Direct Http call using HttpConnection class.

I hope this helps or atleast gets you started...

ranjeet wagh
  • 306
  • 3
  • 2