I am pretty sure you can return complex objects. But I do not know what the 
limitations/compatibility issues might be.

I tried your code with CF9 last night, and it does work. I do not have access 
to CF8 right now, but have you tried something like this:

TestWebservice.cfm
<cfset ws  = createObject("webservice","http://localhost/webservice.cfc?wsdl";) 
/>
OBJ <cfdump var="#ws.getObj()#"><hr />


Webservice.cfc

<cfcomponent>
  <cfset variables.ID = "12" />
  <cfset variables.obj = createObject("component","MyObject") />

  <cffunction name="getID" access="remote" returntype="numeric">
      <cfreturn variables.ID>
  </cffunction>
  
  <cffunction name="getObj" access="remote" returntype="MyObject">
      <cfreturn variables.obj>
  </cffunction>
</cfcomponent>

MyObject.cfc

<cfcomponent>
    <cfproperty name="name" default="Bob" type="string">
    <cfset variables.name = "Bob" />
        
    <cffunction name="setName" returntype="void">
        <cfargument name="name" type="string">
        <cfset variables.name = arguments.name />
    </cffunction>
        <cffunction name="getName" returntype="string">
        <cfreturn varaibles.name />
    </cffunction>
        
</cfcomponent>


      

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329450
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to