Guest User

Untitled

a guest
Jun 24th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. [OperationContract]
  2. MyCollectionClass GetList(int sessID, string name);
  3.  
  4. [CollectionDataContract]
  5. public class MyCollectionClass : List<MyClass>{ }
  6.  
  7. [DataContract]
  8. public class MyClass {
  9.  
  10. [DataMember]
  11. public string Prop1 { get; set; }
  12.  
  13. [DataMember]
  14. public string Prop2 { get; set; }
  15.  
  16. maxBufferSize="2147483647"
  17. maxReceivedMessageSize="2147483647"
  18.  
  19. readerQuotas:
  20. maxArrayLength="2000000"
  21. maxStringContentLength="2000000"/>
  22.  
  23. <system.serviceModel>
  24. <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
  25. </system.serviceModel>
  26.  
  27. <system.serviceModel>
  28. <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
  29. <behaviors>
  30. <serviceBehaviors>
  31. <behavior>
  32. <serviceMetadata httpGetEnabled="true"/>
  33. <serviceDebug includeExceptionDetailInFaults="true"/>
  34. <dataContractSerializer maxItemsInObjectGraph="2147483647"/> <!--this very is important: it is the size of the buffer-->
  35. </behavior>
  36. </serviceBehaviors>
  37. </behaviors>
  38. </system.serviceModel>
Add Comment
Please, Sign In to add comment