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 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) calling toString()
> on the objects that are being returned, which is in a compact format
> intended for developers. Not necessarily a good format, but that's
> basically irrelevant. You are not having the problem you think you are
> having!
>
> The fact that you are getting this output at all means that you ARE
> successfully receiving and parsing the XML. In fact, from the presence
> of the 'anyType' tokens, I am guessing it has even been through XML
> Schema Validation.
>
> If you wanted to see the actual data, you'd have to open the
> connection yourself using the same URL, post the same data if using
> POST, and then read the result as a series bytes, convert to
> characters (using a Reader) and output the result. I haven't a clue
> how you'd manage to do this and get KSoap to also process it; I
> wouldn't even try.
>
> So the bottom line is -- the problem you think you face basically
> doesn't exist.  Your next step is to make use of that returned data
> through the provided APIs.
>
> On Aug 2, 7:15 am, beacon <indiantalkiedhi...@gmail.com> wrote:
>
> > 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 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 KSoap2 toString() once KSoap2
> > > has parsed the XML response.
>
> > > Ed
>
> > > On Jul 31, 9:28 am, beacon <indiantalkiedhi...@gmail.com> wrote:
>
> > > > 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;
> > > > envelope.setOutputSoapObject(request);
> > > > HttpTransportSE androidHttpTransport = new HttpTransportSE(URL);
> > > > androidHttpTransport.setXmlVersionTag("<?xml version=\"1.0\" encoding=
> > > > \"UTF-8\"?>");
> > > > androidHttpTransport.call(SOAP_ACTION, envelope);
> > > > SoapObject result = (SoapObject) envelope.bodyIn;
> > > > String strResult = result.toString();
>
> > > > I am getting all the fields that I am supposed to get, but I am not
> > > > getting it in the XML format.That's my problem.
>
> > > > On Jul 30, 7:05 pm, Frank Weiss <fewe...@gmail.com> wrote:
>
> > > > > 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, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to