• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Integrating with .NET

New Here ,
Jun 11, 2010 Jun 11, 2010

Copy link to clipboard

Copied

Hey All,

I want to call a Colf-fusion method from my .NET code.  I never code in CF, is there a way i can make a call to CF functions that returns value and can use that value in my C# class in .NET

code snippet i had

   <cffunction name="getResult" access="public" returntype="query">

<cfargument name="d_id" required="Yes">

                                <cfargument name="trk_name" required="Yes">

<cfquery name="get_details" datasource="xyx">

select...

</cfquery> //various queries like this..

  <cfif Not(IsDefined("get_details"))>

                <cfset get_details = QueryNew("")>

        </cfif>

<cfreturn get_details>

                </cffunction>

To be more clear- Is there a way i can call the function which returns get_details

Would appreciate if any one can help in suggesting some solution to this,

Thanks

TOPICS
Advanced techniques

Views

429

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Jun 12, 2010 Jun 12, 2010

Copy link to clipboard

Copied

The easiest way to do that is to change the access modifier of your method from "public" to "remote". Then browse to your CFC in a web-browser and append ?WSDL to the URL. That will give you the webservice description which you can plug in to your Visual Studio.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 14, 2010 Jun 14, 2010

Copy link to clipboard

Copied

LATEST

Hey thanks..

Actully this code is untouchable by me..I cant make any changes to this moment. i can only make a call.

IS there some other way i can call it from .NET.

thanks

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation