slim xml-rpc

Problems with WiFi, SQLite ,Bluetooth, WiMax, Proxies, etc...

Postby pskink » Tue Dec 16, 2008 3:12 pm

nickthecook wrote:pskink, this is awesome!

I was getting some exceptions from Apache's XmlRpc implementation on Android, and I feared I wouldn't be able to do what I wanted to. Yet your code worked perfectly (and is also simpler to use for my needs).

When I get something useful written with it, I'll post it. :)

Thank you!


nice to hear it works for you. i decided to host the code as google project. see:
http://code.google.com/p/android-xmlrpc

if i have something new i'll update svn
pskink
pskink
Master Developer
Master Developer
 
Posts: 719
Joined: Mon Nov 24, 2008 3:49 pm

Top

Soap Implemantation (problems ) response parsing

Postby desuvinodkumar » Sat Jul 11, 2009 11:53 am

HI

I want to Consume the SOAP Web Services in Android

i downloaded KSOAP2 Library

i have done some thing like this ......

private static final String SOAP_ACTION = "getRating";
private static final String METHOD_NAME = "getRating";
private static final String NAMESPACE = "http://www.w3.org/2001/12/soap-envelope";
private static final String URL = "php url";
private ContextWrapper context;

/** Called when the activity is first created. */
@Override
public void onCreate(Bundle icicle)
{
super.onCreate(icicle);
setContentView(R.layout.list);

//CALL the web service method
SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);
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
SoapObject resultsRequestSOAP = (SoapObject) envelope.bodyIn;

}

i am getting the response from the server like this ......not know what is this type...


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; };

how can i parse this response.....


can any body help me regarding this .....

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

Top
Previous

Return to Networking & Database Problems

Who is online

Users browsing this forum: Exabot [Bot] and 8 guests