473,854 Members | 1,471 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

publishing Hello World to local IIS

cj
Perhaps someone knows how to do this. When I open a new ASP.NET web
service application in VS 2008, it opens with a simple Hello World web
service already written. I want to see this work. Without changing a
thing I built the solution and published it to localhost default web
site. How can I test it?????
Jan 7 '08 #1
11 3011

"cj" <cj@nospam.nosp amwrote in message
news:%2******** ********@TK2MSF TNGP05.phx.gbl. ..
Perhaps someone knows how to do this. When I open a new ASP.NET web
service application in VS 2008, it opens with a simple Hello World web
service already written. I want to see this work. Without changing a
thing I built the solution and published it to localhost default web site.
How can I test it?????
It's called consume a Web service using .Net. You can look it up, use
Google.

Jan 8 '08 #2
Hi Cj,

The ASP.NET webservice(asmx ) should provide simple test page(for webmethd
with simple type parameters). For standard webservice test/use, you should
create a webservice client proxy (in the client project) and call the
webservice through proxy class. In .net project(with Visual Studio), it is
quite simple to create such a proxy, here are some reference that introduce
this:

#HOW TO: Write a Simple Web Service by Using Visual C# .NET
http://support.microsoft.com/kb/308359

#How to build and use XML Web services by using Visual Studio .NET or
Visual Studio 2005
http://support.microsoft.com/kb/315935/en-us

#Creating and Consuming .NET Web Services in Five Easy Steps
http://dotnetjunkies.com/Tutorial/4D...7B5757564.dcik

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

=============== =============== =============== =====

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.

=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
Date: Mon, 07 Jan 2008 10:28:48 -0500
From: cj <cj@nospam.nosp am>
Subject: publishing Hello World to local IIS
Message-ID: <#4************ **@TK2MSFTNGP05 .phx.gbl>
Newsgroups: microsoft.publi c.dotnet.framew ork.webservices

Perhaps someone knows how to do this. When I open a new ASP.NET web
service application in VS 2008, it opens with a simple Hello World web
service already written. I want to see this work. Without changing a
thing I built the solution and published it to localhost default web
site. How can I test it?????

Jan 8 '08 #3
cj
Thanks! From one of your links, "Browse to the MathService.asm x Web
service page to test the Web service. If you set the local computer to
host the page, the URL is http://localhost/MathService/MathService.asm x."

That is what I was looking for.

I've been tied up with other priorties today so it'll probably be
tomorrow before I can test now.
Steven Cheng[MSFT] wrote:
Hi Cj,

The ASP.NET webservice(asmx ) should provide simple test page(for webmethd
with simple type parameters). For standard webservice test/use, you should
create a webservice client proxy (in the client project) and call the
webservice through proxy class. In .net project(with Visual Studio), it is
quite simple to create such a proxy, here are some reference that introduce
this:

#HOW TO: Write a Simple Web Service by Using Visual C# .NET
http://support.microsoft.com/kb/308359

#How to build and use XML Web services by using Visual Studio .NET or
Visual Studio 2005
http://support.microsoft.com/kb/315935/en-us

#Creating and Consuming .NET Web Services in Five Easy Steps
http://dotnetjunkies.com/Tutorial/4D...7B5757564.dcik

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

=============== =============== =============== =====

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.

=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
Date: Mon, 07 Jan 2008 10:28:48 -0500
From: cj <cj@nospam.nosp am>
Subject: publishing Hello World to local IIS
Message-ID: <#4************ **@TK2MSFTNGP05 .phx.gbl>
Newsgroups: microsoft.publi c.dotnet.framew ork.webservices

Perhaps someone knows how to do this. When I open a new ASP.NET web
service application in VS 2008, it opens with a simple Hello World web
service already written. I want to see this work. Without changing a
thing I built the solution and published it to localhost default web
site. How can I test it?????
Jan 8 '08 #4
No problem. Please feel free to post here if there is anything else need
help.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
Date: Tue, 08 Jan 2008 14:44:42 -0500
From: cj <cj@nospam.nosp am>
Subject: Re: publishing Hello World to local IIS

Thanks! From one of your links, "Browse to the MathService.asm x Web
service page to test the Web service. If you set the local computer to
host the page, the URL is http://localhost/MathService/MathService.asm x."

That is what I was looking for.

I've been tied up with other priorties today so it'll probably be
tomorrow before I can test now.
Steven Cheng[MSFT] wrote:
Hi Cj,

The ASP.NET webservice(asmx ) should provide simple test page(for webmethd
with simple type parameters). For standard webservice test/use, you
should
create a webservice client proxy (in the client project) and call the
webservice through proxy class. In .net project(with Visual Studio), it
is
quite simple to create such a proxy, here are some reference that
introduce
this:

#HOW TO: Write a Simple Web Service by Using Visual C# .NET
http://support.microsoft.com/kb/308359

#How to build and use XML Web services by using Visual Studio .NET or
Visual Studio 2005
http://support.microsoft.com/kb/315935/en-us

#Creating and Consuming .NET Web Services in Five Easy Steps
http://dotnetjunkies.com/Tutorial/4D...7B5757564.dcik
>
Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

=============== =============== =============== =====

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent
issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each
follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.

=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no
rights.
>
--------------------
Date: Mon, 07 Jan 2008 10:28:48 -0500
From: cj <cj@nospam.nosp am>
Subject: publishing Hello World to local IIS
Message-ID: <#4************ **@TK2MSFTNGP05 .phx.gbl>
Newsgroups: microsoft.publi c.dotnet.framew ork.webservices

Perhaps someone knows how to do this. When I open a new ASP.NET web
service application in VS 2008, it opens with a simple Hello World web
service already written. I want to see this work. Without changing a
thing I built the solution and published it to localhost default web
site. How can I test it?????
Jan 9 '08 #5
cj
I got time this AM to look at this some more. My project is named
MyTestWebServic e1 and saved it to the default web site on the local IIS.
The WebMethod is HelloWorld. I was kind of surprised I had to type
http://localhost/Service1.asmx into the browser. It did then show me
that HelloWorld was there and I could test it.

I guess my question is if I want to make a couple of web services should
I add another .asmx file to the project? Or should I add another
WebMethod to Service1.asmx? Or should I start a new project for the
second web service?

How is this generally done? I want to do it as simply as possible but
also would like to do it the way most people are used to using them.

Eventually we have a couple business partners that will need to use the
web services and I want it to be easy for them to use.

Thanks for your help.
Steven Cheng[MSFT] wrote:
No problem. Please feel free to post here if there is anything else need
help.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
Date: Tue, 08 Jan 2008 14:44:42 -0500
From: cj <cj@nospam.nosp am>
Subject: Re: publishing Hello World to local IIS

Thanks! From one of your links, "Browse to the MathService.asm x Web
service page to test the Web service. If you set the local computer to
host the page, the URL is http://localhost/MathService/MathService.asm x."

That is what I was looking for.

I've been tied up with other priorties today so it'll probably be
tomorrow before I can test now.
Steven Cheng[MSFT] wrote:
>Hi Cj,

The ASP.NET webservice(asmx ) should provide simple test page(for webmethd
with simple type parameters). For standard webservice test/use, you
should
>create a webservice client proxy (in the client project) and call the
webservice through proxy class. In .net project(with Visual Studio), it
is
>quite simple to create such a proxy, here are some reference that
introduce
>this:

#HOW TO: Write a Simple Web Service by Using Visual C# .NET
http://support.microsoft.com/kb/308359

#How to build and use XML Web services by using Visual Studio .NET or
Visual Studio 2005
http://support.microsoft.com/kb/315935/en-us

#Creating and Consuming .NET Web Services in Five Easy Steps
http://dotnetjunkies.com/Tutorial/4D...7B5757564.dcik
>Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

============== =============== =============== ======

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
>ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent
issues
>where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each
follow
>up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.

============== =============== =============== ======
This posting is provided "AS IS" with no warranties, and confers no
rights.
>--------------------
Date: Mon, 07 Jan 2008 10:28:48 -0500
From: cj <cj@nospam.nosp am>
Subject: publishing Hello World to local IIS
Message-ID: <#4************ **@TK2MSFTNGP05 .phx.gbl>
Newsgroups: microsoft.publi c.dotnet.framew ork.webservices

Perhaps someone knows how to do this. When I open a new ASP.NET web
service application in VS 2008, it opens with a simple Hello World web
service already written. I want to see this work. Without changing a
thing I built the solution and published it to localhost default web
site. How can I test it?????
Jan 10 '08 #6
Hi Cj,

Glad that you've got progress. As for providing multiple webservices, I
think it is up to you that how to arrange those webservice
methods/endpoints.

