Is it returning a single string that contains "<book><title>Hamlet</title><body>To be or not to be</body></book>" in which case you need to use XSLT to get the value, other make the return type liek the following:
using System;
public class Answer
{
private string msBody = String.Empty;
private string msTitle = String.Empty;
/// <summary>
/// Body of book
/// </summary>
public string Body
{
get { return msBody; }
set { msBody = value; }
}
/// <summary>
/// Title of book
/// </summary>
public string Title
{
get { return msTitle; }
set { msTitle = value; }
}
}
Click "Mark as Answer" on the post that helped you.
This earns you a point and marks your thread as Resolved so we will all know you have been helped.
FAQ on the correct forum http://forums.asp.net/p/1337412/2699239.aspx#2699239
Marked as answer by Nice2007 on Jan 12, 2008 08:09 PM
TATWORTH
All-Star
72405 Points
14018 Posts
MVP
Re: How to process a web service answer?
Jan 12, 2008 04:19 PM|LINK
Is it returning a single string that contains "<book><title>Hamlet</title><body>To be or not to be</body></book>" in which case you need to use XSLT to get the value, other make the return type liek the following:
using System;
public class Answer
{
private string msBody = String.Empty;
private string msTitle = String.Empty;
/// <summary>
/// Body of book
/// </summary>
public string Body
{
get { return msBody; }
set { msBody = value; }
}
/// <summary>
/// Title of book
/// </summary>
public string Title
{
get { return msTitle; }
set { msTitle = value; }
}
}
This earns you a point and marks your thread as Resolved so we will all know you have been helped.
FAQ on the correct forum http://forums.asp.net/p/1337412/2699239.aspx#2699239