Adding a Web reference dynamically at Runtime

Trips

Well-known member
Joined
Aug 7, 2010
Messages
2,788
<p align=left><font face=Arial size=2></font> 
<p class=MsoNormal style="margin:0cm 0cm 10pt <font face=Calibri size=3>Hi,</font>
<p class=MsoNormal style="margin:0cm 0cm 10pt <font face=Calibri size=3>There is a web service which sends an array of objects when called. I want to add this web service as a Web Reference in another C# (or ASP .NET) Project at <b style=" the Run Time</b> <b style=" dynamically</b> and access the web service’s web methods and get the output.</font>
<p class=MsoNormal style="margin:0cm 0cm 10pt <font face=Calibri size=3>Could someone please tell me how to do this? without adding the Web Reference when coding and compiling.</font>
<p class=MsoNormal style="margin:0cm 0cm 10pt <font face=Calibri size=3>The application I’m creating is a Migration System which migrates data (objects) from several systems to a centralized database. Data are acquired from other systems through their Web Services. Since I don’t know what are all these web services I want my system to be able to dynamically load a web service and query the methods available and attributes in the output object.</font>
<p class=MsoNormal style="margin:0cm 0cm 10pt <font face=Calibri size=3>Please help soon.</font>
<p class=MsoNormal style="margin:0cm 0cm 10pt <font face=Calibri size=3>Thanks verymuch</font>
<p class=MsoNormal style="margin:0cm 0cm 10pt" align=left><font face=Calibri size=3>Riz<img src="http://forums.microsoft.com/MSDN/WebResource.axd?d=NySzF1eivP_rMoc50GQJzcvS4MHMOEKwYrCIgDtzuzlw7GsNki3H_INlfYaLgkxF2WImMhtQIz9Re7PuctA64ZVF_xzUNgBmL8gde9iPLu41&t=633263991144971555 </font>

View the full article
 
Back
Top