The type 'System.Web.Services.Protocols.SoapHttpClientProtocol'

The type 'System.Web.Services.Protocols.SoapHttpClientProtocol

Page 1 of 1

1 Replies - 8438 Views - Last Post: 16 August 2010 - 12:36 PM Rate Topic: -----

#1 Best123   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 32
  • Joined: 05-August 10

The type 'System.Web.Services.Protocols.SoapHttpClientProtocol'

Posted 16 August 2010 - 12:20 PM

I created a dll for a web service by compilint the proxy using thi following command.


E:\Me\MyProjects\MyWebServices>c:\Windows\Microsoft.net\Framework\v2.0.50727
\csc.exe /t:library /r:System.web.Services.dll /r:System.xml.dll Results.cs


I get a file Results.dll.


I created a console application and added refrence to Results.dll


Now I try to access it as follows:

private static void GetFG(string CaseNum)
        {
            Results Res = new Results();
            DataSet ds = new DataSet();
            ds = Res.Get_Results(Case);
            ds.WriteXml("Res.xml");
        }


When I compile this, I get the following error:

Error 1 The type 'System.Web.Services.Protocols.SoapHttpClientProtocol' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Web.Services, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. E:\Me\MyProjects\ResultsWebServicesConsoleClient1\ResultsWebServicesConsoleClient1\Results.cs 16 13 ResultsWebServicesConsoleClient1


what am I missing?

This post has been edited by JackOfAllTrades: 16 August 2010 - 12:27 PM
Reason for edit:: Added code tags.


Is This A Good Question/Topic? 0
  • +

Replies To: The type 'System.Web.Services.Protocols.SoapHttpClientProtocol'

#2 Curtis Rutland   User is offline

  • (╯□)╯︵ (~ .o.)~
  • member icon


Reputation: 5106
  • View blog
  • Posts: 9,283
  • Joined: 08-June 10

Re: The type 'System.Web.Services.Protocols.SoapHttpClientProtocol'

Posted 16 August 2010 - 12:36 PM

View PostBest123, on 16 August 2010 - 06:20 PM, said:

what am I missing?


A reference to "System.Web.Services".

Posted Image

Posted Image
Was This Post Helpful? 1
  • +
  • -

Page 1 of 1