Yii Framework Forum: Problemas Para Entender Esta Clase Generada En Gii - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Problemas Para Entender Esta Clase Generada En Gii Rate Topic: -----

#1 User is offline   andrwsv 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 6
  • Joined: 28-August 11

Posted 15 April 2013 - 10:19 AM

hola amigos yo utilice esta libreria para tener acceso a un web services
http://www.yiiframew...nsion/wsdl2php/
este me genera un archivo php con una clase principal y otras clases dentro del mismo con variables privadas.

No he podido entender como enviar los datos al web services ya que hago un llamado a una clase para asignarlas variables a enviar y el yii me saca que no encuentra el archivo de la clase ?? sabiendo que esta dentro del mismo archivo.

este es el codigo que me genero:

Quote

class getTransactionInformation { public $request; //getTransactionInformationType; }

class getTransactionInformationType { public $EntityCode; //string; public $TicketId; //string; }

class getTransactionInformationResponse { public $getTransactionInformationResult; //getTransactionInformationResponseType; }

class getTransactionInformationResponseType { public $EntityCode; //string; public $TicketId; //string; public $TrazabilityCode; //string; public $TranState; //string; public $ReturnCode; //string; public $TransValue; //decimal; public $TransVatValue; //decimal; public $PayCurrency; //string; public $CurrencyRate; //decimal; public $BankProcessDate; //date; public $BankName; //string; public $PaymentSystem; //string; public $ReferenceArray; //string; public $RetriesTicketId; //retriesTicketIdType; }

class retriesTicketIdType { public $TicketId; //string; public $TranState; //string; }

class createTransactionPayment { public $request; //createTransactionType; }

class createTransactionType { public $EntityCode; //string; public $SrvCode; //string; public $TransValue; //decimal; public $TransVatValue; //decimal; public $SrvCurrency; //string; public $URLResponse; //string; public $URLRedirect; //string; public $Sign; //string; public $SignFields; //string; public $ReferenceArray; //string; }

class createTransactionPaymentResponse { public $createTransactionPaymentResult; //createTransactionResponseType; }

class createTransactionResponseType { public $ReturnCode; //string; public $TicketId; //string; public $eCollectUrl; //string; }

/** * The soap client proxy class */ class PruebasWsdl { public $soapClient;

private static $classmap = array(
'getTransactionInformation'=>'getTransactionInformation',
'getTransactionInformationType'=>'getTransactionInformationType',
'getTransactionInformationResponse'=>'getTransactionInformationResponse',
'getTransactionInformationResponseType'=>'getTransactionInformationResponseType',
'retriesTicketIdType'=>'retriesTicketIdType',
'createTransactionPayment'=>'createTransactionPayment',
'createTransactionType'=>'createTransactionType',
'createTransactionPaymentResponse'=>'createTransactionPaymentResponse',
'createTransactionResponseType'=>'createTransactionResponseType',
);

function __construct($url='http://zeus.mipuntodepago.com/d_express/webservice/eCollectWebservicesv2.asmx?wsdl')
{
$this->soapClient = new SoapClient($url,array("classmap"=>self::$classmap,"trace" => true,"exceptions" => true));
}


function getTransactionInformation($getTransactionInformation)
{
$getTransactionInformationResponse = $this->soapClient->getTransactionInformation($getTransactionInformation);
return $getTransactionInformationResponse;
}

function createTransactionPayment($createTransactionPayment)
{
$createTransactionPaymentResponse = $this->soapClient->createTransactionPayment($createTransactionPayment);
return $createTransactionPaymentResponse;
}
}


agradezco su ayuda para enviar y recibir datos al webservices. ::)
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users