I haven't delt with SOAP web services in quite a while; but wouldn't you just return the data as XML and parse it out in Flex as HTML?
Most server side development platforms have an AMF implementation that can automatically convert backend objects to AS3 objects, even if those objects are nested. I do not know of a C++ solution for this, but you could create one in theory. I doubt it is any harder than creating your own application server.
I don't know anything about GSoap, nor why you chose C++ for this application. But, I have to wonder if you have chosen the best tool for the job.
Thanks for ur response.
I have a function in my webservice, which takes no parameters.
When i make a call to it from Flex, the fault handler is called and
event.target.toString() shows up the following.
[WebService destination="DefaultHTTP" wsdl="http://chandras/CInterface.wsdl" channelSet="[ChannelSet direct_http_channel ]"]
chandras is the name of the machine( both server and client).
my webservice tag in mxml looks like this.
<mx:WebService id="WSCE" wsdl="http://chandras/CInterface.wsdl" fault="WSfaultHandler(event)">
<mx:operation name="CE__cleargData" resultFormat="object" result="WSResultHandler(event)">
and i invoke the function ike this.
If any1 knows wher the attributes of the webservice tag is explained with examples please share it.
i want to clearly understand wat destination and channelSet attributes are for..
i solved tat error. i called webservice using only AS.( nothing in mxml).
But still got to figure out how to send and receive complex datatypes.
The new SDK has support for vector datatypes.
i decided to transfer data in terms of structs( not vectors ), and then write wrapper functions to convert to vectors.
( using __ptr and __size, which is reqd by GSoap)
the client generates the required AS classes from the WSDL generated by GSoap.
I dont need to parse the xml or any such thing now.
Now i'm able to exchange complex data between Server and Client.