If you have many service functions that belong to the same business logic,
you may group them in the same asmx service endpoint. Otherwise, you can
separate them into multiple webservice asmx endpoint. And you can create
separate webservice proxy classes for them.

In addition, if you want to make your client consumers easy to visit and
consume your service, I suggest you create a dedicated aspx web page which
grou p all the service's description page (...asmx?wsdl) on it (as
hyperlink). Thus, your clients can just visit that page and lookup all the
services you provided.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
Date: Thu, 10 Jan 2008 11:14:15 -0500
From: cj <cj@nospam.nosp am>
User-Agent: Thunderbird 2.0.0.6 (Windows/20070728)
MIME-Version: 1.0
Subject: Re: publishing Hello World to local IIS
I got time this AM to look at this some more. My project is named
MyTestWebServic e1 and saved it to the default web site on the local IIS.
The WebMethod is HelloWorld. I was kind of surprised I had to type
http://localhost/Service1.asmx into the browser. It did then show me
that HelloWorld was there and I could test it.

I guess my question is if I want to make a couple of web services should
I add another .asmx file to the project? Or should I add another
WebMethod to Service1.asmx? Or should I start a new project for the
second web service?

How is this generally done? I want to do it as simply as possible but
also would like to do it the way most people are used to using them.

Eventually we have a couple business partners that will need to use the
web services and I want it to be easy for them to use.

Thanks for your help.
Steven Cheng[MSFT] wrote:
Jan 14 '08 #7
cj
If I create a second class inside Service1.asmx it doesn't show in
http://localhost/Service1.asmx. I take it that is normal. I guess I'm
only allowed 1 class inside service1.asmx that will show and that class
must be named service1.asmx. Is this correct?

For instance in the below code http://localhost/Service1.asmx doesn't
show any of the Goodbye services. It does show HelloWorld and HelloCJ.

Imports System.Web.Serv ices
Imports System.Web.Serv ices.Protocols
Imports System.Componen tModel

' To allow this Web Service to be called from script, using ASP.NET
AJAX, uncomment the following line.
' <System.Web.Scr ipt.Services.Sc riptService()_
<System.Web.Ser vices.WebServic e(Namespace:="h ttp://tempuri.org/")_
<System.Web.Ser vices.WebServic eBinding(Confor msTo:=WsiProfil es.BasicProfile 1_1)>
_
<ToolboxItem(Fa lse)_
Public Class Service1
Inherits System.Web.Serv ices.WebService

<WebMethod()_
Public Function HelloWorld() As String
Return "Hello World"
End Function

<WebMethod()_
Public Function HelloCJ() As String
Return "Hello CJ"
End Function
End Class

<System.Web.Ser vices.WebServic e(Namespace:="h ttp://tempuri.org/")_
<System.Web.Ser vices.WebServic eBinding(Confor msTo:=WsiProfil es.BasicProfile 1_1)>
_
<ToolboxItem(Fa lse)_
Public Class Service2
Inherits System.Web.Serv ices.WebService

<WebMethod()_
Public Function GoodbyeWorld() As String
Return "Goodbye World"
End Function

<WebMethod()_
Public Function GoodbyeCJ() As String
Return "Goodbye CJ"
End Function
End Class

But even if I create a new service Service2.asmx inside the project and
put the goodbye code in it I can't get http://localhost/Service2.asmx
to bring up anything. I would have thought that would work.

Steven Cheng[MSFT] wrote:
Hi Cj,

Glad that you've got progress. As for providing multiple webservices, I
think it is up to you that how to arrange those webservice
methods/endpoints.

If you have many service functions that belong to the same business logic,
you may group them in the same asmx service endpoint. Otherwise, you can
separate them into multiple webservice asmx endpoint. And you can create
separate webservice proxy classes for them.

In addition, if you want to make your client consumers easy to visit and
consume your service, I suggest you create a dedicated aspx web page which
grou p all the service's description page (...asmx?wsdl) on it (as
hyperlink). Thus, your clients can just visit that page and lookup all the
services you provided.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
Date: Thu, 10 Jan 2008 11:14:15 -0500
From: cj <cj@nospam.nosp am>
User-Agent: Thunderbird 2.0.0.6 (Windows/20070728)
MIME-Version: 1.0
Subject: Re: publishing Hello World to local IIS
I got time this AM to look at this some more. My project is named
MyTestWebServic e1 and saved it to the default web site on the local IIS.
The WebMethod is HelloWorld. I was kind of surprised I had to type
http://localhost/Service1.asmx into the browser. It did then show me
that HelloWorld was there and I could test it.

