Change default collection type (array to list) in web.config(server side) or app.config(client side) RRS feed

  • Question

  • Hi there!

    I have one bigt issue with collections transfer through WCF.

    WCF serialize and deserialize collection to array but i need to get List. I have found a lot of solutions that it can be changed through add service reference dialog. But i cannot add service this way so i need to change that in config files on server or client side. Can I even change it  through config files or im in big troubles:/?  If anyone could give me solutions for this i would be very grateful.

    Thanks very much for your time and advices.


    Wednesday, September 10, 2014 9:06 AM

All replies

  • Why you can not add the service reference?
    Thursday, September 11, 2014 10:15 AM
  • Hi!

    I cannot add reference because wcf server side is in the same solution and running at locahost and only when solution is running. For add service reference i need to run wcf but i can not because when i run it i have no option for add service reference(because of debug mode) so i can not do this at the same time. So i added service through app.config.

    Friday, September 12, 2014 5:24 AM