Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How to create a reference assembly to a web service when using ASPX?

0
Posted

How to create a reference assembly to a web service when using ASPX?

0

If you are planning to use one of our web services in an ASP.Net application and if you are not planning to use the code-behind technique, you will need to create a reference assembly to the service. To do this, follow these simple steps: • First, generate the proxy source file using the wsdl.exe utility at a Visual Studio .Net Command Prompt (here we are using the XigniteRealTime service as an example) C:\>wsdl.exe /language:VB http:://www.xignite.com/xRealTime.asmx?WSDL • This will generate a file called XigniteRealTime.vb (or .cs if you used the CS language option). You can then compile the VB file into an Assembly. C:\>vbc.exe /t:library /r:System.dll /r:System.Web.dll /r:System.Web.Services.dll /r:System.Xml.dll XigniteRealTime.vb • This will generate a file called XigniteRealTime.dll that you can add to your VisualStudio project and must copy to your ASP.NET project /bin directory. • You can then consume the service using code similar to that provided under the Sample Code in the

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.