RE: How to pass an object as parameter ?
From: Dan Rogers (danro_at_microsoft.com)
Date: 12/13/04
- Next message: Dan Rogers: "Re: DNS Updates"
- Previous message: Dan Rogers: "RE: How to invoke a web service through UDDI"
- In reply to: chak: "How to pass an object as parameter ?"
- Next in thread: chak: "Re: How to pass an object as parameter ?"
- Reply: chak: "Re: How to pass an object as parameter ?"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 13 Dec 2004 21:02:24 GMT
Hi,
If it is your intent to have the same implementation shared by the client
and the server, then you will need to modify the proxy class that is
generated to use the namespace you desire - and you will also have to add
that DLL as a reference to the client-side project.
The generated proxy has a "data compabible" implementation of the classes
that the service requests as inputs and return types. You'll probably want
to comment these out if you change the generated proxy.
Alternately, you could make the generated proxy have the same namespace as
your server side data DLL. This way, you won't have to change any of the
generated code.
I hope this helps
Dan Rogers
Microsoft Corporation
--------------------
>From: "chak" <r_chakravarthy@hotmail.com>
>Subject: How to pass an object as parameter ?
>Date: Mon, 13 Dec 2004 07:54:27 +0530
>Lines: 16
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
>X-RFC2646: Format=Flowed; Original
>Message-ID: <ujlWirL4EHA.924@TK2MSFTNGP14.phx.gbl>
>Newsgroups: microsoft.public.dotnet.framework.aspnet.webservices
>NNTP-Posting-Host: 220.226.4.22
>Path:
cpmsftngxa10.phx.gbl!TK2MSFTFEED01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP14
phx.gbl
>Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.aspnet.webservices:27153
>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webservices
>
>I have a class with public properties defined in an assembly. I then have
a
>web service in
>the same solution, which takes an object of this class as a parameter.
>However, the web service works only if i key in the the fully qualified
>name of the object (including namespace) in the proxy class. How can this
>be avoided ?
>
>
>
>
>---
>Outgoing mail is certified Virus Free.
>Checked by AVG anti-virus system (http://www.grisoft.com).
>Version: 6.0.809 / Virus Database: 551 - Release Date: 12/9/2004
>
>
>
- Next message: Dan Rogers: "Re: DNS Updates"
- Previous message: Dan Rogers: "RE: How to invoke a web service through UDDI"
- In reply to: chak: "How to pass an object as parameter ?"
- Next in thread: chak: "Re: How to pass an object as parameter ?"
- Reply: chak: "Re: How to pass an object as parameter ?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|