Click here to Skip to main content
15,881,600 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
SQL
Hello all
I have made web service to connect with Sales Force Application , and I want to use  data of  sales force application into my application, and I wan to add reference to this web service by C# code,not from menu items ,like add web reference/Service reference , please if any body get what I mean and can help me please send me or tell me about some url may help me in doing that
Regards& Thanks 
Sandeep Verma 
Sr.Web developer 
at SvimTech Software Pvt. Ltd. 
Mohali Punjab
Posted

1 solution

No, you can not add a web reference at runtime. Adding a web reference creates several classes that allow you to interface with the web service; those classes need to be compiled before they can be used.

If you want to dynamically support different types of web services, they'll have to use an consistent interface so that a single set of classes can use the web services. Otherwise, you'll have to implement something that queries the web service's definition and creates some sort of user interface for the user to enter the data that needs to get to the web service.

Please go here you can get more some information

http://social.msdn.microsoft.com/Forums/vstudio/en-US/39138d08-aa08-4c0c-9a58-0eb81a672f54/adding-a-web-reference-dynamically-at-runtime[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900