Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class request {
- public $request;
- public function __construct() {
- $this->request = new data();
- }
- }
- class data {
- public $EntityCode = 10324;
- public $TicketId = 6610042;
- }
- $webService = "https://test1.e-collect.com/d_Express/webservice/eCollectWebservicesv2.asmx";
- $wsdl = "https://test1.e-collect.com/d_Express/webservice/eCollectWebservicesv2.asmx?wsdl";
- $customer = new SoapClient($wsdl, array('trace' => true, 'debug' => true));
- $req = new request();
- $request = new SoapVar($req, SOAP_ENC_OBJECT, 'request', 'http://www.avisortech.com/eCollectWebservices');
- try {
- //$result=$customer->__soapCall('getTransactionInformation', new SoapParam($request,'request'));
- $result = $customer->getTransactionInformation(new SoapParam($request, 'request'));
- } catch (Exception $exc) {
- echo $exc->getMessage();
- }
- var_dump($customer->__getLastRequest());
- echo($result);
- <?xml version="1.0" encoding="UTF-8"?>
- <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://www.avisortech.com/eCollectWebservices" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <SOAP-ENV:Body>
- <ns1:getTransactionInformation xsi:type="ns1:request">
- <request>
- <EntityCode>10324</EntityCode>
- <TicketId>6610042</TicketId>
- </request>
- </ns1:getTransactionInformation>
- </SOAP-ENV:Body>
- </SOAP-ENV:Envelope>
- <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ecol="http://www.avisortech.com/eCollectWebservices">
- <soapenv:Header/>
- <soapenv:Body>
- <ecol:getTransactionInformation>
- <ecol:request>
- <ecol:EntityCode>10324</ecol:EntityCode>
- <ecol:TicketId>6610042</ecol:TicketId>
- </ecol:request>
- </ecol:getTransactionInformation>
- </soapenv:Body>
- </soapenv:Envelope>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement