"Config" file Windows mobile Appliction RRS feed

  • Question

  • Hello 

    Am developing an smart device application with the use of webservice for data synchronization.

    Now this time i have added the web service URL path in the code side(in C#).But the requirement is , I wish to add this file in a config file inside the application for adding static urls etc. Is this possible in the windows mobile application?

    Need a help , Its very urg

    Thanks and regards

    Kundara Appu

    Thursday, September 2, 2010 4:45 AM


  • Hi Kundara,

    Yes! of course it is possible to keep your static url in configration file.

    You have to assign this url at runtime in web service object then you can access the absulate web service. After reading URL form configuration file then you can assign to web service object. See below code snippet for how you can change the url at runtime.

    oWebSevice.Service1 oWs = new Service1();
    oWs.Url =

    Hope it helps.

    If you find my post is helpful for you then mark as a answer.
    Thursday, September 2, 2010 6:40 AM