Whatever message this page gives is out now! Go check it out!

Access a ColdFusion service from .NET

Last update:
Jun 9, 2026
Create a new Web service project in Visual Studio and add ColdFusion WSDL as a web reference to the project. Then add a new item such a web form.

Example: Creating a PDF using .NET

Following is the sample .NET code for creating a PDF from the web site www.google.com.
Document.DocumentService objWebService = new 

Document.DocumentService(); 

Document.Documentsection[] docsectionArray = { }; 

Document.Documentitem[] docitemArray = { }; 

string result = objWebService.generate("myuser", "mypassword", "pdf", 

"", "", "", "", "yes", "", "", "", "", "","", "", "", "", "", "", "", "", "", 

"", "", "", "http://www.google.com/", "", "", "", "", docsectionArray, 

docitemArray);
In this code snippet:

Document is the web reference for document WSDL.

generate() is the method to generate the PDF from the HTML source.

Share this page

Was this page helpful?
We're glad. Tell us how this page helped.
We're sorry. Can you tell us what didn't work for you?
Thank you for your feedback. Your response will help improve this page.

On this page