CF / .NET DLL - CF locking DLL's?

2010-09-20 Thread Michael Christensen

I'm trying to use some .NET DLL's through ColdFusion.

It seems that CF is locking my DLL on the first run, which means that every 
time I do a change in the DLL's code, I have to create a version with a 
different name (since I can't overwrite the old one).

Anyone know how to combat this? 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337224
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: CF / .NET DLL - CF locking DLL's?

2010-09-20 Thread Andrew Scott

You need to stop ColdFusion and restart it.

Regards,
Andrew Scott
http://www.andyscott.id.au/


 -Original Message-
 From: Michael Christensen [mailto:mich...@strib.dk]
 Sent: Monday, 20 September 2010 4:56 PM
 To: cf-talk
 Subject: CF / .NET DLL - CF locking DLL's?
 
 
 I'm trying to use some .NET DLL's through ColdFusion.
 
 It seems that CF is locking my DLL on the first run, which means that
every
 time I do a change in the DLL's code, I have to create a version with a
 different name (since I can't overwrite the old one).
 
 Anyone know how to combat this?


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337225
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF .NET

2008-02-07 Thread Mike Chabot
It isn't entirely clear what you are asking. Are you wanting to move
from CF to .NET? Are you trying to share the exact same code in the
exact same file across two different applications that use different
server technologies? In .NET are you using the .NET 2.0 security
provider or are you writing your own custom code?

-Mike Chabot

On Feb 6, 2008 8:05 PM, ColdFusion [EMAIL PROTECTED] wrote:
 I have a JS menu that is configured using a CFM file. The CFM file is the
 one that creates all the menu items based on security permissions.



 Question is this: How can I use that same configuration on a .NET
 application?









 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298417
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: CF .NET

2008-02-07 Thread ColdFusion
Sorry, but I am trying to share the same code across both platforms.
There is another developer who has designed the .NET site. I am not a .NET
person.

I am beginning to wonder if it is not just as easy to create a database
table and then use both technologies to extract it and create the menu
files.


-Original Message-
From: Mike Chabot [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 07, 2008 4:14 AM
To: CF-Talk
Subject: Re: CF  .NET

It isn't entirely clear what you are asking. Are you wanting to move
from CF to .NET? Are you trying to share the exact same code in the
exact same file across two different applications that use different
server technologies? In .NET are you using the .NET 2.0 security
provider or are you writing your own custom code?

-Mike Chabot

On Feb 6, 2008 8:05 PM, ColdFusion [EMAIL PROTECTED] wrote:
 I have a JS menu that is configured using a CFM file. The CFM file is the
 one that creates all the menu items based on security permissions.



 Question is this: How can I use that same configuration on a .NET
 application?









 



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298418
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: CF .NET

2008-02-07 Thread Mike Chabot
You can reuse the JS code. Creating the .NET code from scratch using
CF as a template would be the approach I would take. You can get
really fancy with this, but ultimately it is just a navigation bar. It
shouldn't be too hard to write some loops in .NET, especially if you
already have the JS and the CSS. The downside is that if the
navigation bar changes, you have to change it in two locations, but
I'm not sure if that is an issue for you or not.

Good luck,
Mike Chabot

On Feb 7, 2008 5:55 AM, ColdFusion [EMAIL PROTECTED] wrote:
 Sorry, but I am trying to share the same code across both platforms.
 There is another developer who has designed the .NET site. I am not a .NET
 person.

 I am beginning to wonder if it is not just as easy to create a database
 table and then use both technologies to extract it and create the menu
 files.


 -Original Message-
 From: Mike Chabot [mailto:[EMAIL PROTECTED]
 Sent: Thursday, February 07, 2008 4:14 AM
 To: CF-Talk
 Subject: Re: CF  .NET

 It isn't entirely clear what you are asking. Are you wanting to move
 from CF to .NET? Are you trying to share the exact same code in the
 exact same file across two different applications that use different
 server technologies? In .NET are you using the .NET 2.0 security
 provider or are you writing your own custom code?

 -Mike Chabot

 On Feb 6, 2008 8:05 PM, ColdFusion [EMAIL PROTECTED] wrote:
  I have a JS menu that is configured using a CFM file. The CFM file is the
  one that creates all the menu items based on security permissions.
 
 
 
  Question is this: How can I use that same configuration on a .NET
  application?

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298419
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: CF .NET

2008-02-07 Thread ColdFusion
Yeah that is what the client wants to avoid is having two sets.
So I am approaching it from a different angel:

Create a table with all menu  submenu items to include permissions for
those menu items.
Then have CF  .NET code which pulls the menu items and creates the config
file for the same menu.

This way the menu items can be controlled by the database and once the code
is written in both CF  .NET,
Should not have to be addresses again unless it is a layout change.

-Original Message-
From: Mike Chabot [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 07, 2008 6:08 AM
To: CF-Talk
Subject: Re: CF  .NET

You can reuse the JS code. Creating the .NET code from scratch using
CF as a template would be the approach I would take. You can get
really fancy with this, but ultimately it is just a navigation bar. It
shouldn't be too hard to write some loops in .NET, especially if you
already have the JS and the CSS. The downside is that if the
navigation bar changes, you have to change it in two locations, but
I'm not sure if that is an issue for you or not.

Good luck,
Mike Chabot

On Feb 7, 2008 5:55 AM, ColdFusion [EMAIL PROTECTED] wrote:
 Sorry, but I am trying to share the same code across both platforms.
 There is another developer who has designed the .NET site. I am not a .NET
 person.

 I am beginning to wonder if it is not just as easy to create a database
 table and then use both technologies to extract it and create the menu
 files.


 -Original Message-
 From: Mike Chabot [mailto:[EMAIL PROTECTED]
 Sent: Thursday, February 07, 2008 4:14 AM
 To: CF-Talk
 Subject: Re: CF  .NET

 It isn't entirely clear what you are asking. Are you wanting to move
 from CF to .NET? Are you trying to share the exact same code in the
 exact same file across two different applications that use different
 server technologies? In .NET are you using the .NET 2.0 security
 provider or are you writing your own custom code?

 -Mike Chabot

 On Feb 6, 2008 8:05 PM, ColdFusion [EMAIL PROTECTED] wrote:
  I have a JS menu that is configured using a CFM file. The CFM file is
the
  one that creates all the menu items based on security permissions.
 
 
 
  Question is this: How can I use that same configuration on a .NET
  application?



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298420
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


CF .NET

2008-02-06 Thread ColdFusion
I have a JS menu that is configured using a CFM file. The CFM file is the
one that creates all the menu items based on security permissions.

 

Question is this: How can I use that same configuration on a .NET
application?

 

 





~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298401
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: CF/.NET/SQL Express Server Install Question

2006-08-05 Thread Robertson-Ravo, Neil (RX)
Just be wary of the DB size. For smaller less intense projects MSDE is
suitable - glad it is working out!







This e-mail is from Reed Exhibitions (Oriel House, 26 The Quadrant,
Richmond, Surrey, TW9 1DL, United Kingdom), a division of Reed Business,
Registered in England, Number 678540.  It contains information which is
confidential and may also be privileged.  It is for the exclusive use of the
intended recipient(s).  If you are not the intended recipient(s) please note
that any form of distribution, copying or use of this communication or the
information in it is strictly prohibited and may be unlawful.  If you have
received this communication in error please return it to the sender or call
our switchboard on +44 (0) 20 89107910.  The opinions expressed within this
communication are not necessarily those expressed by Reed Exhibitions. 
Visit our website at http://www.reedexpo.com

-Original Message-
From: Matt Robertson
To: CF-Talk
Sent: Sat Aug 05 00:54:18 2006
Subject: Re: CF/.NET/SQL Express Server Install Question

I just built a sql server running MSDE 2000 for a client.  They get a
few tens of thousands of sessions per day and I am absolutely amazed
at how well the server is handling the load.

I opted NOT to go with SQL Server Express because I didn't see the
point, frankly.  SSE uses tons of extra resources, (.NET 2.0 for
starters), warns me that my server is below the base spec and didn't
want to work with Enterprise Manager.

MSDE on the otherhand is a resource nibbler by comparison.  After a
day of getting hammered the service is only eating about 235mb, with
resource spikes that look like little bumps, never going above about
20%, and momentary ticks at that.

Just a thought... If you are combining stuff onto one server make sure
you really need the resource hog versus what may be a fully functional
alternative.

-- 

[EMAIL PROTECTED]
Janitor, MSB Web Systems
mysecretbase.com



~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:248865
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


CF/.NET/SQL Express Server Install Question

2006-08-04 Thread Glenn Miller
Good morning all,

We're having some issues with server performance, and I wondered if anyone
else has been beating their heads against a wall with this issue.  We've got
some brand new Dell servers, all configured with CF, .NET and SQL Express on
the same machine.  

Currently I'm seeing decreased performance in serving time, JRun crashes,
etc. on a daily basis to the point that uptime's falling below 75% with
server alarms being thrown at least once an hour.  I've done a sweep on all
machines for attacks and/or viruses without any being found, and the only
thing that I can think is that the 3 installed on the same box just aren't
playing nice together...

Anyone hitting this issue, know of any fixes, or have any ideas?  At the
moment the best plan that I can think of is to separate the 3 technologies
to separate boxes and send them to their rooms...  Any advice is greatly
appreciated!

Thanks!
Glenn Miller



~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:248782
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: CF/.NET/SQL Express Server Install Question

2006-08-04 Thread Snake
Having SQL on the web server is generally not a good idea, especially if the
sites are making heavy use of it.
CF, IIS and SQL will be competing for CPU time and disk access.
Ideally you should have separate servers.
You can inprove performance on a single server by having a separate disk for
SQL Server, and better still a separate disk for the databases, indexes and
logs as well. A further step up is to have dual CPU's and to assign 1 CPU
for SQL only.
So you need to weight up whether doing this or having a dedicated server is
more cost effective.

You could also install Fusion Reactor to help you termine if there are any
CFMX issues.

Russ
 

-Original Message-
From: Glenn Miller [mailto:[EMAIL PROTECTED] 
Sent: 04 August 2006 12:45
To: CF-Talk
Subject: CF/.NET/SQL Express Server Install Question

Good morning all,

We're having some issues with server performance, and I wondered if anyone
else has been beating their heads against a wall with this issue.  We've got
some brand new Dell servers, all configured with CF, .NET and SQL Express on
the same machine.  

Currently I'm seeing decreased performance in serving time, JRun crashes,
etc. on a daily basis to the point that uptime's falling below 75% with
server alarms being thrown at least once an hour.  I've done a sweep on all
machines for attacks and/or viruses without any being found, and the only
thing that I can think is that the 3 installed on the same box just aren't
playing nice together...

Anyone hitting this issue, know of any fixes, or have any ideas?  At the
moment the best plan that I can think of is to separate the 3 technologies
to separate boxes and send them to their rooms...  Any advice is greatly
appreciated!

Thanks!
Glenn Miller





~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:248784
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CF/.NET/SQL Express Server Install Question

2006-08-04 Thread Matt Robertson
I just built a sql server running MSDE 2000 for a client.  They get a
few tens of thousands of sessions per day and I am absolutely amazed
at how well the server is handling the load.

I opted NOT to go with SQL Server Express because I didn't see the
point, frankly.  SSE uses tons of extra resources, (.NET 2.0 for
starters), warns me that my server is below the base spec and didn't
want to work with Enterprise Manager.

MSDE on the otherhand is a resource nibbler by comparison.  After a
day of getting hammered the service is only eating about 235mb, with
resource spikes that look like little bumps, never going above about
20%, and momentary ticks at that.

Just a thought... If you are combining stuff onto one server make sure
you really need the resource hog versus what may be a fully functional
alternative.

-- 
[EMAIL PROTECTED]
Janitor, MSB Web Systems
mysecretbase.com

~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:248855
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: CF/.NET/SQL Express Server Install Question

2006-08-04 Thread Snake
Every time I have used MSDE, I have found it eats the CPU like a starved
animal whenever you put any intensive load on it.
It also has a limited number of simultanious connections too.
I would presume every page on your site does not hit the database.

Snake  

-Original Message-
From: Matt Robertson [mailto:[EMAIL PROTECTED] 
Sent: 05 August 2006 00:54
To: CF-Talk
Subject: Re: CF/.NET/SQL Express Server Install Question

I just built a sql server running MSDE 2000 for a client.  They get a few
tens of thousands of sessions per day and I am absolutely amazed at how well
the server is handling the load.

I opted NOT to go with SQL Server Express because I didn't see the point,
frankly.  SSE uses tons of extra resources, (.NET 2.0 for starters), warns
me that my server is below the base spec and didn't want to work with
Enterprise Manager.

MSDE on the otherhand is a resource nibbler by comparison.  After a day of
getting hammered the service is only eating about 235mb, with resource
spikes that look like little bumps, never going above about 20%, and
momentary ticks at that.

Just a thought... If you are combining stuff onto one server make sure you
really need the resource hog versus what may be a fully functional
alternative.

--
[EMAIL PROTECTED]
Janitor, MSB Web Systems
mysecretbase.com



~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:248856
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


CF/.Net with SQL server hosting

2006-01-25 Thread Jason Rogoz
Hello
 
This subject has probably already been beaten to death but i thought i'd check 
anyway.  Our company is looking to to get away from the hosting aspect of 
website and we are looking for potential host for newly developed client sites. 
 We would need the following requirements, coldfusion, .Net and sql server.  We 
would also require the ability to register our own CFX tags.  Does anyone have 
any suggestions or recommendations?
 
Thanks
 
Jason
 


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:230443
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


CF - .NET Web service Interop

2005-01-17 Thread Matthew Small
Does anybody have any idea how to send a complex datatype from CF to a .NET
webservice? I've tried creating an object in CF that directly maps to the
same structure in .NET but all I get is a data type mismatch error.  This
really stinks.   I have my example code below.

Thank you,
Matt Small

















CF Code:

ComplexObject.cfc
==
cfcomponent
  cfproperty name=Val1 type=String/
  cfproperty name=Val2 type=String/
  cfproperty name=Val3 type=String/
/cfcomponent


ComplexObjService.cfc

cfcomponent
cffunction name=getComplexObject returntype=ComplexObject
cfobject name=CObj component=ComplexObject
cfset CObj.val1 = FirstName
cfset CObj.val2 = MiddleName
cfset CObj.val3 = LastName 
cfreturn CObj
/cffunction
/cfcomponent

Index.cfm
==
cfobject component=ComplexObjService name=CObj

cfinvoke webservice=http://msserver:85/bulkmailwebservices.asmx?WSDL;
method=GetEmailObject returnvariable=theResult
cfinvokeargument name=CObj value=CObj.getComplexObject() 
/cfinvoke

cfoutput
#theResult#
/cfoutput





.NET Code
==

Public Class ComplexObject
Public Val1 As String
Public Val2 As String
Public Val3 As String
End Class




WebMethod() Public Function GetEmailObject(ByVal CObj As ComplexObject) As
String
Return Val1 =  + CObj.Val1 + br + _
Val2 =  + CObj.Val2 + br + _
Val3 =  + CObj.Val3 + br
 End Function





Thank you,
Matthew Small


~|
Logware: a new and convenient web-based time tracking application. Start 
tracking and documenting hours spent on a project or with a client with Logware 
today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:190699
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: CF - .NET Web service Interop

2005-01-17 Thread Ian Skinner
I unfortunately can't help, I have never done this.  I can advise you to look 
at the National Weather Service web service thread of a week or so ago, it 
dealt with passing a set of complex parameters to a PHP web service.  It might 
offer some insight.

I would also remind one that today is a holiday.  I suspect several of the 
list's best and brightest may have the day off.


--
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA

C code. C code run. Run code run. Please!
- Cynthia Dunning



...-Original Message-
...From: Matthew Small [mailto:[EMAIL PROTECTED]
...Sent: Monday, January 17, 2005 5:00 AM
...To: CF-Talk
...Subject: CF - .NET Web service Interop
...
...Does anybody have any idea how to send a complex datatype from CF to a
NET
...webservice? I've tried creating an object in CF that directly maps to the
...same structure in .NET but all I get is a data type mismatch error.  This
...really stinks.   I have my example code below.
...
...Thank you,
...Matt Small
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...CF Code:
...
...ComplexObject.cfc
...==
...cfcomponent
...  cfproperty name=Val1 type=String/
...  cfproperty name=Val2 type=String/
...  cfproperty name=Val3 type=String/
.../cfcomponent
...
...
...ComplexObjService.cfc
...
...cfcomponent
... cffunction name=getComplexObject returntype=ComplexObject
... cfobject name=CObj component=ComplexObject
... cfset CObj.val1 = FirstName
... cfset CObj.val2 = MiddleName
... cfset CObj.val3 = LastName
... cfreturn CObj
... /cffunction
.../cfcomponent
...
...Index.cfm
...==
...cfobject component=ComplexObjService name=CObj
...
...cfinvoke webservice=http://msserver:85/bulkmailwebservices.asmx?WSDL;
...method=GetEmailObject returnvariable=theResult
... cfinvokeargument name=CObj value=CObj.getComplexObject() 
.../cfinvoke
...
...cfoutput
... #theResult#
.../cfoutput
...
...
...
...
...
NET Code
...==
...
...Public Class ComplexObject
...Public Val1 As String
...Public Val2 As String
...Public Val3 As String
...End Class
...
...
...
...
...WebMethod() Public Function GetEmailObject(ByVal CObj As ComplexObject)
...As
...String
...Return Val1 =  + CObj.Val1 + br + _
...Val2 =  + CObj.Val2 + br + _
...Val3 =  + CObj.Val3 + br
... End Function
...
...
...
...
...
...Thank you,
...Matthew Small
...
...
...

~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:190758
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: CF - .NET Web service Interop

2005-01-17 Thread Jared Rypka-Hauer - CMG, LLC
Just a thought, and it depends on the .NET service, but would WDDX help?

J


On Mon, 17 Jan 2005 08:00:05 -0500, Matthew Small [EMAIL PROTECTED] wrote:
 Does anybody have any idea how to send a complex datatype from CF to a .NET
 webservice? I've tried creating an object in CF that directly maps to the
 same structure in .NET but all I get is a data type mismatch error.  This
 really stinks.   I have my example code below.
 
 Thank you,
 Matt Small
 
 CF Code:
 
 ComplexObject.cfc
 ==
 cfcomponent
   cfproperty name=Val1 type=String/
   cfproperty name=Val2 type=String/
   cfproperty name=Val3 type=String/
 /cfcomponent
 
 ComplexObjService.cfc
 
 cfcomponent
 cffunction name=getComplexObject returntype=ComplexObject
 cfobject name=CObj component=ComplexObject
 cfset CObj.val1 = FirstName
 cfset CObj.val2 = MiddleName
 cfset CObj.val3 = LastName
 cfreturn CObj
 /cffunction
 /cfcomponent
 
 Index.cfm
 ==
 cfobject component=ComplexObjService name=CObj
 
 cfinvoke webservice=http://msserver:85/bulkmailwebservices.asmx?WSDL;
 method=GetEmailObject returnvariable=theResult
 cfinvokeargument name=CObj value=CObj.getComplexObject() 
 /cfinvoke
 
 cfoutput
 #theResult#
 /cfoutput
 
 .NET Code
 ==
 
 Public Class ComplexObject
 Public Val1 As String
 Public Val2 As String
 Public Val3 As String
 End Class
 
 WebMethod() Public Function GetEmailObject(ByVal CObj As ComplexObject) As
 String
 Return Val1 =  + CObj.Val1 + br + _
 Val2 =  + CObj.Val2 + br + _
 Val3 =  + CObj.Val3 + br
  End Function
 
 Thank you,
 Matthew Small
 


-- 
Continuum Media Group LLC
Burnsville, MN 55337
http://www.web-relevant.com
http://cfobjective.blogspot.com

~|
Logware: a new and convenient web-based time tracking application. Start 
tracking and documenting hours spent on a project or with a client with Logware 
today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:190764
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: CF - .NET Web service Interop

2005-01-17 Thread Matthew Small
I thought about that, but I don't see the value in deserializing a WDDX
package on the .NET side as I don't think it will break down into .NET
usable components.  What I am working on now is an XML structure that .NET
will parse through and create objects from.  It should be easy enough to
create the XML components, but as a full-featured package, I would think
that there would be some way to pass custom classes from CF to .Net as long
as there is a description on both sides.  The description exists fine in
.NET as a class - the CFC on the CF side seems to exist as well, but CF
won't actually send the component to the .NET webservice - it claims there
is a datatype mismatch (Java error, actually).  I can't see the harm in
passing any datatype to a webservice (after all, they are all strings) and
letting the webservice figure out what the object is, or letting the type of
the object be cast as the type that the webservice uses.  

- Matt Small

-Original Message-
From: Jared Rypka-Hauer - CMG, LLC [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 17, 2005 12:00 PM
To: CF-Talk
Subject: Re: CF - .NET Web service Interop

Just a thought, and it depends on the .NET service, but would WDDX help?

J


On Mon, 17 Jan 2005 08:00:05 -0500, Matthew Small [EMAIL PROTECTED] wrote:
 Does anybody have any idea how to send a complex datatype from CF to a
.NET
 webservice? I've tried creating an object in CF that directly maps to the
 same structure in .NET but all I get is a data type mismatch error.  This
 really stinks.   I have my example code below.
 
 Thank you,
 Matt Small
 
 CF Code:
 
 ComplexObject.cfc
 ==
 cfcomponent
   cfproperty name=Val1 type=String/
   cfproperty name=Val2 type=String/
   cfproperty name=Val3 type=String/
 /cfcomponent
 
 ComplexObjService.cfc
 
 cfcomponent
 cffunction name=getComplexObject returntype=ComplexObject
 cfobject name=CObj component=ComplexObject
 cfset CObj.val1 = FirstName
 cfset CObj.val2 = MiddleName
 cfset CObj.val3 = LastName
 cfreturn CObj
 /cffunction
 /cfcomponent
 
 Index.cfm
 ==
 cfobject component=ComplexObjService name=CObj
 
 cfinvoke webservice=http://msserver:85/bulkmailwebservices.asmx?WSDL;
 method=GetEmailObject returnvariable=theResult
 cfinvokeargument name=CObj value=CObj.getComplexObject() 
 /cfinvoke
 
 cfoutput
 #theResult#
 /cfoutput
 
 .NET Code
 ==
 
 Public Class ComplexObject
 Public Val1 As String
 Public Val2 As String
 Public Val3 As String
 End Class
 
 WebMethod() Public Function GetEmailObject(ByVal CObj As ComplexObject)
As
 String
 Return Val1 =  + CObj.Val1 + br + _
 Val2 =  + CObj.Val2 + br + _
 Val3 =  + CObj.Val3 + br
  End Function
 
 Thank you,
 Matthew Small
 


-- 
Continuum Media Group LLC
Burnsville, MN 55337
http://www.web-relevant.com
http://cfobjective.blogspot.com



~|
Logware: a new and convenient web-based time tracking application. Start 
tracking and documenting hours spent on a project or with a client with Logware 
today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:190792
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54