Skip to content

Instantly share code, notes, and snippets.

@65
Created March 5, 2012 09:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 65/1977605 to your computer and use it in GitHub Desktop.
Save 65/1977605 to your computer and use it in GitHub Desktop.
using coldfusion .net integration
<!--- connect to the .NET object --->
<cfobject type=".NET" name="v3assembly.obj" class="V3Leisure.CABS.WebServices.Examples.CABSExamplesUI.BLL.#Method#" assembly="#application.path#\lib\CABSExamplesUI.BLL.dll" />
<!--- build up the info to send to the .NET assembly --->
<cfset v3assembly.uri = JavaCast("string","http://www.au.v3travel.com/CABS.WebServices/SearchServiceAdapters.asmx")>
<cfset v3assembly.xml = JavaCast("string",XMLParse(XML))>
<cfset v3assembly.bool = JavaCast("boolean",true)>
<cftry>
<!--- return the response from the V3 assembly --->
<cfreturn XmlParse(v3assembly.obj.SendRequest(v3assembly.uri,v3assembly.xml,v3assembly.bool))>
<cfcatch>
<cfthrow type="red5" message="It appears that the ColsFusion 8 .NET integration service is not running.">
</cfcatch>
</cftry>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment