> can you just modify the generated code to include the attribute you want?
Of course, but it will get reset with next update of the file. What's the
reason for proxy generators not to include [Serialzable] attribute or to
provide some control over it.
> what is the problem you are trying to solve?
>
[quoted text clipped - 31 lines]
>>>> side proxy will not have the [Serializable]
>>>> attribute set. Is there anything that controls this behavior?
Dino Chiesa [Microsoft] - 25 Aug 2004 15:37 GMT
I don't know the answer to those questions.
sorry.
>> can you just modify the generated code to include the attribute you want?
>
[quoted text clipped - 38 lines]
>>>>> side proxy will not have the [Serializable]
>>>>> attribute set. Is there anything that controls this behavior?
Al - 30 Aug 2004 04:37 GMT
Why don't you inherit from the proxy class and use attributes in this class?
> > can you just modify the generated code to include the attribute you want?
>
[quoted text clipped - 37 lines]
> >>>> side proxy will not have the [Serializable]
> >>>> attribute set. Is there anything that controls this behavior?
Tomas Restrepo \(MVP\) - 30 Aug 2004 12:05 GMT
Al,
> Why don't you inherit from the proxy class and use attributes in this class?
That wouldn't work. He probably needs the Serializable attribute on the
message classes, not on the proxy itself.

Signature
Tomas Restrepo
tomasr@mvps.org
Developer - 31 Aug 2004 01:38 GMT
I need Serializable attribute on the various structs that are pulled in with
web service proxy.
i.e.:
public class Service1 : System.Web.Services.Protocols.SoapHttpClientProtocol
{}
/// <remarks/>
[System.Xml.Serialization.XmlTypeAttribute(Namespace=http://tempuri.org/)]
<<<-------------I want [Serializable] here
public class Data {}
And you can't do the following when remoting the type:
[Serializable]
class Data2: Data{}
Not going to work.
> Why don't you inherit from the proxy class and use attributes in this
> class?
[quoted text clipped - 45 lines]
>> >>>> side proxy will not have the [Serializable]
>> >>>> attribute set. Is there anything that controls this behavior?
Tomas Restrepo \(MVP\) - 31 Aug 2004 03:19 GMT
> I need Serializable attribute on the various structs that are pulled in with
> web service proxy.
[quoted text clipped - 6 lines]
> <<<-------------I want [Serializable] here
> public class Data {}
I'm happy to report that the latest version of WSContract First from
Christian Weyer can do this for you :)
http://weblogs.asp.net/cweyer/archive/2004/08/30/222725.aspx

Signature
Tomas Restrepo
tomasr@mvps.org