| Current Path : /var/www/html/mydlv/wsdl/ |
| Current File : /var/www/html/mydlv/wsdl/service.php |
<?php
require 'lib/nusoap.php';
require 'data.php';
$server = new nusoap_server(); // Create a instance for nusoap server
$server->configureWSDL("MyDLVWebservice","urn:MyDLVWebservice"); // Configure WSDL file
$server->register(
"PaymentResponse", // name of function
array( "OrderNo"=>"xsd:string",
"FPXTransactionID"=>"xsd:string",
"Amount"=>"xsd:decimal",
"SellerBank"=>"xsd:string",
"BuyerName"=>"xsd:string",
"BuyerID"=>"xsd:string",
"BuyerBankID"=>"xsd:string",
"BuyerBankBranch"=>"xsd:string",
"BuyerAccNo"=>"xsd:string",
"BuyerIBank"=>"xsd:string",
"MakerName"=>"xsd:string",
"DebitAuthCode"=>"xsd:string",
"CreditAuthCode"=>"xsd:string",
"DebitAuthNo"=>"xsd:string",
"CreditAuthNo"=>"xsd:string",
"Currency"=>"xsd:string",
"MessageOrderNo"=>"xsd:string",
"TransactionStatus"=>"xsd:string"
), // inputs
array("return"=>"xsd:string"), // outputs
'urn:http://tempuri.org/', // namespace
'document' // style
);
/*
$server->register('PaymentResponse', // method name
array('username' => 'xsd:string'), // input parameter
array('return' => 'xsd:string'), // output parameter
'urn:server', // namespace
'urn:server#PaymentResponse', // soapaction
'rpc', // style
'encoded', // use
'Just say hello'); // documentation
*/
$server->service(file_get_contents("php://input"));