Created
March 5, 2012 09:20
-
-
Save 65/1977605 to your computer and use it in GitHub Desktop.
using coldfusion .net integration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--- 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