Web services datat types

Ok, this is the model (just two structs)

class CLL_Answer < ActionWebService::Struct

member :server_status, :bool

member :answerDescription, :string

member :answer, :string

member :metadata, CLL_Metadata

end

class CLL_Metadata < ActionWebService::Struct

member :key, :string

member :type, :string

member :value, :string

member :webapplication_id, :string

member :user_tenfold_id, :string

member :login_username, :string

end

This is the api

api_method :GetMetadata,

         :expects => [ { :metadata => [CLL_Metadata] } ],

         :returns => [CLL_Answer]

and this is the controller for the web service

def GetMetadata(metadata)

breakpoint

answer = CLL_Answer.new

answer

end

and lastly, this is the php client

$client = new
mysoapclient(“http://loginunificado.portalserver.com.ar/unified_login/ws
dl”, true,

$proxyhost, $proxyport, $proxyusername, $proxypassword);

$params = array(‘key’ => ‘perfil’, ‘type’ => ‘1’, ‘value’ => ‘’,
‘webapplication_id’ => ‘’, ‘user_tenfold_id’ => ‘’, ‘login_username’ =>
‘’);

$result = $client->call(‘GetMetadata’, $params);

print_r($result);

I just want to send a CLL_Metadata from php (nusoap) to ruby on rails
application, but every time I call the function with a custom struct
(CLL_Metadata), it just doesn’t receives he null, instead it recives
null

Rodrigo D.

Iplan Networks Datos Personales

[email protected] [email protected]

www.iplan.com.ar http://www.iplan.com.ar/
www.rorra.com.ar http://www.rorra.com.ar/

5031-6303 15-5695-6027