(Ian Varley)
12/30/2002 8:05:00 PM
I'm trying to use a web service for the first time, to get a stock
symbol. When I run this code (using a web reference from
"com.garsterworks.webservices"):
Stocks s = new Stocks();
Console.WriteLine("Price:" + s.GetLatestQuote("IBM").ToString());
I get this runtime error:
"An unhandled exception of type
'System.Web.Services.Protocols.SoapException' occurred in
system.web.services.dll. Additional information: Server was unable to
process request. --> Object reference not set to an instance of an
object."
The error is thrown from within the Visual-Studio-created Reference.cs
file, when the generated GetLatestQuote function is called. Can
anybody suggest what I might be doing wrong? I tried using a couple
other stock-quote web services with no luck there either.
Thanks!
Ian