Click here to Skip to main content
15,888,968 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all, I have a .net class that invokes any webservice, and receives the URL of the webservice as a parameter. I use this piece of code for the namespace, but I don't really know what it does:
_


My problem is that, if I have an internet connection ON, the code works, but if I turn it off, it no longer works, perhaps because it cannot reach http://tempuri.org to create the namespace.

How do I solve this, regarding that the computer that will call the webservice does not have a internet connection?

thank you
Posted

1 solution

In .net namespace are used to prevent collision between the classes.

C#
namespace A {public class X {}}

namespace B {public class X {}}



Though both have the same class name X, they are different. ie one is A.X and other is B.X

So if you want you can change the namespace to a custom site of your choice like http://www.abc.com
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900