NuSoap Web services Response Problem

Put your problem here if it does not fit any of the other categories.

NuSoap Web services Response Problem

Postby desuvinodkumar » Tue Jun 30, 2009 11:24 am

HI

Actually i am getting the response from the server but not in the XML format
it is in different form

can any body give the explanation about this ......

This is the response i am getting from the server

i need respponse in xml format using soap web services and it should return in the xomplex string datatype ....

IndexContestInfo{item=anyType
{
name=Ankitha; totalimages=2; rating=2.5; }; item=anyType{name=Anushka; totalimages=4; rating=9.5; }; item=anyType{name=Apsara; totalimages=1; rating=0; }; item=anyType{name=Assorted; totalimages=3; rating=4; }; item=anyType{name=Babilona; totalimages=3; rating=1; }; item=anyType{name=Bharathi; totalimages=1; rating=1; }; item=anyType{name=Bhuvaneswari; totalimages=2; rating=1; }; item=anyType{name=Charmi; totalimages=1; rating=-1;
};

here is my code used for calling web services


//CALL the web service method with the three parameters name,total images and rating

SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);
// request.addProperty("name", "celebrity_name");
// request.addProperty("totalimages", "total_images");
// request.addProperty("rating", "rating");

SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
envelope.setOutputSoapObject(request);
AndroidHttpTransport androidHttpTransport = new AndroidHttpTransport(URL);

try
{

androidHttpTransport.call(SOAP_ACTION, envelope);

// Get the SAOP Envelope back and the extract the body

String resultsRequestSOAP = (String) envelope.bodyIn;



((TextView)findViewById(R.id.lblStatus)).setText(resultsRequestSOAP.toString());





Log.v("iSizzle", resultsRequestSOAP);


// Server Response Will display in the Log Cat




}
catch (Exception e)
{
Log.e("Error", e.getMessage());
}


Output of the emulator is attached can any body give me suggestions regarding this

i need parse the soap object when i get the xml response ....and should display in the form of list
Attachments
output.PNG
output.PNG (168.23 KiB) Viewed 264 times
Vinod...
User avatar
desuvinodkumar
Senior Developer
Senior Developer
 
Posts: 102
Joined: Mon Mar 23, 2009 6:51 am
Location: India

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: Google [Bot] and 18 guests