Web services problem regarding response from soap Object

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

Web services problem regarding response from soap Object

Postby desuvinodkumar » Thu Jul 02, 2009 8:04 am

HI

i am connecting nusoap web services from android .......

i have done a interface for i am getting the response from the server but not in xml format .....
it is in differnet form i do't km\now what is that format

is it possible to get JSON response from SoapObject....
iam guessing that the response is JSON

here the response i have pasted below....

getRatingResponse
{
return=ContestInfo{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;
};

I want to know that what is response i got from the server

How to parse that response and show in the form of list....

i am very new to web services i need a help regarding this...


One More Question is it possible to cast the Soap Object into Complex String[] type....


thanks in advance
Vinod...
User avatar
desuvinodkumar
Senior Developer
Senior Developer
 
Posts: 102
Joined: Mon Mar 23, 2009 6:51 am
Location: India

Top

Re: Web services problem regarding response from soap Object

Postby desuvinodkumar » Thu Jul 02, 2009 8:14 am

Hi

Actually my process is ...

1. i need to get the response from the server

2. the response getting from the server in xml from i should parse that and show in the form of list

i am getting the response from the soap web services

but that is in object form

my questions :

1. is there any other way to convert that Soap Object form into xml form

2. or if the response is in JSON form how do i parse that and get the listview

3.or if any way to parse the response i got that only ....means can any body suggest that ...
Vinod...
User avatar
desuvinodkumar
Senior Developer
Senior Developer
 
Posts: 102
Joined: Mon Mar 23, 2009 6:51 am
Location: India

Postby Rajapandian » Thu Aug 13, 2009 10:32 am

Hai,
I am also having the same problem what you have faced.Have you got the answer for
that.If you got means please post your answer.It will be helpful to me.My response
is more complex like this,

anyType{
UserName=anyType{};
Password=anyType{};
ApplicationCode=JOB;
ActionType=Query;
MessageParameters=anyType{Parameters=anyType{}; };
TableData=anyType{TableNo=167;
TableName=Job;
DataRows=
anyType{
DataRow=
anyType{
DataRowValues=
anyType{
DataRowValue=
anyType{
FieldNo=1;
FieldName=No.;
PrimaryKey=true;
FieldType=Code20; DataValue=DEERFIELD, 8 WP;
};
DataRowValue=
anyType
{
FieldNo=3;
FieldName=Description;
PrimaryKey=false;
FieldType=Text50;
DataValue=Setting up Eight Work Areas;
};
DataRowValue=
anyType
{
FieldNo=4;
FieldName=Description 2;
PrimaryKey=false;
FieldType=Text50;
DataValue=anyType{};
};
};
};
};
};
};
ResponseForRequest=GETTABLEDATA;
CustomIdentifier=TestBB;
Applications=anyType{};
Forms=anyType{};
Menu=anyType{};
}

waiting for your post.
Rajapandian
Freshman
Freshman
 
Posts: 2
Joined: Mon Jun 29, 2009 12:00 pm
Location: India,TN

Postby saravana » Thu Aug 13, 2009 1:31 pm

Hi,

I am also facing the same problem.I found this web page contains how to work on complex type of web service response in android .I hope it will helpful to you.If this document helps u pls, tell me how to proceed i am also trying my level best if i found solution first then i will inform u about how to proceed.

link:http://www.codeproject.com/KB/mobile/CallWebServiceFromkSOAP.aspx?display=Print

regards,
s.kumaran.
saravana
Once Poster
Once Poster
 
Posts: 1
Joined: Thu Aug 13, 2009 1:23 pm

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 12 guests