I have created an android webservicce client. When i call the webservice, certain operations happen on my webservice which produces various xml files. How can i access those xml files in my android code?
            Asked
            
        
        
            Active
            
        
            Viewed 36 times
        
    -1
            
            
        - 
                    If you use a REST, you don't get a whole File. You should get a String in the HTTP-Response (your xml-content). You have to parse this in your App. – JDurstberger Apr 17 '15 at 07:36
- 
                    No my webservice is not returning xml file. It is just generating xml files. I need to send those files to my Android Client. – Sudhakar Samak Apr 17 '15 at 07:47
- 
                    Or how to just return the xml file and recieve it in my android? – Sudhakar Samak Apr 17 '15 at 07:49
2 Answers
0
            
            
        You can use http://simple.sourceforge.net/ Saxparser or xml pull parser
 
    
    
        playmaker420
        
- 1,527
- 4
- 27
- 52
- 
                    
- 
                    In your question, it says when u call the webservice it produces some xml files? or xml response – playmaker420 Apr 17 '15 at 08:43
0
            
            
        First create a Method on you REST to return a download-url to the XML-Files on the server. The ServerSide implementation depends on the REST you are using (Java, C#, ....)
Then use this URL to download the Files onto your Android device. Like here.
 
    
    
        Community
        
- 1
- 1
 
    
    
        JDurstberger
        
- 4,127
- 8
- 31
- 68
