The NameService reference has to be either a reference to a file containing an IOR, e.g., file://tmp/NS_Ref
or an URL, e.g., http://www.testme.not/NS_Ref
or just a corbaloc/corbaname URL, e.g., corbaloc:iiop:1.2@host1:3075/NameService
The last one is most common. You can shorten it, for example, to corbaloc::localhost:900/NameService
More information to corbaloc could be found at http://www.ciaranmchale.com/corba-explained-simply/the-corbaloc-and-corbaname-urls.html