470,849 Members | 941 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,849 developers. It's quick & easy.

WebService proxy not generated classes

Hello,

I'm webreferecing some webservice.
I have one WebMethod returning "List<SomeClass>"

I don't want "SomeClass" to be proxy generated on client side But i want
to use the same "SomeClass" that i have on server side.

I have seen one day an attribute to put on the WebMethod to specify the return
type.
I can't remember which one.
Maybe it was dream.

I don't want to modify generated proxy to change references.
(Should never be modified by humans)

Any ideas?

Vincent.
PS : Sorry for crossposting
Apr 13 '06 #1
1 1079
Ok it was a dream...

I've found two ways.

one dirty :
delete generated class from proxy and reference the "real" ones. (and lost
all when regenerate proxy)

one clean playing with a SchemaImporterExtension to change code generation.
infortunatly i don't know how to use a SchemaImporterExtension in a class
project...

anyone?

Thanks me, myself and I ;)
Hello,

I'm webreferecing some webservice.
I have one WebMethod returning "List<SomeClass>"
I don't want "SomeClass" to be proxy generated on client side But i
want to use the same "SomeClass" that i have on server side.

I have seen one day an attribute to put on the WebMethod to specify
the return
type.
I can't remember which one.
Maybe it was dream.
I don't want to modify generated proxy to change references. (Should
never be modified by humans)

Any ideas?

Vincent.
PS : Sorry for crossposting

Apr 13 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Michael | last post: by
6 posts views Thread by Davie | last post: by
2 posts views Thread by farseer | last post: by
4 posts views Thread by MacLanca | last post: by
4 posts views Thread by Martin Ehrlich | last post: by
9 posts views Thread by Greger | last post: by
2 posts views Thread by stormogulen | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.