Click here to Skip to main content
15,898,538 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,


Can anybody help in creating a Proxy class dynamically without using the Add Reference Window in .Net application.

Ex: 1)I have a service hosted with the Url: http://somepath\Service.asmx
2)Proxy needs to be created in client application through code without using the Add Reference window.

Thanks
Sarath
Posted

Use WSDL tool to create the class for you.
http://msdn.microsoft.com/en-us/library/ms155134.aspx[^]
You can add code file to your project later.
 
Share this answer
 
v2
Comments
sarath.mk 20-Nov-11 7:18am    
Hi Prerak Patel, thanks for ur reply, could u show me with an example.

About adding a webreference and creating the proxy, through code or syntax.

Thanks
Sarath
Hi Prerak Patel, thanks for ur reply, could u show me with an example.

About adding a webreference and creating the proxy, through code or syntax.

Thanks
Sarath
 
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