First of all i apologize for my poor english, if don’t understand
please tell me, and i will try to explain again.
Hi have a litlle problem with web services. I explain, i a have a web
service in php that return a structure seems to this:
[crm] => Array
 => Array
[surname] => AAAA
[category] => Client
[email] => email@example.com [nifCif] => 000000000-Q [name] => PRUEBA [phone] => [phone] => [clientype] => 1 [doctype] => [clientStatus] => CLIENT [id] => 0000001 [version] => ) ) [tipoDoc] => NIF
This is a print_r in php of the response of web service.
Well, the problem is how to map the SOAP OBJECT that uses ruby, in a
array, for simple access to the values that the web service return. hope
explain correctly :S
My code now is this:
@result = @proxy.GetbyDocument(@documento,@contrato,"")
- “GetByDocument” is the name of the web service and id, contract and
action are the params of the method.
In the next line i invoke the web service method and in the result
i obtain the response of the web service, the SOAP OBJECT, and i dont
how to access the values like i do in PHP
I need something like this.
@arrayAux = Hash.new()
@arrayAux = @resultado.valores //the values of the response of web
To obtein doctype —> @arrayAux —> NIF
To obtain clientstatus —> @arrayAux —> CLIENT
Hope you will understand me, Thanks in advance.