Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
microsoft.public.dotnet.framework.aspnet.webservices
Re: returning an object from a web service
Khurram Lone
1/14/2003 3:59:00 PM
Pierre
My problem is not the name of the object but its type. My intention is
to pass the object returned by the web service to another client class
which would not have access to the web service but would have a
reference to a common type (obj1). When I get the object back from the
web service, its type is no longer obj1 but localhost1.obj1, and it
cannot be directly assigned back to an obj1 type object. So, I cannot
pass that object on to another client class.
Thanks
Khurram
*** Sent via Developersdex
http://www.develop...
***
Don't just participate in USENET...get rewarded for it!
1 Answer
Pierre Greborio
1/14/2003 4:08:00 PM
0
Maybe I don't understand but which is the namespace of the clalling client ?
If you have common type obj1 and you want that this one is shared between
your client and the web service proxy, you can delete the localhost1.obj1
type (from proxy source code) and then refer to your obj1 type on the proxy
class (return value of the method). Be aware that the proxy must has access
to the obj1.
Pierre
--
-----------------------------------------------------------
Pierre Greborio
http://www.ugi...
-----------------------------------------------------------
"Khurram Lone" <khurramlone@hotmail.com> wrote in message
news:eEdjI29uCHA.2372@TK2MSFTNGP12...
> Pierre
>
> My problem is not the name of the object but its type. My intention is
> to pass the object returned by the web service to another client class
> which would not have access to the web service but would have a
> reference to a common type (obj1). When I get the object back from the
> web service, its type is no longer obj1 but localhost1.obj1, and it
> cannot be directly assigned back to an obj1 type object. So, I cannot
> pass that object on to another client class.
>
> Thanks
>
> Khurram
>
>
>
> *** Sent via Developersdex
http://www.develop...
***
> Don't just participate in USENET...get rewarded for it!
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Re: returning an object from a web service
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password