473,387 Members | 1,700 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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

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
Nov 16 '05 #1
4 1161
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

---------------------------------------------
ke*****@yahoo.fr (kejeiri) wrote in message news:<f0*************************@posting.google.c om>...
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

Nov 16 '05 #2
It is a little unclear what you're asking, but I think that my sample at
http://www.dalepreston.com/Blog/Arch...6_Archive.html covers most
of the possibilities.

It demonstrates defining a class in a web service and consuming that class,
public methods and all, in a client - in my example, the web application is
the client to the web service.

DalePres
MCAD, MCDBA, MCSE
"kejeiri" <ke*****@yahoo.fr> wrote in message
news:f0**************************@posting.google.c om...
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

---------------------------------------------
ke*****@yahoo.fr (kejeiri) wrote in message
news:<f0*************************@posting.google.c om>...
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

Nov 16 '05 #3
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
"DalePres" <don-t-spa-m-me@lea-ve-me-a-lone--.com> wrote in message
news:uH**************@tk2msftngp13.phx.gbl...
It is a little unclear what you're asking, but I think that my sample at
http://www.dalepreston.com/Blog/Arch...6_Archive.html covers
most of the possibilities.

It demonstrates defining a class in a web service and consuming that
class, public methods and all, in a client - in my example, the web
application is the client to the web service.

DalePres
MCAD, MCDBA, MCSE
"kejeiri" <ke*****@yahoo.fr> wrote in message
news:f0**************************@posting.google.c om...
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

---------------------------------------------
ke*****@yahoo.fr (kejeiri) wrote in message
news:<f0*************************@posting.google.c om>...
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


Nov 16 '05 #4
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/Arch...4_Archive.html

HTH

DalePres
MCAD, MCDBA, MCSE
"kejeiri" <ke*****@yahoo.fr> wrote in message
news:f0**************************@posting.google.c om...
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

---------------------------------------------
ke*****@yahoo.fr (kejeiri) wrote in message
news:<f0*************************@posting.google.c om>...
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

Nov 16 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

19
by: steve | last post by:
// What I want to do Use enumerated types with the Interlocked.Exchange methods Suggestions please // My estimation of problem Seems like Interlocked.Exchange only works with ints,...
6
by: Boris Tabenkin | last post by:
Hi all, I want to apologize if this is the wrong forum for this question. I would like to write an application, in Java running on UNIX, that would insert, read, and mark as completed tasks in...
3
by: maria.s | last post by:
Hi, I try to create a calender-item in the personal calendar folder from an ASP.NET application using XML-HTTP Request (WebDAV). System: Windows 2003 SP1, Exchange 2003 SP1 Configuration...
8
by: Frank | last post by:
I think I've confused myself completely here :-) I have used System.Web.Mail, but am not sure if this works with Exchange Server 5.5. I asked the client if they're email server supported SMTP, and...
1
by: Eduardo Garcia-Prieto | last post by:
I have come accross a problem in using the Interlocked.Exchange(Object, Object) method while using Option Strict On in my project. I have a private class structure variable which can be updated...
0
by: Tim Sapp | last post by:
Guys, I am working on a new web site for our company and have started to move my code from VB.Net to C#. I have ran into a snag that I can't seem to figure out. I am trying to create an...
1
by: Gerhard | last post by:
How can I create a new contact in exchange server from a vb.net web application?
2
by: Steven Cheng [MSFT] | last post by:
Hi Cj, I also noticed that the "Act" variable here seems hasn't been declared(or declared anywhere else?). I've try building the same code and got the same result and the "Operator '+' cannot be...
5
by: krasman | last post by:
hi everyone, i hope you might help me on this one. i need to create a contact in a exchange public folder using dotnet (vb or c#) and exchange 2003, without using outlook object model. i'm...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.