Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Namespaces with Web References

Namespaces with Web References

Scheduled Pinned Locked Moved C#
help
2 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Phillip Donegan
    wrote on last edited by
    #1

    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

    P 1 Reply Last reply
    0
    • P Phillip Donegan

      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

      P Offline
      P Offline
      Phillip Donegan
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups