I’ve had a little luck in switching this to a WSDL but having some problems. Maybe I’m trying something that’s not possible, but since this isn’t documented that great I might as well J

here’s what I have so far:

<mx:WebService id="myServ" wsdl="cfm/test.cfc?wsdl">

            <mx:operation name="getText"  result="returnAlert(event.result)">

                        <mx:request xmlns="">

                                    <text>

                                                <![CDATA[

                                                            [EMAIL PROTECTED]&*()/<>

                                                ]]>  

                                    </text>

                        </mx:request>

            </mx:operation>

</mx:WebService>


And my test.cfc file:

<cfcomponent>

            <cffunction name="getText" access="remote" returntype="array">

                        <cfargument name="text" type="string" required="yes">

                        <cfstoredproc procedure="professional..sp_conprofstatedrop" datasource="physician">

                                    <cfprocresult name="getPhysStates" resultset="1">

                        </cfstoredproc>

                        <cfset myResult = ArrayNew(2)>

                        <cfset myResult[0][0] = "bob">

                        <cfreturn myResult>

            </cffunction>

</cfcomponent>

Strings work fine. Arrays, queries, or “any” return types do not. Here’s the error I get when not using a string:

Error: code:Server.Error.Request string:'HTTP request error' detail:'Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false text="Error #2032: Stream Error. URL: http://localhost/cfm/test.cfc"]. URL: http://localhost/cfm/test.cfc'

Any ideas?

 

_________________________________________

Jonathan Miranda

Flexible Master of the Web

"In the game of chess, it's important to never let your opponent see your pieces."

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jonathan Miranda
Sent: Monday, February 20, 2006 11:14 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Complex data without Flash Remoting

 

So a client is using BlueDragon and up to this point it’s been simple data so it was relatively easy – I was using HTTPServices that added data to the url and read it in as such (url="" returning just basic XML. Now the need for complex data sent is here and I’m a bit stumped on the way to handle this. If I used the following:

<mx:HTTPService id="myService"  url="" result="returnData()">

<mx:request xmlns="">

<data>{theData}</data>

</mx:request>

</mx:HTTPService>

 

How would it come to the test.cfm file or is this even possible without a Flash Remoting gateway? For those that don’t know, Blue Dragon is a .NET version of ColdFusion. I can run all the basic CFML but there’s no flash remoting gateway. What are my options? I’ve seen the macromedia article on adding flash remoting to .Net (http://www.macromedia.com/devnet/flashremoting/articles/intro_flremoting_net_03.html) and the basic model for coldfusion cfcs and remoteobjects (http://www.forta.com/blog/index.cfm?mode=e&entry=1786 although is this still the same for Flex2?) – but as I’m not the infrastructure man for the server this is going to be a huge hassle to add this and I’m wondering my other options before I go knocking on the IT guy’s door.

Also on a semi-different side note, is there a URLEncode function in AS3 that will take a string and return a url formatted string?

_________________________________________

Jonathan Miranda

Flexible Master of the Web

"In the game of chess, it's important to never let your opponent see your pieces."

 




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to