Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

My web service is basically WCF. I am using ksoap2 and it is working fine but I need a solution which provide functionality like wsimport.

my soap response in looks like

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" >

    <s:Body
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns:xsd="http://www.w3.org/2001/XMLSchema" >

        <UserLoginResponse xmlns="http://tempuri.org/" >

            <UserLoginResult>

                <DocumentElement xmlns="" >

                    <xs:schema
                        xmlns:xs="http://www.w3.org/2001/XMLSchema"
                        xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"
                        id="DocumentElement" >

                        <xs:element
                            name="DocumentElement"
                            msdata:IsDataSet="true"
                            msdata:UseCurrentLocale="true" >

                            <xs:complexType>

                                <xs:choice
                                    maxOccurs="unbounded"
                                    minOccurs="0" >

                                    <xs:element name="Table" >

                                        <xs:complexType>

                                            <xs:attribute
                                                name="UserID"
                                                type="xs:int" />

                                            <xs:attribute
                                                name="UserName"
                                                type="xs:string" />

                                            <xs:attribute
                                                name="LevelID"
                                                type="xs:int" />

                                            <xs:attribute
                                                name="LevelName"
                                                type="xs:string" />

                                            <xs:attribute
                                                name="RoleID"
                                                type="xs:int" />

                                            <xs:attribute
                                                name="RoleName"
                                                type="xs:string" />

                                            <xs:attribute
                                                name="ServiceProviderID"
                                                type="xs:int" />

                                            <xs:attribute
                                                name="ServiceProvider"
                                                type="xs:string" />

                                            <xs:attribute
                                                name="ClientID"
                                                type="xs:int" />

                                            <xs:attribute
                                                name="ClientName"
                                                type="xs:string" />
                                        </xs:complexType>
                                    </xs:element>
                                </xs:choice>
                            </xs:complexType>
                        </xs:element>
                    </xs:schema>

                    <Table
                        ClientID="0"
                        ClientName=""
                        LevelID="1"
                        LevelName="IT Team"
                        RoleID="1"
                        RoleName="IT Admin"
                        ServiceProvider=""
                        ServiceProviderID="0"
                        UserID="1"
                        UserName="Admin" />
                </DocumentElement>
            </UserLoginResult>
        </UserLoginResponse>
    </s:Body>

</s:Envelope>

I have already tried wsdl2code to generate proxy class for my WCFbut It generates only requests and not responses. Is there any other tool for WCF in android? .NET users easily parsing the above xml as dataset to datatable. can I use similar functionality in android?

Please lead me to get a flexible solution.

share|improve this question
    
seesharpgears.blogspot.in/2010/10/…. check this –  Raghunandan Jun 12 '13 at 5:32
    
my web service contains 160 methods ... it is very painful to write those classes –  Shantanu Banerjee Jun 12 '13 at 5:54

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.