Problem calling a Web Service referenced object.



Hi,
I have C# solution that requires a call to a web service in our network. At this time the service is being tested on my local machine (aka: localhost).


I am able to Add Web Reference... into the project; however, when i go to reference the web service like this:

localhost.ServiceName _webService = null;
ser.vice.name.object _theService = null;

I get the following Build error:
The type or namespace name 'localhost' could not be found (are you missing a using directive or an assembly reference?)


It is worth noting Intellisense does not work.
I have tried referencing other test web services i have lying around my test box (These web services work from the browser and from other solutions perfectly.) They get the same build errors.


Are my missing something obvious here?


Francisco


.



Relevant Pages

  • Re: I am needing a gentle introduction to accessing a perl array from a reference
    ... up here, the DBI connection to the database, the select statement, ... Can you either post the fully relevant portions of your code, ... code in a web services program, as well as parts from a 50+ line ... hash given a reference. ...
    (comp.lang.perl.misc)
  • Re: Huge project - long build time
    ... projects and I'm having no problems whatsoever. ... As I finish web services and class libraries I remove them from my solution. ... For every single project in my solution I reference the DLL directly, ...
    (microsoft.public.dotnet.general)
  • RE: [WebMethod] System.NullReferenceException: Object reference not set to an instance of an object.
    ... Web services, as any web app ... (especially on Windows server 2003) ... you're seeing a null reference exception when you ... tell your program to return the reference returned by the directory call. ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: link problem in a C++ web service client
    ... > Java web services and need to test them with C++ clients. ... I'm having problems with the C++ client. ... > reference to the service WSDL and named the reference donow11service, ... > Creating web service proxy file for donow11service ... ...
    (microsoft.public.dotnet.languages.vc)
  • Re: web service reference
    ... When I make a change to a web service, I have to 'Add Web Reference' for the changes to take affect. ... If I do 'Update web reference' the web app does not see the web service changes. ... The web services are on the same box as I'm developing on, the .wsdl files are pointing to the correct location, but the changes aren't happening unless I do 'Add Web Reference'. ...
    (microsoft.public.dotnet.framework.aspnet)