I just created deserialize and view object web service in pure java inside
CF
The main goal was show how you can transfer java objects into a pure java
web services inside CF effectively
getting around that limitation.
Accepts only wddx which are deserialize java objects and it only has one
method GiveToSax() (org.xml.sax.InputSource)
and only returns only string data.
example:
<cfset myQuery = QueryNew("Ticker, Sector", "VarChar, VarChar") />
<cfwddx action="cfml2wddx" input="#myQuery#" output="JWS">
<cfinvoke webservice="http://www.cfide.org/DeserializeAndViewObject.jws?WSDL"
method="GiveToSax"
returnvariable="returnedBigString">
<cfinvokeargument name="str" value="#JWS#" />
</cfinvoke>
<cfoutput><pre>#returnedBigString#</pre></cfoutput>
Returns something like this
public class coldfusion.sql.QueryTable
extends coldfusion.sql.Table
implementsjavax.sql.RowSet, coldfusion.wddx.RecordSet
{
/*** CONSTRUCTORS ***/
public coldfusion.sql.QueryTable(com.allaire.cfx.Query)
public coldfusion.sql.QueryTable(java.sql.ResultSet)
public coldfusion.sql.QueryTable(int)
public coldfusion.sql.QueryTable(coldfusion.sql.QueryTable)
public coldfusion.sql.QueryTable()
public coldfusion.sql.QueryTable(int ,java.lang.String)
public coldfusion.sql.QueryTable(int ,[Ljava.lang.String;)
/*** METHODS ***/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:257131
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4