Vb.net Talking To Coldfusion 8

Joined: 11/28/2008

Hey all,

I'm having a problem with Coldfusion 8 calling a .NET assembly. Everything is ok when I access a method where I'm passing an object in by value, but when I .NET needed a value by reference, things get a screwy on me. Has anybody been able to get Coldfusion 8 to work well with .NET? I'd love to compare note with someone.

I know that this forum doesn't seem to be too populated with Coldfusion guys, but I figure a shot in the dark couldn't hurt.

Joined: 11/28/2008
I know ColdFusion, but have

I know ColdFusion, but have not used it with .NET.

Is it an issue of datatype conversion? Perhaps you can post some code.

Paul Davey
Whitford Church
"Everyone who calls on the name of the Lord will be saved." Romans 10:13
"For all have sinned and fall short of the glory of God, and are justified

Joined: 11/28/2008
Paul.Hobson @ Mar 19
QUOTE(Paul.Hobson @ Mar 19 2008, 03:14 PM)
Hey all,

I'm having a problem with Coldfusion 8 calling a .NET assembly. Everything is ok when I access a method where I'm passing an object in by value, but when I .NET needed a value by reference, things get a screwy on me. Has anybody been able to get Coldfusion 8 to work well with .NET? I'd love to compare note with someone.

I know that this forum doesn't seem to be too populated with Coldfusion guys, but I figure a shot in the dark couldn't hurt.

Are using Web Services (SOAP) to do this ?

Gavin

Joined: 11/28/2008
Here is the function call in

Here is the function call in my assembly:

CODE
Public Function Router(ByRef strXML As String, ByVal strCICSServer As String, _
    ByVal strCICSProgram As String, ByVal strCICSUserID As String, ByVal strCICSPassword As String) As Int16

Here is my coldfusion code:

CODE
<cfobject type=".NET" name="DSP" assembly="C:\path\to\my\assemblies\Router.dll" class="Router.clsRouter" />

<cfdump var="#DSP.Router("#VARIABLES.INPUTXMLSTRING#", "SERVERNAME", "APPNAME", "APPUSERID", "USERIDPASSWORD")#" />

I'm just attempting a strait dump right now. The issue is that I'm passing in strXML by reference and either coldfusion or .net is choking on it. I get the response that I want back from the other values, the ones passed by value, but strXML doesn't want to kick. (Or do anything for that matter).

I passed this along to super-human-dot-net-man at my office here, so hopefully when he gets a chance he might be able to make sense of it. I was just wondering if anybody here was having any issue passing by reference with a set up like this.

Joined: 11/28/2008
Well you are passing it by

Well you are passing it by value actually as far as the ColdFusion goes. Have you tried this?

CODE
<cfdump var=#DSP.Router(VARIABLES.INPUTXMLSTRING, "SERVERNAME", "APPNAME", "APPUSERID", "USERIDPASSWORD")# />

You don't need quotes everywhere.

Paul Davey
Whitford Church
"Everyone who calls on the name of the Lord will be saved." Romans 10:13
"For all have sinned and fall short of the glory of God, and are justified