SOAPParam - Does it possible?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,



I'm creating a wsdl server but I have one doubt about the soapparam::soapparam().


I want to know how to return several parameters using the soapparam::soapparam().


I'm doing this:


class MyApi implements API {

  public function Send($param) {
  $resp = array('resposta' => 'works', 'events' => array ('from' => 'smith', 'text' => 'Hello world', 'to' => 'john'));
  return new SoapParam($resp, 'events');
  }

Looking in the php.net Docs the soapparam() has this definition:

SoapParam::SoapParam ( mixed $data , string $name )

data

The data to pass or return. This parameter can be passed directly as PHP value, but in this case it will be named as paramN and the SOAP service may not understand it.

name

The parameter name.


But How can I return the entire array: $resp = array('resposta' => 'works', 'events' => array ('from' => 'smith', 'text' => 'Hello world', 'to' => 'john')); ?


Looks this wsdl schema in this email

I think you will understand more about my problem.

Thanks



Augusto Morais
-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux