Re: returning strongly typed dataset from web service



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




.



Relevant Pages

  • Re: Implementing a common SOAP Header across multiple Web Service Pages
    ... to set a client up to reference multiple Web ... the Web Service site would ... Your point about leaving the ASMX page as lean as possible and acting just ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: Pass by reference to a WebService
    ... When you pass a variable by reference to a web service, the client ... Of course, if you change the value again on the local machine, the web ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: passing custom classes or stucture as arguments
    ... As soon as you reference the web ... The WSDL tool is used to generate a proxy class. ... Considerations for Custom Web Service Client Proxy Classes here ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: returning strongly typed dataset from web service
    ... When you reference a web service, a proxy class for the web service is ... If the client will be receiving a strongly-typed DataSet, ... Of course proxies are created for the WebMethod return types. ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: Searching OO Associations with RDBMS Persistence Models
    ... and the Client needs access to locations for a particular Company. ... In this case I would argue that it should be a reference. ... There are three aspects to relationships: implementation, instantiation, and navigation. ... This sort of instantiation is ubiquitous in OO applications so that one very rarely ever sees a FIND WHERE construct. ...
    (comp.object)