T
Toby Mathews
I have a class that I return from a web service. The client receives this
fine and I can access all its properties and methods. However, the class
also contains an instance of another class. The client can see the
properties of this second class, but not the methods - does anyone know why
this would be?
I call a web method that returns an instance of the Test class (below), say
called objTest in the web service client. If so I can get at
objTest.Sub.Property ok, but not objTest.Sub.Method(). The latter does not
appear in the available properties/methods displayed by intellisense in the
Visual Studio IDE for example.
public class Test
{
public Test()
{
}
private MyNamespace.SubTest objSub = new MyNamespace.Subtest();
public MyNamespace.SubTest Sub {get {return objSub;}}
}
public class SubTest
{
public SubTest()
{
{
public string Property {get {return msProp;} set{msProp = value;}}
public void Method(string Arg)
{
// Do something here.
}
}
Any help would be much appreciated, thanks a lot,
Toby Mathews
fine and I can access all its properties and methods. However, the class
also contains an instance of another class. The client can see the
properties of this second class, but not the methods - does anyone know why
this would be?
I call a web method that returns an instance of the Test class (below), say
called objTest in the web service client. If so I can get at
objTest.Sub.Property ok, but not objTest.Sub.Method(). The latter does not
appear in the available properties/methods displayed by intellisense in the
Visual Studio IDE for example.
public class Test
{
public Test()
{
}
private MyNamespace.SubTest objSub = new MyNamespace.Subtest();
public MyNamespace.SubTest Sub {get {return objSub;}}
}
public class SubTest
{
public SubTest()
{
{
public string Property {get {return msProp;} set{msProp = value;}}
public void Method(string Arg)
{
// Do something here.
}
}
Any help would be much appreciated, thanks a lot,
Toby Mathews