Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [OperationContract]
- MyCollectionClass GetList(int sessID, string name);
- [CollectionDataContract]
- public class MyCollectionClass : List<MyClass>{ }
- [DataContract]
- public class MyClass {
- [DataMember]
- public string Prop1 { get; set; }
- [DataMember]
- public string Prop2 { get; set; }
- maxBufferSize="2147483647"
- maxReceivedMessageSize="2147483647"
- readerQuotas:
- maxArrayLength="2000000"
- maxStringContentLength="2000000"/>
- <system.serviceModel>
- <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
- </system.serviceModel>
- <system.serviceModel>
- <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
- <behaviors>
- <serviceBehaviors>
- <behavior>
- <serviceMetadata httpGetEnabled="true"/>
- <serviceDebug includeExceptionDetailInFaults="true"/>
- <dataContractSerializer maxItemsInObjectGraph="2147483647"/> <!--this very is important: it is the size of the buffer-->
- </behavior>
- </serviceBehaviors>
- </behaviors>
- </system.serviceModel>
Add Comment
Please, Sign In to add comment