RE: namespace?



{\rtf1\ansi\ansicpg936\deff0\deflang1033\deflangfe2052{\fonttbl{\f0\fnil\fprq2\fcharset0 MS Sans Serif;}}
\viewkind4\uc1\pard\lang2052\f0\fs20 Hi Cj,
\par
\par As for the following attribute:
\par
\par <System.Web.Services.WebService(Namespace:="http://tempuri.org/";)>
\par
\par It is used to describe and decorate your webservice service class(applied on class level). Certainly, you can use the same one for C# code, they're the same. Also you can find more properites(that you can set on this attribute for your service class):
\par
\par #WebServiceAttribute Class
\par http://msdn2.microsoft.com/en-us/library/system.web.services.webserviceattribute.aspx
\par
\par In addition, to better understand its usage, you can visit the service's WSDL document (view through yourservice.asmx?WSDL url). Change the attribute setting and refresh the WSDL document to see the changes.
\par
\par Sincerely,
\par
\par Steven Cheng
\par
\par Microsoft MSDN Online Support Lead
\par
\par
\par
\par ==================================================
\par
\par Get notification to my posts through email? Please refer to
\par http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
\par ications.
\par
\par
\par
\par Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
\par where an initial response from the community or a Microsoft Support
\par Engineer within 1 business day is acceptable. Please note that each follow
\par up response may take approximately 2 business days as the support
\par professional working with you may need further investigation to reach the
\par most efficient resolution. The offering is not appropriate for situations
\par that require urgent, real-time or phone-based interactions or complex
\par project analysis and dump analysis issues. Issues of this nature are best
\par handled working with a dedicated Microsoft Support Engineer by contacting
\par Microsoft Customer Support Services (CSS) at
\par http://msdn.microsoft.com/subscriptions/support/default.aspx.
\par
\par ==================================================
\par \tab
\par
\par This posting is provided "AS IS" with no warranties, and confers no rights.
\par
\par
\par \pard\li720 --------------------
\par Date: Fri, 11 Jan 2008 15:07:05 -0500
\par From: cj <cj@xxxxxxxxxxxxx>
\par User-Agent: Thunderbird 2.0.0.6 (Windows/20070728)
\par Subject: namespace?
\par Newsgroups: microsoft.public.dotnet.framework.webservices
\par
\par
\par What does the line
\par <System.Web.Services.WebService(Namespace:="http://tempuri.org/";)> _
\par do in the example below?
\par
\par Imports System.Web.Services
\par Imports System.Web.Services.Protocols
\par Imports System.ComponentModel
\par
\par ' To allow this Web Service to be called from script, using ASP.NET
\par AJAX, uncomment the following line.
\par ' <System.Web.Script.Services.ScriptService()> _
\par <System.Web.Services.WebService(Namespace:="http://tempuri.org/";)> _
\par <System.Web.Services.WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)>
\par _
\par <ToolboxItem(False)> _
\par Public Class Service1
\par Inherits System.Web.Services.WebService
\par
\par <WebMethod()> _
\par Public Function HelloWorld() As String
\par Return "Hello World"
\par End Function
\par
\par End Class
\par
\par And why don't I see a similar line in the C# example at
\par http://dotnetjunkies.com/Tutorial/4D13CEFA-D0FD-44BE-8749-8D17B5757564.dcik
\par ?
\par \pard
\par
\par }

Relevant Pages

  • RE: LNK2005 error
    ... I think your program imports the definition of ... how about using a namespace to wrap those imported stuffs? ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.vc.ide_general)
  • Re: VB2005 Primitives and text problem.
    ... Imports Microsoft.DirectX.Direct3DX does not have Manager. ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.win32.programmer.directx.managed)
  • Re: VB2005 Primitives and text problem.
    ... Imports Microsoft.DirectX.Direct3DX does not have Manager. ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.win32.programmer.directx.managed)
  • Re: System Error (1003) - 0x000000CB
    ... MCSE, CCEA, Microsoft MVP - Terminal Server ... A call to Microsoft Support seems appropriate. ... Computer: TERMSERVER1 ...
    (microsoft.public.windows.terminal_services)
  • Re: How do I Sleep for a specified amount of time and relinquish c
    ... Finally, the Windows thread scheduling is not a trivial topic, it is ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework)