bind webservice to listview

This is a discussion on bind webservice to listview within the Beginning Developers forums, part of the Android Development category; hi i am a beginner in android application development. I have developed a web service in dotnet. the methods of the webservice are returning dataset. ...

Results 1 to 3 of 3

Thread: bind webservice to listview

  1. #1
    Android Lurker s.aijaz1's Avatar
    Join Date
    Jul 2011
    Posts
    2

    bind webservice to listview

    hi

    i am a beginner in android application development. I have developed a web service in dotnet. the methods of the webservice are returning dataset. I need a help to understand how do we bind a webservice to list view for android(Eclipse). im stuck please help. below is web method:

    [WebMethod(Description = "the method fetches clean log for a customer")]
    public DataSet FetchCleanLog(int CustomerID)
    {
    DataSet aDataSet = new DataSet();
    CleanLogBL bl = new CleanLogBL(0);
    bl.FetchAllForCustomer(aDataSet, CustomerID);
    return aDataSet;
    }

    WEB SERVICE GENERATED XML
    ----------------------------------------------
    <DataSet xmlns="http://tempuri.org/">
    <xs:schema xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"id="NewDataSet">
    <xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true">
    <xs:complexType>
    <xs:choice minOccurs="0" maxOccurs="unbounded">
    <xs:element name="tbCleanLog">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="CleanLog" type="xs:long" minOccurs="0"/>
    <xs:element name="Customer" type="xs:long" minOccurs="0"/>
    <xs:element name="Name" type="xs:string" minOccurs="0"/>
    <xs:element name="Cleaned" type="xs:boolean" minOccurs="0"/>
    <xs:element name="Color" type="xs:long" minOccurs="0"/>
    <xs:element name="ColorName" type="xs:string" minOccurs="0"/>
    <xs:element name="CleanDate" type="xs:string" minOccurs="0"/>
    <xs:element name="CreatedBySystemUser" type="xs:long" minOccurs="0"/>
    <xs:element name="CreatedOnDate" type="xs:string" minOccurs="0"/>
    <xs:element name="ModifiedBySystemUser" type="xs:long" minOccurs="0"/>
    <xs:element name="ModifiedOnDate" type="xs:string" minOccurs="0"/>

    </xs:sequence>



    </xs:complexType>



    </xs:element>



    </xs:choice>



    </xs:complexType>



    </xs:element>



    </xs:schema>


    <diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1">
    <NewDataSet xmlns="">
    <tbCleanLog diffgr:id="tbCleanLog1" msdata:rowOrder="0">
    <CleanLog>1</CleanLog>
    <Customer>1</Customer>
    <Name>Hitler</Name>
    <Cleaned>true</Cleaned>
    <Color>1</Color>
    <ColorName>Yellow Brava</ColorName>
    <CleanDate>01/06/2011</CleanDate>
    <CreatedBySystemUser>1</CreatedBySystemUser>

    </tbCleanLog>



    </NewDataSet>



    </diffgr:diffgram>



    </DataSet>

  2. Android.net is the premier Android Forum. Registered users do not see these ads. .

  3. #2
    Super Moderator Droid-Xer's Avatar
    Join Date
    Jan 2011
    Location
    El Paso, TX
    Posts
    2,239
    Thanked
    59 times
    Twitter
    _B0BB0_
    let me move this to the correct section for more help

  4. #3
    App Developer alostpacket's Avatar
    Join Date
    Jan 2011
    Location
    NY
    Posts
    240
    Thanked
    32 times
    Twitter
    alostpacket
    I dont use Webservices because... well... webservices.... I'll hold my toungue.

    Anyways, Android doesnt have built in webservice <-> view binding. You'd have to bind it manually or try and find a library that helps you bind it.

    For XML parsing I'd reccommend the DOM or SAX parser in the Android API, and for binding a data model to a Listview, you should look into creating an array of custom Java objects and extending the BaseAdapter interface. BaseAdapter will help you connect your data to the ListView.

    Hope that helps.

Remove Ads

http://www.scramblerducati.org/

Sponsored Links

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Search tags for this page

andriod bind listview to soap webservice
,

android .net web service dataset

,
android listview dataset
,
android listview populate webservice
,

android listview web service

,
android listview webservice
,
android populate listview from web service
,
android populate listview web service
,
android web service listview dataset example
,

android webservice dataset

,
android webservice dataset listview
,

android webservice listview

,
binding web service to list view
,
how to bind listview with webservices method
,
how to bind the data to listview in android application from a .net web service
Click on a term to search our sites for related topics.
Android Forum