Bueno ya entendi como se usa wds2php. Ya hice el llamado al wsdl y me genero un archivo con este codigo:
Código PHP:
<?php
class getBankList {
public $request; // getBankListType
}
class getBankListType {
public $EntityCode; // string
}
class getBankListResponse {
public $getBankListResult; // ArrayOfGetBankListResponseType
}
class getBankListResponseType {
public $paymentSystem; // nonNegativeInteger
public $financialInstitutionCode; // nonNegativeInteger
public $financialInstitutionName; // string
}
class createTransactionPayment {
public $request; // createTransactionType
}
class createTransactionType {
public $EntityCode; // string
public $TicketId; // string
public $SrvCode; // string
public $PaymentDesc; // string
public $TransValue; // decimal
public $TransVatValue; // decimal
public $UserType; // string
public $Reference1; // string
public $Reference2; // string
public $Reference3; // string
public $PaymentSystem; // string
public $URLResponse; // string
public $FICode; // string
}
class createTransactionPaymentResponse {
public $createTransactionPaymentResult; // createTransactionResponseType
}
class createTransactionResponseType {
public $ReturnCode; // string
public $Url; // string
}
class getTransactionInformation {
public $request; // getTransactionInformationType
}
class getTransactionInformationType {
public $EntityCode; // string
public $TicketId; // string
}
class getTransactionInformationResponse {
public $getTransactionInformationResult; // getTransactionInformationResponseType
}
class getTransactionInformationResponseType {
public $TrazabilityCode; // string
public $TranState; // string
public $SrvCode; // string
public $PaymentDesc; // string
public $TransValue; // decimal
public $TransVatValue; // decimal
public $Reference1; // string
public $Reference2; // string
public $Reference3; // string
public $BankProcessDate; // date
public $BankName; // string
public $ReturnCode; // string
}
/**
* MPPServices class
*
*
*
* @author {author}
* @copyright {copyright}
* @package {package}
*/
class MPPServices extends SoapClient {
private static $classmap = array(
'getBankList' => 'getBankList',
'getBankListType' => 'getBankListType',
'getBankListResponse' => 'getBankListResponse',
'getBankListResponseType' => 'getBankListResponseType',
'createTransactionPayment' => 'createTransactionPayment',
'createTransactionType' => 'createTransactionType',
'createTransactionPaymentResponse' => 'createTransactionPaymentResponse',
'createTransactionResponseType' => 'createTransactionResponseType',
'getTransactionInformation' => 'getTransactionInformation',
'getTransactionInformationType' => 'getTransactionInformationType',
'getTransactionInformationResponse' => 'getTransactionInformationResponse',
'getTransactionInformationResponseType' => 'getTransactionInformationResponseType',
);
public function MPPServices($wsdl = "http://apolo.mipuntodepago.com/corepsem/webservice/MPPServices.asmx?WSDL", $options = array()) {
foreach(self::$classmap as $key => $value) {
if(!isset($options['classmap'][$key])) {
$options['classmap'][$key] = $value;
}
}
parent::__construct($wsdl, $options);
}
/**
*
*
* @param getBankList $parameters
* @return getBankListResponse
*/
public function getBankList(getBankList $parameters) {
return $this->__soapCall('getBankList', array($parameters), array(
'uri' => 'http://www.avisortech.com/MPPWebServices',
'soapaction' => ''
)
);
}
/**
*
*
* @param createTransactionPayment $parameters
* @return createTransactionPaymentResponse
*/
public function createTransactionPayment(createTransactionPayment $parameters) {
return $this->__soapCall('createTransactionPayment', array($parameters), array(
'uri' => 'http://www.avisortech.com/MPPWebServices',
'soapaction' => ''
)
);
}
/**
*
*
* @param getTransactionInformation $parameters
* @return getTransactionInformationResponse
*/
public function getTransactionInformation(getTransactionInformation $parameters) {
return $this->__soapCall('getTransactionInformation', array($parameters), array(
'uri' => 'http://www.avisortech.com/MPPWebServices',
'soapaction' => ''
)
);
}
}
?>
Pero ahora mi pregunta es como hago el llamado a este archivo apra que me ghenere el listado de bancos. tengo esto pero no me funciona no me saca nada ni error ni nada
ProWdsl.php
Código PHP:
<?php
require_once 'MPPServices.php';
$hello = new getBankList();
$hello->getBankList('0001');
?>