I guess my question is if I want to make a couple of web services should
I add another .asmx file to the project? Or should I add another
WebMethod to Service1.asmx? Or should I start a new project for the
second web service?

How is this generally done? I want to do it as simply as possible but
also would like to do it the way most people are used to using them.

Eventually we have a couple business partners that will need to use the
web services and I want it to be easy for them to use.

Thanks for your help.
Steven Cheng[MSFT] wrote:
Jan 14 '08 #8
Hi Cj,

Yes, you should keep one webservice class in each asmx. Also, you can add
more than one classes in an asmx file(codebehind ), however, the key point
is that only one of them should be marked as a "WebService ", this is done
through the "WebServiceAttr ribute"(the <WebService(... .)in VB.NET). e.g.

<WebService("Na me=.....")>
public class ServiceClass
{

}

Also, for each WebService method in it, you need to decorate it with
<WebMethodAttri bute>

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
Date: Mon, 14 Jan 2008 17:01:06 -0500
From: cj <cj@nospam.nosp am>
Subject: Re: publishing Hello World to local IIS

If I create a second class inside Service1.asmx it doesn't show in
http://localhost/Service1.asmx. I take it that is normal. I guess I'm
only allowed 1 class inside service1.asmx that will show and that class
must be named service1.asmx. Is this correct?

For instance in the below code http://localhost/Service1.asmx doesn't
show any of the Goodbye services. It does show HelloWorld and HelloCJ.

Imports System.Web.Serv ices
Imports System.Web.Serv ices.Protocols
Imports System.Componen tModel

' To allow this Web Service to be called from script, using ASP.NET
AJAX, uncomment the following line.
' <System.Web.Scr ipt.Services.Sc riptService()_
<System.Web.Ser vices.WebServic e(Namespace:="h ttp://tempuri.org/")_
<System.Web.Ser vices.WebServic eBinding(Confor msTo:=WsiProfil es.BasicProfile 1
_1)>
_
<ToolboxItem(Fa lse)_
Public Class Service1
Inherits System.Web.Serv ices.WebService

<WebMethod()_
Public Function HelloWorld() As String
Return "Hello World"
End Function

<WebMethod()_
Public Function HelloCJ() As String
Return "Hello CJ"
End Function
End Class

<System.Web.Ser vices.WebServic e(Namespace:="h ttp://tempuri.org/")_
<System.Web.Ser vices.WebServic eBinding(Confor msTo:=WsiProfil es.BasicProfile 1
_1)>
_
<ToolboxItem(Fa lse)_
Public Class Service2
Inherits System.Web.Serv ices.WebService

<WebMethod()_
Public Function GoodbyeWorld() As String
Return "Goodbye World"
End Function

<WebMethod()_
Public Function GoodbyeCJ() As String
Return "Goodbye CJ"
End Function
End Class

But even if I create a new service Service2.asmx inside the project and
put the goodbye code in it I can't get http://localhost/Service2.asmx
to bring up anything. I would have thought that would work.

Steven Cheng[MSFT] wrote:
Hi Cj,

Glad that you've got progress. As for providing multiple webservices, I
think it is up to you that how to arrange those webservice
methods/endpoints.

If you have many service functions that belong to the same business
logic,
you may group them in the same asmx service endpoint. Otherwise, you can
separate them into multiple webservice asmx endpoint. And you can create
separate webservice proxy classes for them.

In addition, if you want to make your client consumers easy to visit and
consume your service, I suggest you create a dedicated aspx web page
which
grou p all the service's description page (...asmx?wsdl) on it (as
hyperlink). Thus, your clients can just visit that page and lookup all
the
services you provided.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no
rights.
>

--------------------
Date: Thu, 10 Jan 2008 11:14:15 -0500
From: cj <cj@nospam.nosp am>
User-Agent: Thunderbird 2.0.0.6 (Windows/20070728)
MIME-Version: 1.0
Subject: Re: publishing Hello World to local IIS

I got time this AM to look at this some more. My project is named
MyTestWebServic e1 and saved it to the default web site on the local IIS.
The WebMethod is HelloWorld. I was kind of surprised I had to type
http://localhost/Service1.asmx into the browser. It did then show me
that HelloWorld was there and I could test it.

