You can pass a CFC to a .NET call?
"This e-mail is from Reed Exhibitions (Gateway House, 28 The Quadrant, Richmond, Surrey, TW9 1DN, 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: Ken Sykora To: CF-Talk Sent: Wed May 30 18:42:06 2007 Subject: Re: Calling ColdFusion Web Service from .NET Update: The exact same sample code I posted in the initial post can be invoked using .NET under the latest scorpio beta.... I'm guessing this indicates CF7 not being able to handle complex data types in web services... --Ken On 5/30/07, Ken Sykora <[EMAIL PROTECTED]> wrote: > > Will not work... ever... even though the documentation for the web > services in livedocs claims that it should work? It says that the component > types get cast into complex types (xsd:anyType) and the wsdl seems to note > them correctly: > > From the WSDL: > > > <wsdl:types> > > <schema targetNamespace=" http://tempuri.org/"> > > <import namespace="http://rpc.xml.coldfusion"/> > > <import namespace=" http://schemas.xmlsoap.org/soap/encoding/"/> > > <complexType name="Shape"> > > <sequence> > > <element name="length" nillable="true" type="xsd:double"/> > > <element name="width" nillable="true" type="xsd:double"/> > > </sequence> > > </complexType> > > </schema> > > ... > > > <wsdl:message name="returnShapeResponse"> > > <wsdl:part name="returnShapeReturn" type="impl:Shape"/> > > > </wsdl:message> > > > > <wsdl:message name="CFCInvocationException"> > > <wsdl:part name="fault" type="tns1:CFCInvocationException"/> > > </wsdl:message> > > > > <wsdl:message name="returnShapeRequest"> > > <wsdl:part name="s" type="impl:Shape"/> > > </wsdl:message> > > > > <wsdl:portType name="ReturnShape"> > > <wsdl:operation name="returnShape" parameterOrder="s"> > > <wsdl:input message="impl:returnShapeRequest" > > name="returnShapeRequest"/> > > <wsdl:output message="impl:returnShapeResponse" > > name="returnShapeResponse"/> > > <wsdl:fault message="impl:CFCInvocationException" > > name="CFCInvocationException"/> > > </wsdl:operation> > > </wsdl:portType> > > > > That looks right to me... so what is really going on behind the scenes > that is preventing this from working? There must be some blog posts > somewhere or articles about getting complex data to be sent back and forth > between coldfusion without casting the whole argument structure as a > string. > > --Ken > > > On 5/30/07, Robertson-Ravo, Neil (RX) < > [EMAIL PROTECTED]> wrote: > > > > Yes..in your example. You are trying to pass a complex CF object to .NET > > which will not work..ever. There are some wrappers you can use to > > potentially translate a query into an .NET Dataset but you wont be able > > to > > pass a CFC to .NET. > > > > > > > > > > > > > > -----Original Message----- > > From: Ken Sykora [mailto:[EMAIL PROTECTED] > > Sent: 30 May 2007 15:54 > > To: CF-Talk > > Subject: Re: Calling ColdFusion Web Service from .NET > > > > Thank you for your responses... that is what I feared had to be the case > > to > > communicate with .NET. Is this experience any different with CF8? I'm > > not > > talking about direct invocation using assemblies, rather communicating > > via > > web services. > > > > Thanks, > > > > --Ken > > > > On 5/30/07, Robertson-Ravo, Neil (RX) < > > [EMAIL PROTECTED]> > > wrote: > > > > > > Yep, pass only string representations of your objects return values > > and > > > you > > > will be fine... > > > > > > > > > > > > "This e-mail is from Reed Exhibitions (Gateway House, 28 The Quadrant, > > > Richmond, Surrey, TW9 1DN, 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: Brad Wood > > > To: CF-Talk > > > Sent: Wed May 30 00:17:35 2007 > > > Subject: Re: Calling ColdFusion Web Service from .NET > > > > > > I think this goes back to the problem of CFC's not being able to be > > > serialized and or passed around to web services on remote > > servers. You > > > are > > > passing an instance of a CFC into your web service which is a complex > > > object > > > and the C# code has somehow serialized it, but the CF web service > > doesn't > > > know how to reconstitute it. You might have to rethink the inputs to > > your > > > C# code to pass in simple data types or at least serializable ones. I > > > > > don't > > > know what the equivalent to a struct would be in C#, but it might be a > > > good > > > start. > > > Probably not what you wanted to hear, but just my guess anyway. > > > > > > ~Brad > > > > > > -----Original Message----- > > > From: Ken Sykora [mailto:[EMAIL PROTECTED] > > > Sent: Tuesday, May 29, 2007 6:13 PM > > > To: CF-Talk > > > Subject: Calling ColdFusion Web Service from .NET > > > > > > Hello Everyone. > > > > > > When I run the .NET Program, I get an exception on the invocation line > > [s > > > = > > > service.returnShape(s);]: > > > > > > "org.xml.sax.SAXException: Deserializing parameter 's': could not > > find > > > > deserializer for type { http://tempuri.org/}Shape<http://tempuri.org/%7DShape> > > " > > > > > > > > > > > > > > > > > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| ColdFusion MX7 by AdobeĀ® Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:279609 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

