Namespaces with Web References
-
Hi everyone, I'm working on a solution were i have changed the default namespace to something like the following (in a class libary): XGSDev.XeroxOrderTracking.OrderTrackingService.ComsLayer Now i've also used some web references too. The problem is that the webreference do not follow this namespace. They are instead at ComsLayer. I would have expected XGSDev.XeroxOrderTracking.OrderTrackingService.ComsLayer. to be correct. Normally this isn't a problem but now because of this i'm having lots of ambiguous variables and methods. I'm sure i'm missing something simple but i can't think what it is. Thanks Phil
-
Hi everyone, I'm working on a solution were i have changed the default namespace to something like the following (in a class libary): XGSDev.XeroxOrderTracking.OrderTrackingService.ComsLayer Now i've also used some web references too. The problem is that the webreference do not follow this namespace. They are instead at ComsLayer. I would have expected XGSDev.XeroxOrderTracking.OrderTrackingService.ComsLayer. to be correct. Normally this isn't a problem but now because of this i'm having lots of ambiguous variables and methods. I'm sure i'm missing something simple but i can't think what it is. Thanks Phil
Ok, I figured out that if I change the reference.cs file for each of my web references then everything works. The namespaces match and now I can access what I want. However, as i'm sure you'll all know as soon as I update the webreference it reverts back to the other names space of ComsLayer.. So what i need to do is be able to set a default value of this namespace to XGSDev.XeroxOrderTracking.OrderTrackingService.ComsLayer. I found out that in the properties of the Reference.map you can enter a custom tool namespace. Enter your namespace here and everything will work!! Phil