method in Class not visible

E

Erkan KURTULUÞ

Hi Everbody,

i want to any class send to client side with Web Method. But there is a
method in this class. altough its all property can be pass on client side, A
method can't be pass. how can i pass a method in class?
[WebMethod]

public ogr getogr

{

return new ogr();

}

public class ogr

{

int i;

public string test

{

Return "test";

}

}

Client side

public void getogr

{

WebService.ogr _ogr = WebService.getogr();

_ogr.test(); // invisible

}
 
E

Erymuzuan Mustapa

may be you can create another service for the "test method" or published it
as meber of "ogr", the behaviour is actually caused when ogr is serialized
to XML, in only serializes the public members,

but if you really want to this , then web services is not an option, .Net
remoting make more sense when you can have an interface on both side,

Regards
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top