In Visual Studio 2010, I’m building a Silverlight C# application. I’m attempting to use an IRequestHandler in order to build a custom SOAP request.
I’ve included the appropriate reference (System.Data.Services), and the appropriate namespace. (I get no error on the namespace).
using System.Data;
using System.Data.Services;
using System.Data.Services.Client; <---- Shouldn't need these, added
using System.Data.Services.Common; <---- in desperation.
namespace HurricaneMaps
{
public partial class MainPage : UserControl
{
public MainPage()
{
InitializeComponent();
//Let's make a manual request via SOAP - simple object access protocol
IRequestHandler irh;
}
}
}
When compiling, I get a missing reference/bad namespace for IRequestHandler… I’m at my wits end! Is there something I’m missing, or is this an error with VS? I’ve tried making a new project under different versions, but no luck.
In fact, nothing from System.Data.Service (MSDN – System.Data.Services) works for me… I should include a screenshot showing that it is in my references, but you’ll have to trust me.. anyone encounter a similar issue?
IRequestHandler and therefore System.Data.Services is not part if Silverlight.. only System.Data.Services.Client is..
But you may achieve what you want by using sth.like: HttpWebRequest.Create(xyz)