Re: returning strongly typed dataset from web service
- From: "Scott M." <s-mar@xxxxxxxxxxxxx>
- Date: Mon, 5 Mar 2007 21:22:38 -0500
This is not correct.
When you reference a web service, a proxy class for the web service is
created on the web service consumer. BUT, proxies for all possible
webMethod return types are NOT created.
If the client will be receiving a strongly-typed DataSet, then the client
will need this class referenced directly. This can be accomplished by the
strongly-typed DataSet existing in a separate assembly that both the web
service and it's consumer can both reference separately, or a copy of the
class exists in another place for the client to reference.
"John Saunders" <john.saunders at trizetto.com> wrote in message
news:O4A5ZW1XHHA.1296@xxxxxxxxxxxxxxxxxxxxxxx
"N. Shehzad" <NShehzad@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:65D9D99F-99A5-47A5-BFAB-3CF4EE2034EC@xxxxxxxxxxxxxxxx
Hi Sundar,
I did create an .xsd schema first, and created a class file for that xsd
schema using
SDK Command prompt. How would I reference that class on the client side
if I
do not create a .dll library. Do I need to include that class on the
client
project as well?
You don't need to do _anything_ to reference the class on the client side.
Simply define your web service to return the strongly-typed dataset. Then
use Add Web Reference in your client application to cause VS.NET to create
the necessary proxy classes. One of those classes will be a client-side
version of the server-side dataset. You will use that class on the client
side.
You will _never_ reference server-side classes on the client side. NEVER.
John
.
- Follow-Ups:
- Re: returning strongly typed dataset from web service
- From: John Saunders
- Re: returning strongly typed dataset from web service
- References:
- Re: returning strongly typed dataset from web service
- From: John Saunders
- Re: returning strongly typed dataset from web service
- Prev by Date: Re: returning strongly typed dataset from web service
- Next by Date: Re: returning strongly typed dataset from web service
- Previous by thread: Re: returning strongly typed dataset from web service
- Next by thread: Re: returning strongly typed dataset from web service
- Index(es):
Relevant Pages
|