Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,150,316 members, 7,808,068 topics. Date: Thursday, 25 April 2024 at 06:32 AM

Gtb Gaps Integration - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / Gtb Gaps Integration (1629 Views)

Please Help With Paystack Integration! / Paystack Payment Integration With .net E-commerce Applications / Paystack Integration (2) (3) (4)

(1) (Reply) (Go Down)

Gtb Gaps Integration by virtualn(m): 5:55pm On May 03, 2017
Hi everyone,

Am having an unusual issues with GTB GAPS integration.

It is a .NET SOAP webservice which am consuming in PHP.

this is my code..


set_time_limit(0);
$ref=time();
$date = date('Y/m/d');
//var_dump($ref); exit;
$xml='<transactions>
<transaction>
<amount>2000</amount>
<paymentdate>'.$date.'</paymentdate>
<reference>'.$ref.'</reference>
<remarks>Coders Cash Out</remarks>
<vendorcode>25437</vendorcode>
<vendorname>Coders Limited</vendorname>
<vendoracctnumber>XXXXXXXXXX</vendoracctnumber>
<vendorbankcode>XXXXXXXXX</vendorbankcode>
</transaction>
</transactions>';

$params = new \SoapVar($xml, XSD_ANYXML);

$param =array(
'xmlstring'=>$params,
'customerid'=>'XXXXXXXX',
'username'=>'XXXXXXXX',
'password'=>'XXXXXXXX'
);

$options = array(
'soap_version'=>SOAP_1_1,
'exceptions'=>true,
'trace' => 1,
'encoding'=>'UTF-8',
'connection_timeout' => 500000,
'cache_wsdl'=>WSDL_CACHE_BOTH,
'keep_alive' => false
);

$url = "https://test.ggg.com/test.asmx?wsdl";

try {
$client = new SoapClient($url, $options);

$response = $client->UploadFile_XML($param);

$xmlres = new SimpleXMLElement($response->UploadFile_XMLResult);
//var_dump($client->__getLastRequest()); exit;
var_dump($xmlres); exit;

} catch (SoapFault $fault) {
echo 'Error : '.$fault->getMessage();



But I keep on getting error message, not too sure if it is from me or from them.

If you are willing to help or have done something like this before kindly explain here.

Thank you in anticipation of a response from you guys.
Re: Gtb Gaps Integration by talk2hb1(m): 8:30pm On May 03, 2017
virtualn:
Hi everyone,

Am having an unusual issues with GTB GAPS integration.

It is a .NET SOAP webservice which am consuming in PHP.

this is my code..


set_time_limit(0);
$ref=time();
$date = date('Y/m/d');
//var_dump($ref); exit;
$xml='<transactions>
<transaction>
<amount>2000</amount>
<paymentdate>'.$date.'</paymentdate>
<reference>'.$ref.'</reference>
<remarks>Coders Cash Out</remarks>
<vendorcode>25437</vendorcode>
<vendorname>Coders Limited</vendorname>
<vendoracctnumber>XXXXXXXXXX</vendoracctnumber>
<vendorbankcode>XXXXXXXXX</vendorbankcode>
</transaction>
</transactions>';

$params = new \SoapVar($xml, XSD_ANYXML);

$param =array(
'xmlstring'=>$params,
'customerid'=>'XXXXXXXX',
'username'=>'XXXXXXXX',
'password'=>'XXXXXXXX'
);

$options = array(
'soap_version'=>SOAP_1_1,
'exceptions'=>true,
'trace' => 1,
'encoding'=>'UTF-8',
'connection_timeout' => 500000,
'cache_wsdl'=>WSDL_CACHE_BOTH,
'keep_alive' => false
);

$url = "https://test.ggg.com/test.asmx?wsdl";

try {
$client = new SoapClient($url, $options);

$response = $client->UploadFile_XML($param);

$xmlres = new SimpleXMLElement($response->UploadFile_XMLResult);
//var_dump($client->__getLastRequest()); exit;
var_dump($xmlres); exit;

} catch (SoapFault $fault) {
echo 'Error : '.$fault->getMessage();



But I keep on getting error message, not too sure if it is from me or from them.

If you are willing to help or have done something like this before kindly explain here.

Thank you in anticipation of a response from you guys.
Are you trying to consume soap service in PHP?
If that should be the case, just try using NuSoap its easier and faster download it here https://github.com/sagarsdeshmukh/nusoap/blob/master/README.md
Re: Gtb Gaps Integration by engprodigy: 9:22am On May 04, 2017
please post the error you're getting here
Re: Gtb Gaps Integration by lanbaba: 3:19pm On May 04, 2017
Hello,

Didn't know GTB GAPS had an API that they made accessible.
What does this API do?

Thanks
Re: Gtb Gaps Integration by virtualn(m): 1:28pm On May 05, 2017
Hi all,

This is the response I got

object(SimpleXMLElement)#4 (2) { ["ResCode"]=> string(4) "1007" ["Message"]=> string(43) " :File Upload Error; unable to process file" }
Re: Gtb Gaps Integration by virtualn(m): 2:16pm On May 05, 2017
talk2hb1:

Are you trying to consume soap service in PHP?
If that should be the case, just try using NuSoap its easier and faster download it here https://github.com/sagarsdeshmukh/nusoap/blob/master/README.md

Thank you for your time....but trying with nusoap gave the same error response.
Re: Gtb Gaps Integration by talk2hb1(m): 2:34pm On May 05, 2017
virtualn:


Thank you for your time....but trying with nusoap gave the same error response.
Then you are doing something very, very, very wrong!
Re: Gtb Gaps Integration by virtualn(m): 3:04pm On May 05, 2017
talk2hb1:

Then you are doing something very, very, very wrong!

Have gone through my code over and over and I tried with SOAPUI but it showed bad request.

My thought...my be the xmlstring parameter given to me is actually not correct with what they have,
because when I took out that part the error response was different like a file is missing.

(1) (Reply)

Please HELP Me With This Java Program / Updated 2017 | 2018 100% Working Freebitco Script - Earn 0.05BTC | The Video / Free Software Download From MicroSoft And Dreamspark For Students

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 16
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.