[android-developers] Re: Retrieving XML Document from web service

2010-08-03 Thread DanH
Use Transformer.transform(DOMSource, StreamResult): http://www.theserverside.com/discussions/thread.tss?thread_id=26060 If Android included org.apache.xml.serialize you could use the simpler XMLSerializer. On Jul 30, 5:45 pm, beacon indiantalkiedhi...@gmail.com wrote: Thanks for your reply.

[android-developers] Re: Retrieving XML Document from web service

2010-08-02 Thread beacon
Hi Filip, It doesn't seem to be the case, as the web service does not give me any option it just sends XML response whatever it is. On Jul 31, 9:29 am, Filip Havlicek havlicek.fi...@gmail.com wrote: Hi, just a quick thought about that - some web services have a request property to define

[android-developers] Re: Retrieving XML Document from web service

2010-08-02 Thread beacon
Hello Ed, Thanks for your response. I added the code snippet to me requesting/ receiving class . But I still get the response in the same format as mentioned above. I am not sure why. beacon On Aug 1, 10:56 pm, Ed edscha...@gmail.com wrote: Add this for all the classes you're using. This

[android-developers] Re: Retrieving XML Document from web service

2010-08-02 Thread beacon
Hello CMF, Thanks for your reply. But I dont think I can use this kind of approach as I need to send a soap object to the web service and nothing else and it also implements OAuth. beacon On Aug 1, 11:26 pm, CMF manf...@gmail.com wrote: I dont know if it is suitable for your case,

Re: [android-developers] Re: Retrieving XML Document from web service

2010-08-02 Thread Filip Havlicek
Hi Beacon, it would probably be the best if you could give as a link to the service you are trying to use. We could at least look into the website to see if you are not missing something, because this just doesn't look like XML at all afaik. Best regards, Filip Havlicek 2010/8/2 beacon

[android-developers] Re: Retrieving XML Document from web service

2010-08-02 Thread beacon
Hi Filip, Thanks for your reply. Sure I could give that. This is the what I am trying to access. private static final String NAMESPACE = http://tempuri.org/;; private static final String METHOD_NAME = GetProfileDataXML; private static final String URL =

[android-developers] Re: Retrieving XML Document from web service

2010-08-02 Thread Bob Kerns
What Ed is telling you (and the other people trying to help) is that what you are seeing is NOT the format that the server is ending. In fact, it would be somewhat difficult for you to actually see that data in your program and also parse it. What you are seeing is the result of (implicitly)

[android-developers] Re: Retrieving XML Document from web service

2010-08-02 Thread beacon
Thanks for your reply Bob. I got hold of whats happening now. I will look in to it. Thank you, Beacon On Aug 2, 1:23 pm, Bob Kerns r...@acm.org wrote: What Ed is telling you (and the other people trying to help) is that what you are seeing is NOT the format that the server is ending. In

Re: [android-developers] Re: Retrieving XML Document from web service

2010-08-02 Thread Frank Weiss
I think Bob Kearns may have it right. I was also wondering why you'd be seeing any XML if you're using SOAP, which is basically an RPC framework. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] Re: Retrieving XML Document from web service

2010-08-01 Thread Ed
Add this for all the classes you're using. This will let KSoap2 know what java classes handle the each response element. envelope.addMapping(request.getNamespace(), MyDotNetClassName, MyAndroidClass.class); For others trying to help this is the

[android-developers] Re: Retrieving XML Document from web service

2010-08-01 Thread CMF
I dont know if it is suitable for your case, but I can retrieve the xml document for the web with the following method URL mURL= new URL(http://X/a.xml;); http = (HttpURLConnection) mURL.openConnection(); int nRC = http.getResponseCode(); if (nRC == HttpURLConnection.HTTP_OK) {

Re: [android-developers] Re: Retrieving XML Document from web service

2010-07-31 Thread Filip Havlicek
Hi, just a quick thought about that - some web services have a request property to define in what format you want the result. Are you sure this isn't your case? Best regards, Filip Havlicek 2010/7/31 beacon indiantalkiedhi...@gmail.com Hello Frank, This is what I am doing on the client side

[android-developers] Re: Retrieving XML Document from web service

2010-07-30 Thread beacon
Thanks for your reply. But it is not similar to JSON. My sample data looks something like this anyType{ProductName=anyType{Text=Nadolol; Code=anyType{Value=11755; CodingSystem=FDB_routed; }; Code=anyType{Value=20.55472; CodingSystem=Google; }; Code=anyType{Value=7870; CodingSystem=FDB; };

Re: [android-developers] Re: Retrieving XML Document from web service

2010-07-30 Thread Frank Weiss
I don't recognize what data format that is, but I would guess that your code has an error or is not sending the right HTTP headers. What client side code are you using? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

[android-developers] Re: Retrieving XML Document from web service

2010-07-30 Thread beacon
Hello Frank, This is what I am doing on the client side SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME); request.addProperty(token,WebPage.token); SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11); envelope.dotNet = true;