469,946 Members | 1,867 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

Web Service proxy - where have my Custom Attributes got to?

camel
55
Apologies if foolish question, but I somewhat expected Custom Attributes (i.e.
inheriting from System.Attribute) decorating class properties to come through
via WSDL to the proxy the same as built in Attributes (e.g., Xml .Serialization
attributes).

Have typically always accessed custom attributes in referenced assemblies
rather than via WS so perhaps I imagined it...No attributes come through in
generated proxy for WS so obviously not so simple, can anyone tell me if this
is possible and if so what else is required to get custom attributes into the
generated proxy code?
Jan 2 '08 #1
1 1385
camel
55
For anyone who might have this issue, the answer is that Custom Attributes do not come through via MS automatic generation of the WSDL or indeed the proxy generation process. However if you are keen (which I was) and happen to have a code generator that works with XSD already (which I did) then you can bypass the MS approach by using ServiceContractGenerator and modifying the CodeNamespace by calling your own generation tool for the Data Contract.
Jan 7 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by Douglas Robson | last post: by
4 posts views Thread by Mike Woinoski | last post: by
15 posts views Thread by Joseph Geretz | last post: by
1 post views Thread by =?Utf-8?B?UnVp?= | last post: by
4 posts views Thread by Giorgio Parmeggiani | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.