I guess my question is if I want to make a couple of web services should
I add another .asmx file to the project? Or should I add another
WebMethod to Service1.asmx? Or should I start a new project for the
second web service?

How is this generally done? I want to do it as simply as possible but
also would like to do it the way most people are used to using them.

Eventually we have a couple business partners that will need to use the
web services and I want it to be easy for them to use.

Thanks for your help.
Steven Cheng[MSFT] wrote:
Jan 15 '08 #9
cj
I'm sorry but what do you mean by:

Also, for each WebService method in it, you need to decorate it with
<WebMethodAttri bute>

Can you give me an example of where I would add that? Am I right in
that it is needed for remote access to the web service?

<System.Web.Ser vices.WebServic e(Name:="CJ's Service",
Description:="T esting 123")_
<System.Web.Ser vices.WebServic eBinding(Confor msTo:=WsiProfil es.BasicProfile 1_1)>
_
<ToolboxItem(Fa lse)_
Public Class Service1

Steven Cheng[MSFT] wrote:
Hi Cj,

Yes, you should keep one webservice class in each asmx. Also, you can add
more than one classes in an asmx file(codebehind ), however, the key point
is that only one of them should be marked as a "WebService ", this is done
through the "WebServiceAttr ribute"(the <WebService(... .)in VB.NET). e.g.

<WebService("Na me=.....")>
public class ServiceClass
{

}

Also, for each WebService method in it, you need to decorate it with
<WebMethodAttri bute>

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
Date: Mon, 14 Jan 2008 17:01:06 -0500
From: cj <cj@nospam.nosp am>
Subject: Re: publishing Hello World to local IIS

If I create a second class inside Service1.asmx it doesn't show in
http://localhost/Service1.asmx. I take it that is normal. I guess I'm
only allowed 1 class inside service1.asmx that will show and that class
must be named service1.asmx. Is this correct?

For instance in the below code http://localhost/Service1.asmx doesn't
show any of the Goodbye services. It does show HelloWorld and HelloCJ.

Imports System.Web.Serv ices
Imports System.Web.Serv ices.Protocols
Imports System.Componen tModel

' To allow this Web Service to be called from script, using ASP.NET
AJAX, uncomment the following line.
' <System.Web.Scr ipt.Services.Sc riptService()_
<System.Web.Ser vices.WebServic e(Namespace:="h ttp://tempuri.org/")_
<System.Web.Ser vices.WebServic eBinding(Confor msTo:=WsiProfil es.BasicProfile 1
_1)>
_
<ToolboxItem(Fa lse)_
Public Class Service1
Inherits System.Web.Serv ices.WebService

<WebMethod()_
Public Function HelloWorld() As String
Return "Hello World"
End Function

<WebMethod()_
Public Function HelloCJ() As String
Return "Hello CJ"
End Function
End Class

<System.Web.Ser vices.WebServic e(Namespace:="h ttp://tempuri.org/")_
<System.Web.Ser vices.WebServic eBinding(Confor msTo:=WsiProfil es.BasicProfile 1
_1)>
_
<ToolboxItem(Fa lse)_
Public Class Service2
Inherits System.Web.Serv ices.WebService

<WebMethod()_
Public Function GoodbyeWorld() As String
Return "Goodbye World"
End Function

<WebMethod()_
Public Function GoodbyeCJ() As String
Return "Goodbye CJ"
End Function
End Class

But even if I create a new service Service2.asmx inside the project and
put the goodbye code in it I can't get http://localhost/Service2.asmx
to bring up anything. I would have thought that would work.

Steven Cheng[MSFT] wrote:
>Hi Cj,

Glad that you've got progress. As for providing multiple webservices, I
think it is up to you that how to arrange those webservice
methods/endpoints.

If you have many service functions that belong to the same business
logic,
>you may group them in the same asmx service endpoint. Otherwise, you can
separate them into multiple webservice asmx endpoint. And you can create
separate webservice proxy classes for them.

In addition, if you want to make your client consumers easy to visit and
consume your service, I suggest you create a dedicated aspx web page
which
>grou p all the service's description page (...asmx?wsdl) on it (as
hyperlink). Thus, your clients can just visit that page and lookup all
the
>services you provided.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no
rights.
>>
--------------------
Date: Thu, 10 Jan 2008 11:14:15 -0500
From: cj <cj@nospam.nosp am>
User-Agent: Thunderbird 2.0.0.6 (Windows/20070728)
MIME-Version: 1.0
Subject: Re: publishing Hello World to local IIS

