Is ssl_connection meant to be a string in the below line ?

>   report = transaction.Execute("ssl_connection");

Its an object elsewhere.

Justin 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: 26 February 2004 16:45
To: [EMAIL PROTECTED]
Subject: [ cf-dev ] COM Problem



This is drivin me crazy.
Accessing Commidea's ICP servic using a dll they provide.
It's been a laborious process to get to this stage, but now I'm stumped
I need to pass an object I've created to another by reference.
I try but get the following error message;

Error attempting to convert between object and ColdFusion datatypes.

Here's the code

<cfscript>
     // create SSL connection obj, transaction obj
     ssl_connection = CreateObject("COM", "CommWrap2.SSL");
     transaction = CreateObject("COM", "CommWrap2.Transaction");

     ssl_connection.Connect("IP address", Port);
     string = ssl_connection.SendString("GUID");
     errors = ssl_connection.Errors;

</cfscript>
Stage 1.0<br>
<cfdump var=#errors.NumOfErrors#><br>
<cfdump var=#string#>
<!--- OK up till here --->
<cfscript>
      // set transaction - test values given
     transaction.AccountNumber = "001";
     transaction.TxnType = "01";
     transaction.PAN = "4929123123123";
     transaction.Expiry = "11/04";
     transaction.Issue = "";
     transaction.Start = "";
     transaction.CV2 = "";                    // security number
     transaction.TxnValue = 10.00;
     transaction.Reference = "Respones01";

     report = transaction.Execute("ssl_connection");
     ssl_connection.Disconnect();

</cfscript>


Rafe Fitzpatrick
Senior Developer

http://www.alienationdesign.co.uk
mailto:[EMAIL PROTECTED]
Tel: 0141 575 9700
Fax: 0141 575 9600

Creative solutions in a technical world

----------------------------------------------------------------------
Get your domain names online from:
http://www.alienationdomains.co.uk
Reseller options available!
----------------------------------------------------------------------
----------------------------------------------------------------------


-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]



-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

Reply via email to