Forum: Ruby on Rails web services datat types

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
B192011964906cffb106241f99cb4c3f?d=identicon&s=25 Rodrigo Dominguez (rdominguez)
on 2006-05-31 17:16
(Received via mailing list)
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 Dominguez



Iplan Networks                Datos Personales

rdominguez@iplan.com.ar       rorra@rorra.com.ar

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

5031-6303                     15-5695-6027
This topic is locked and can not be replied to.