namespace?



What does the line
<System.Web.Services.WebService(Namespace:="http://tempuri.org/";)> _
do in the example below?

Imports System.Web.Services
Imports System.Web.Services.Protocols
Imports System.ComponentModel

' To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line.
' <System.Web.Script.Services.ScriptService()> _
<System.Web.Services.WebService(Namespace:="http://tempuri.org/";)> _
<System.Web.Services.WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _
<ToolboxItem(False)> _
Public Class Service1
Inherits System.Web.Services.WebService

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

End Class

And why don't I see a similar line in the C# example at
http://dotnetjunkies.com/Tutorial/4D13CEFA-D0FD-44BE-8749-8D17B5757564.dcik
?
.



Relevant Pages

  • Re: help understand C# example for use in my VB web service
    ... Never mind this question I figured it out. ... I'm still working with the default web service that is given when you open a new web service project in VS2008. ... Imports System.Web.Services.Protocols ... Public Class Service1 ...
    (microsoft.public.dotnet.framework.webservices)
  • help understand C# example for use in my VB web service
    ... I'm trying to understand writing web services in VB and I have been pointed to an example that's in C# ... I'm still working with the default web service that is given when you open a new web service project in VS2008. ... Imports System.Web.Services.Protocols ... Public Class Service1 ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: localhost usage in web service
    ... public class Service1: System.Web.Services.WebService ... If you have not pointed your web reference to "localhost", ... In the Add Web Reference dialog box, type the URL for the Web service in the Address text box and press ENTER. ... ConsoleApplication1.ServiceReference1.Service myMathService = new ...
    (microsoft.public.dotnet.framework.aspnet)
  • problem setting up the security on my test web service
    ... Public Class AddNumbersWebService ... It fires up a web page where I can test the web service. ... I think this is a simple setup problem with the IIS security settings ... Imports System.ComponentModel ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: ResponseSoapContext.Current is null?
    ... Created a new web service, ... Verified that the web.config contains the entries for WSE. ... Imports System.Web.Services ... Public Class Service1 ...
    (microsoft.public.dotnet.framework.webservices)

Loading