Re: returning custom class from web service
From: Ken Dopierala Jr. (kdopierala2_at_wi.rr.com)
Date: 09/22/04
- Next message: Denis Georgievski: "Button not responding"
- Previous message: Patrick: "Using Policy with WSE2.0 (From WSE Drilldown examples)"
- In reply to: suresh_C#: "returning custom class from web service"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 22 Sep 2004 11:25:09 -0500
Hi,
I can't help you with being able to call public functions. Don't know how
to do that. As far as returning the class, in your calling code, you can't
refer to the class assembly itself like you do in your web service. In your
calling code, create a reference to your webservice, then return the class
type through that reference. Pseudocode:
Dim wsQuote as New webservice
Dim objQuote as New wsQuote.QuoteClass
objQuote = wsQuote.GetQuote(intQuoteID)
Good luck! Ken.
-- Ken Dopierala Jr. For great ASP.Net web hosting try: http://www.webhost4life.com/default.asp?refid=Spinlight "suresh_C#" <sureshC@discussions.microsoft.com> wrote in message news:5536053A-B6DD-4EE1-97A1-558B04A9D26C@microsoft.com... > > Dear All, > > I want to return a custom class object from Web service but I am getting > compiler error that Cannot implicitly convert type. > > The assembly contaning that return type is available for both web service > and client. Also I want to call public functions of that type at client side. > > Also any link/doc which has sample code for returning custom class object > from Web Service? > > *Client must be able to call public FUNCTIONS on that returned custom class > object* > > > Please help. > > >
- Next message: Denis Georgievski: "Button not responding"
- Previous message: Patrick: "Using Policy with WSE2.0 (From WSE Drilldown examples)"
- In reply to: suresh_C#: "returning custom class from web service"
- Messages sorted by: [ date ] [ thread ]