How to exchange method with a web services of customers Class ?

K

kejeiri

As I know, in the Web Services context using VB.net we can serialize
all attributes of any class just including it at a head of the web
method like that:
----------
<WebMethod(Description:=" this is just the beginning of the jocke
:)"), XmlInclude(GetType(MyClass1)),
XmlInclude(GetType(MyClass2))...., XmlInclude(GetType(MyClassN))> _
Public Function myMethod(ByVal a_myVar As String) As Object
.....
Return myObject
End Function
---------

The include allow the Soap protocol to exchange those customers type,
but
My question is: is there any way to get the methods of MyClass1... and
MyClassN?
Best Regards
 
K

kejeiri

Hello everyone,
This is I'am again !!!...
I wish just to draw the attention to the fact, that my MyClass1...and
MyClassN are declared "Serializable"... But, I never get my classes
methods, I get just attributes (Or methods Properties) !!!!...
Must I declare my classes methods as webmethod's too ?
Best Regards
 
D

DalePres

Ok... I admit it. I must have been asleep when I posted this response. It
demonstrates consuming the class and public properties, not methods.

I need coffee!

DalePres
 
D

DalePres

Well, my blunder this morning inspired me to write the article I have been
promising to write but not gotten done before. Here is an article that
follows up on the first that I posted to you this morning. This followup
article does demonstrate how to share classes between a web service and
client in such a way that the methods are available to both the web service
and the client.

http://www.dalepreston.com/Blog/Archives/2005_02_24_Archive.html

HTH

DalePres
MCAD, MCDBA, MCSE
 

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

Top