Home > Uncategorized > Step by Step Method to Access Webservice from Android

Step by Step Method to Access Webservice from Android

how to call the Webservices from the Android application.

System Requirements

The sections below describe the system and software requirements for developing Android applications using the Android SDK.
Supported Operating Systems

* Windows XP (32-bit) or Vista (32- or 64-bit)
* Mac OS X 10.5.8 or later (x86 only)
* Linux (tested on Linux Ubuntu Hardy Heron)

Supported Development Environments
Eclipse IDE

* Eclipse 3.4 (Ganymede) or 3.5 (Galileo)

Caution: There are known issues with the ADT plugin running with Eclipse 3.6. Please stay on 3.5 until further notice.

* Eclipse JDT plugin (included in most Eclipse IDE packages)
* If you need to install or update Eclipse, you can download it from http://www.eclipse.org/downloads/.

Several types of Eclipse packages are available for each platform. For developing Android applications, we recommend that you install one of these packages:
* Eclipse IDE for Java EE Developers
* Eclipse IDE for Java Developers
* Eclipse for RCP/Plug-in Developers
* Eclipse Classic (versions 3.5.1 and higher)
* JDK 5 or JDK 6 (JRE alone is not sufficient)
* Android Development Tools plugin (optional)
* Not compatible with Gnu Compiler for Java (gcj)
Hardware Requirements

The Android SDK requires disk storage for all of the components that you choose to install. The table below provides a rough idea of the disk-space requirements to expect, based on the components that you plan to use.
Install the ADT Plugin for Eclipse
Configuring the ADT Plugin
Creating an Android Project

ServiceImpl.wsdl:

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace=http://service.com
xmlns:apachesoap=http://xml.apache.org/xml-soap
xmlns:impl="http://service.com" xmlns:intf=http://service.com
xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/
xmlns:wsdlsoap=http://schemas.xmlsoap.org/wsdl/soap/
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<!--WSDL created by Apache Axis version: 1.4
Built on Apr 22, 2006 (06:55:48 PDT)-->
<wsdl:types>
<schema elementFormDefault="qualified"
targetNamespace="http://service.com" xmlns="http://www.w3.org/2001/XMLSchema">
<element name="message">
<complexType/>
</element>
<element name="messageResponse">
<complexType>
<sequence>
<element name="messageReturn" type="xsd:string"/>
</sequence>
</complexType>
</element>
</schema>
</wsdl:types>

<wsdl:message name="messageResponse">
<wsdl:part element="impl:messageResponse" name="parameters">
</wsdl:part>
</wsdl:message>
<wsdl:message name="messageRequest">
<wsdl:part element="impl:message" name="parameters">
</wsdl:part>
</wsdl:message>
<wsdl:portType name="ServiceImpl">
<wsdl:operation name="message">
<wsdl:input message="impl:messageRequest" name="messageRequest">
</wsdl:input>
<wsdl:output message="impl:messageResponse" name="messageResponse">
</wsdl:output>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="ServiceImplSoapBinding" type="impl:ServiceImpl">
<wsdlsoap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="message">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="messageRequest">
<wsdlsoap:body use="literal"/>
</wsdl:input>
<wsdl:output name="messageResponse">
<wsdlsoap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="ServiceImplService">
<wsdl:port binding="impl:ServiceImplSoapBinding" name="ServiceImpl">
<wsdlsoap:address location=
"http://localhost:9000/AndroidWS/services/ServiceImpl"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>

Advertisements
Categories: Uncategorized
  1. August 10, 2011 at 12:41 pm

    How to create a wsdl file in eclipse IDE?I saw no option as such.

  2. Woot
    December 11, 2011 at 12:04 am

    Steps????

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: