HelloWorld

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Thom Little

    #1

    HelloWorld

    I am trying to create the HelloWorld web service on localhost and consume it
    from a separate project (C# code behind) on local host.

    I created the service, executed WSDL, and executed CSC to create DLL.

    The consumer is a separate project in a separate virtual directory. I can
    set the Web Reference and a "using" statement for System.Web.Serv ices.

    When I add a "using" statement for the service (using xxxxService;) I get
    ....

    D:\Net\tlaTLA\x xxxConsumer\def ault.aspx.cs(13 ): The type or namespace name
    'xxxxService' could not be found (are you missing a using directive or an
    assembly reference?)

    I assume the HelloWorld service actually does work. What am I overlooking?

    --
    -- Thom Little -- www.tlanet.net -- Thom Little Associates, Ltd.
    --



  • Thom Little

    #2
    Re: HelloWorld

    Got it ... after all this time ... the reference must be of the form ...

    private void Page_Load( object sender, System.EventArg s e )
    {
    localhost.xxxxS ervice xsWork = new localhost.xxxxS ervice( );
    lblResult.Text = xsWork.HelloWor ld( );
    }

    where localhost is the proxy name.

    --
    -- Thom Little -- www.tlanet.net -- Thom Little Associates, Ltd.
    --

    "Thom Little" <thom@tlanet.ne t> wrote in message
    news:O777WAIOFH A.4052@TK2MSFTN GP12.phx.gbl...[color=blue]
    >I am trying to create the HelloWorld web service on localhost and consume
    >it from a separate project (C# code behind) on local host.
    >
    > I created the service, executed WSDL, and executed CSC to create DLL.
    >
    > The consumer is a separate project in a separate virtual directory. I can
    > set the Web Reference and a "using" statement for System.Web.Serv ices.
    >
    > When I add a "using" statement for the service (using xxxxService;) I get
    > ...
    >
    > D:\Net\tlaTLA\x xxxConsumer\def ault.aspx.cs(13 ): The type or namespace name
    > 'xxxxService' could not be found (are you missing a using directive or an
    > assembly reference?)
    >
    > I assume the HelloWorld service actually does work. What am I
    > overlooking?
    >
    > --
    > -- Thom Little -- www.tlanet.net -- Thom Little Associates, Ltd.
    > --
    >
    >
    >[/color]


    Comment

    Working...