How do i reset the Tempuri.org namespace in a C# WebService?

  • Thread starter Thread starter acool
  • Start date Start date
A

acool

In VB.NET I have a URL that specifies the WebService Namespace. I cannot
find this URL in C# how do I find and then reset the Tempuri.org namespace
in C#?
 
Have you tried running your webservice?
It's right there on the default page.

For XML Web services creating using ASP.NET, the default namespace can be
changed using the WebService attribute's Namespace property. The WebService
attribute is an attribute applied to the class that contains the XML Web
service methods. Below is a code example that sets the namespace to
"http://microsoft.com/webservices/":

C#

[WebService(Namespace="http://microsoft.com/webservices/")]
public class MyWebService {
// implementation
}
 
Back
Top