Access a ColdFusion service from .NET

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.

Get help faster and easier

New user?