07-28-2009 05:03 AM
Hello Friends, I need to parse this Soap Response and get the title from this. i tried a lot of samples but i cant parse the xml which has soap envelope. Please tell me how to parse this and get the title. Thanks
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
07-29-2009 10:27 AM
07-29-2009 10:36 AM - edited 07-29-2009 11:09 AM
ok i will make my doubht clearer
when i call
SoapObject result = (SoapObject)envelope.bodyIn;
i get this string-
<Job ID="12343242"><MetaData Matter="This is some Matter"></MetaData></Job>
now i need to extract the job id ,matter into two strings. how to do that?
07-29-2009 11:18 AM
09-03-2009 10:13 AM
i want to use ksoap too. How can i add ksoap to my project? Shall i first download the jar file of ksoap and then add to my project? Where can i download it?
Thank you very much!
09-03-2009 11:04 AM
Download from http://sourceforge.net/projects/ksoap2/
add the jar to as a library. If you get an error when you compile then you might need to preverify it. Try it and let me know