Copy link to clipboard
Copied
Hi,
I'm accesing a NETwebservice and the result is an object. Could some body tell me how can I get the data from the object? I already tried many different ways and I can not get the data. It's supose that the result is an array.
This is the webservice
<s:element name="ValidaRFC">
</s:sequence>
</s:complexType>
</s:element>
</s:sequence>
</s:complexType>
</s:element>
</s:sequence>
</s:complexType>
</s:sequence>
</s:complexType>
</s:schema>
</wsdl:types>
This the code
<cfinvoke
webservice="http://webserviceURL/webservicename.asmx?wsdl"
method="validaRFC"
returnvariable="aClientesArray">
<cfinvokeargument name="user" value="#userenc#"/>
<cfinvokeargument name="pass" value="#passwordenc#"/>
<cfinvokeargument name="rfc" value="#rfcenc#"/>
</cfinvoke>
<cfdump var="#aClientesArray#"/>
object of localhost.ArrayOfClientes | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Class Name | localhost.ArrayOfClientes | ||||||||||||||||||||
Methods |
|
Copy link to clipboard
Copied
any hint about this?
Copy link to clipboard
Copied
Hi
The array is available in the "clientes" property of an instance of type ArrayOfClients (Notice the getClients and setClients methods).
If you replace your cfdump for this one:
<cfdump var="#aClientesArray.getClientes()#"/>
you should see your array.
Regards.