cannot see all public classes within web service namespace

cannot see all public classes within web service namespace

Post by hharr » Fri, 08 Sep 2006 01:21:44


hello all,

i have created a simple web service:

public class ImmediateResponse : System.Web.Services.WebService
{
public ImmediateResponse()
{
}

[WebMethod]
public string getString(string sLang)
{
return "you are speaking " + sLang;
}

public class Inputs
{
public Inputs()
{
}

[WebMethod]
public string getString(string sLang)
{
return "you are speaking " + sLang;
}
}
}

When I add a web reference for this class in another project, I am only
able to create instances of the ImmediateResponse class -> I am unable
to create instances of the Inputs class..

Any ideas ?

Thanks in advance
 
 
 

1. Seeing a web within the web within the web....

2. Class inheriting from class within the namespace

Tree structures are interesting. Often the root of the tree is used as a
handle for the tree itself. However, the tree often has additional
methods beyond that of the root node.

I couldn't figure out how to do this simply via inheritance due to
chicken-and-egg problems with namespacing:

class Tree < Tree::Node
class Node
end
end
#=> chicken-and-egg.rb:1: uninitialized constant Tree (NameError)


I came up with two alternative techniques to achieve the same goal. I'm
not wild about the way either are handled by RDoc (though the first is
substantially better):

# Technique 1: Using modules
class Tree
module NodeStuff
#...all the meat here...
end
include NodeStuff

class Node
include NodeStuff
end
end

# Technique 2: Conjur the chicken first, and kill it later
class TmpTreeNode
# ...all the meat here...
end
class Tree < TmpTreeNode
Node = TmpTreeNode
end
Object.class_eval{ remove_const( :TmpTreeNode ) }


Ideally, IMO, Ruby would let me do this:
# No "Tree" module or class has yet been defined;
# it is a pure namespace at this point
class Tree::Node
# ...all the meat here...
end

# Now Tree is a class
class Tree < Tree::Node
end


I don't have any question, and it's not important enough to me to make
an RCR for the above. I just thought I'd share these thoughts with the
world.

3. Calling an Asynch web service within a web service.

4. Web Application, Web Service, Class Libraries, and StrongNameIdentityPermissionAttribute Class

5. Calling a Web Service using Axis, from within an Axis Web Service running under Tomcat

6. How do you make all public classes of a web service accessible from client?

7. Web Service Client Cannot Connect to Web Service From Some Machine

8. calling setTimeout within custom class and cannot access the class' variables

9. WSDL Proxy class cannot connect to Web Service

10. NameError question - def(self, master) - master not in namespace within class?

11. VS.NET Public Namespaces, classes, Function - Conceptual misunderstanding.

12. NameError question - def(self,master) - master not in namespace within class?

13. namespace within a class

14. how to use Form1 listbox from other class within the same namespace

15. Getting the name of namespace, Class and method from within a C# program