Skip to main content
Participant
June 11, 2010
Question

Integrating with .NET

  • June 11, 2010
  • 1 reply
  • 401 views

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

    This topic has been closed for replies.

    1 reply

    Inspiring
    June 12, 2010

    If the function is:

    a.  in a cfc

    b.  has access = "remote"

    you can call it as a web service from .net.  You would call it the same way you call any other web service.

    SDE_SALAuthor
    Participant
    June 14, 2010

    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