简体   繁体   中英

dynamic changing web service url at runtime in metro app

How to access the service methods if the service reference url is dynamic?

In my metro application , i give a provision to the user to enter the url in a textbox , depending upon that i need to connect to that service(so the service url will be changing)

1)How to consume the service methods in my metro app if the service refernce url is changing ?

2)how to access one particular service method in my metro app of many service methods present (how to call that one particular only by passing parameters as input)

Thanks in advance.

If you want to invoke WCF web service dynamically, then please go through the following link. http://blogs.msdn.com/b/vipulmodi/archive/2006/11/16/dynamic-programming-with-wcf.aspx .

You can download source code from here from which you can invoke web service.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM