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
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top