473,414 Members | 1,667 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

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.Services.

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

D:\Net\tlaTLA\xxxxConsumer\default.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.
--

Nov 23 '05 #1
1 1096
Got it ... after all this time ... the reference must be of the form ...

private void Page_Load( object sender, System.EventArgs e )
{
localhost.xxxxService xsWork = new localhost.xxxxService( );
lblResult.Text = xsWork.HelloWorld( );
}

where localhost is the proxy name.

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

"Thom Little" <th**@tlanet.net> wrote in message
news:O7**************@TK2MSFTNGP12.phx.gbl...
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.Services.

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

D:\Net\tlaTLA\xxxxConsumer\default.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.
--

Nov 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Ringbearer | last post by:
i'm trying to compile the vb helloworld program that's presented in the online library. when i try to run the build.bat file, i get the following error C:\Program Files\Microsoft.NET\SDK\v1.1...
2
by: carolineb2005 | last post by:
I have compiled this simple program which accept arguments on line using System; class HelloWorld { public static void Main(string args) { Console.WriteLine("Hello ", args); } }
1
by: Hayato Iriumi | last post by:
I guess I'm going through initiation while I try to get into C++. I can't even compile a Hello World app. Here is the code... #include <iostream> using namespace std; void main() { cout <<...
3
by: Mister.programmer | last post by:
Hi, I can't compile anything with vbc, so i am asking for help please. I have a file helloworld.aspx written in asp.net using vb, here it is: <script runat="server" language="vb">...
9
by: Richard Lionheart | last post by:
Hi All, I've got Visual Studio .Net installed, but I don't know it very well. So I tried to create a plain old Win32 using the command-line complier. I tried to compile: ************...
1
by: 张沈鹏 | last post by:
How to compile the HelloWorld of boost.asio? Maybe this is a stupid problem , but I really don't konw how to find the right way. My compile environment is WinXP, Msys , MinGw , G++ 3.4.2,...
2
by: darko | last post by:
ok, i'm just starting out, with c++ and i downloaded some wideos, i'm working on VS.NET 2005, and hthe first script is helloworld #include <iostream> main() { std::cout << "Hello World"; }...
4
by: devgupta01 | last post by:
Hi all, I have simple program- "HelloWorld.java" to run at eclipse. Java Version 1.4.2 Eclipse Version 3.2 class HelloWorld { public static void main(String aa) {
1
by: Wendi Turner | last post by:
I was just trying to consume the simple HelloWorld webservice that comes in Visual Studio 2005 with a simple ASP.NET WebSite. We have created the web reference to the url that serves the...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.