Skip to main content
Nintex Community Menu Bar

How to add Web Reference in code?

  • March 9, 2007
  • 1 reply
  • 1 view

Forum|alt.badge.img+1
I created a K2Studio Solution in code via Interop in VS.NET 2005

Now I want to add a reference to my Web Service in code. I looked already in help files and forums, and the only thing I found was this example:

MyK2Project.References.Add("System.XML.dll", "", True)

How do I programmatically add a web service reference in code?

1 reply

Forum|alt.badge.img+3
  • Nintex Partner
  • April 24, 2007
Web References are added by creating a Proxy Assembly and referencing this in the usual way. A Proxy Assembly can be generated with the WSDL command. Please see the following post:

http://www.codeproject.com/cs/webservices/CallWebServicesDynamic.asp