P
phil2phil
hi,
i was working on a book sample, book showed how to connect to a
webservice using Vs.Net (web-reference) and another way to do withou
vs. i got the vs working but the other way isn't. I build the proper
dll using the wsdl command, and added the generated dll to my bin. i
then use the object but keep getting reference errors:
this is the generated code (wsdl tool made):
.....
public class StockTicker :
System.Web.Services.Protocols.SoapHttpClientProtocol {
/// <remarks/>
public StockTicker() {
....
i just want to use that object (note the default namespace was Wsdl)
now in my aspx page, i have this:
....
using Wsdl.StockTicker;
namespace ServiceTest
{
public class WebForm1 : System.Web.UI.Page
{
StockTicker proxy = new StockTicker();
....
problem is it can't locate the StockTicker object, i tried adding the
using Wsdl.StockTicker line but still the same error:
Compiler Error Message: CS0246: The type or namespace name
'StockTicker' could not be found (are you missing a using directive or
an assembly reference?)
the dll is there in the project bin, any ideas?
i was working on a book sample, book showed how to connect to a
webservice using Vs.Net (web-reference) and another way to do withou
vs. i got the vs working but the other way isn't. I build the proper
dll using the wsdl command, and added the generated dll to my bin. i
then use the object but keep getting reference errors:
this is the generated code (wsdl tool made):
.....
public class StockTicker :
System.Web.Services.Protocols.SoapHttpClientProtocol {
/// <remarks/>
public StockTicker() {
....
i just want to use that object (note the default namespace was Wsdl)
now in my aspx page, i have this:
....
using Wsdl.StockTicker;
namespace ServiceTest
{
public class WebForm1 : System.Web.UI.Page
{
StockTicker proxy = new StockTicker();
....
problem is it can't locate the StockTicker object, i tried adding the
using Wsdl.StockTicker line but still the same error:
Compiler Error Message: CS0246: The type or namespace name
'StockTicker' could not be found (are you missing a using directive or
an assembly reference?)
the dll is there in the project bin, any ideas?