>I got time this AM to look at this some more. My project is named
MyTestWebServi ce1 and saved it to the default web site on the local IIS.
The WebMethod is HelloWorld. I was kind of surprised I had to type
http://localhost/Service1.asmx into the browser. It did then show me
that HelloWorld was there and I could test it.

I guess my question is if I want to make a couple of web services should
I add another .asmx file to the project? Or should I add another
WebMethod to Service1.asmx? Or should I start a new project for the
second web service?

How is this generally done? I want to do it as simply as possible but
also would like to do it the way most people are used to using them.

Eventually we have a couple business partners that will need to use the
web services and I want it to be easy for them to use.

Thanks for your help.
Steven Cheng[MSFT] wrote:
Jan 15 '08 #10

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

Similar topics

2
1510
by: Dustin Davis | last post by:
This is my first attempt at using ClickOnce. It seems it is publishing OK, but I can't run the install. If I use IE, I just see XML in the web browser. If I use Firefox, I download a setup file, run it, then see XML in the browser. I'm using Windows 2000, though my friend tried it on XP and got the same results. Any suggestions? I've tried on 4 different computers with the same results - I always see just the xml :(
12
5922
by: Nathan Sokalski | last post by:
I recently upgraded to from Visual Studio .NET 2003 to Visual Studio .NET 2005. In Visual Studio .NET 2003 when I would select 'Build' it would add a *.dll with the name of the Project to a /bin/ folder in the same directory as the source code. However, in Visual Studio .NET 2005 when I selected 'Publish Web Site' and selected a target location to place it in, it placed the following files in it: All *.aspx files All *.html files
5
1889
by: Greg Smith | last post by:
I am making the step from windows to web. The final destination is our production server running Server 2003 Web Edition. I am having problems using the BUILD | PUBLISH WEB SITE option. What are the basic steps to publish a simple web site? All examples I can find use the local server. I am looking for something like. 1. Create a "New web site" selecting the "File System" option.
2
1355
by: Elmo Watson | last post by:
Since I came from the HTML world many years ago - I am just in the habit of copying/FTPing all my ASP.Net websites to the remote server However, I have a friend who says that Publishing is the only way to go and it's the 'MS' way to do it I've had nothing but trouble trying to do this, many times, with different errors popping up, either in publishing, building before publishing, or running after publishing...
9
5240
by: Coward 9 | last post by:
HI, I created the simplest "ASP .NET Web Service" by using VS 2005 and Visual C#( File | New | Web Site). However, when I tried to access the service from IE 7.0 http://www.aztao.org/WebService/Service.asmx (the fie DOES exist which can be verified by typing http://www.aztao.org/WebService/ in address bar only).
1
3255
by: James T. Dennis | last post by:
You'd think that using things like gettext would be easy. Superficially it seems well documented in the Library Reference(*). However, it can be surprisingly difficult to get the external details right. * http://docs.python.org/lib/node738.html Here's what I finally came up with as the simplest instructions, suitable for an "overview of Python programming" class: Start with the venerable "Hello, World!" program ... slightly modified
5
1880
by: rmgalante | last post by:
I've been using the VS2005 Publish utility on one of my projects for about six months. I have a large site with hundreds of files, thousands if you include the code behind files. So I thought I'd use the publish utility and pre-compile my site, but make it updateable. I thought I would be increasing the access time for each page. Here is what I've found. 1. If I publish a pre-compiled, updateable version of the site, it takes 50...
2
6382
by: Max2006 | last post by:
Hi, After I right-click on my web application project file and choose "Publish ." and do the publishing, the result publishable files does not include the *.ashx files. Is it by design? How can I add *.ashx files to the publish target?
3
3220
by: fudge | last post by:
hello, i am very new to publishing applications.can some one help me with it..as i am facing an error after publishing path not valid..i went through many sites and forum for and found many articles but it dint help me.... my problem is that i am using vb.net application with access 2007 datbase....n the connection string is from local cmoputer...i did all datasource and things..but stil my connection still goes like...
0
9901
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, weíll explore What is ONU, What Is Router, ONU & Routerís main usage, and What is the difference between ONU and Router. Letís take a closer look ! Part I. Meaning of...
0
9751
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11024
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10756
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
5741
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5941
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4560
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4159
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3186
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.