TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Kiran Karale
NA
390
213.9k
Problem In Consuming WebService in Android
Apr 26 2012 6:13 AM
hi,
Everybody
I dint get Any Solution,
Im trying to give a return type instead of dataset in form of xml document, I dont know whether this is right or wrong why because when this web service is being consumed on android im getting error as shown in picture and my code in web servcie at server is as follows
error see in Attachment
[WebMethod]
public XmlDocument GetTechnicianHomePage(string userid)
{
DataSet ds = null;
con.ConString = ConfigurationManager.ConnectionStrings["ConnectionString"].ToString();
con.CmdType = CommandType.StoredProcedure;
con.CmdString = "ProcSearch_ServiceReq_AndriodImmediateAction";
SqlParameter user_code = new SqlParameter("@user_id", SqlDbType.NVarChar,500);
user_code.SqlValue = userid;
ds = con.LoadDataSet(user_code);
SoapException se = new SoapException("Fault occurred", SoapException.ClientFaultCode, Context.Request.Url.AbsoluteUri);
XmlDocument xd = new XmlDocument();
xd.LoadXml(ds.GetXml());
return xd;
throw se;
and give me suggestion how to send proper xml through webservice and consume it in android through parsing..
its very urgent help me
Reply
Answers (
0
)
Interesting
Application don't work on another machine