Advertisement
Guest User

SOAP call

a guest
Feb 10th, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.84 KB | None | 0 0
  1. $soap = new \SoapClient('https://parxx.preprod.parkmobile.nl/201303/services/TokenService.svc?wsdl',array(
  2. 'cache_wsdl' => 0,
  3. 'soap_version' => SOAP_1_2,
  4. // 'location' => 'https://parxx.parkmobile.com/201303/services/tokenservice.svc'
  5. ));
  6. // $xml = "<VerifyOffStreet>";
  7. // $xml .= "<Request>";
  8. // $xml .= "<Identification>";
  9. // $xml .= "<AuthenticationType>Mifare</AuthenticationType>";
  10. // $xml .= "<Number>5E13E47E</Number>";
  11. // $xml .= "</Identification>";
  12. // $xml .= "<ZoneCode>HNK001</ZoneCode>";
  13. //// $xml .= "<>"
  14. // $xml .= "</Request>";
  15. // $xml .= "</VerifyOffStreet>";
  16. // $soap->__doRequest($xml, 'https://parxx.parkmobile.com/2013/services/tokenservice.svc');
  17. // $soap->
  18. $actionHeader = array();
  19. $actionHeader[] = new \SoapHeader('http://www.w3.org/2005/08/addressing',
  20. 'Action',
  21. 'urn:parkmobile-com:gateway:v1/ITokenServiceContract/VerifyOffStreet');
  22. // $soap->__setS
  23. $soap->__setSoapHeaders($actionHeader);
  24. // echo "<pre>";
  25. // var_dump($soap->__getTypes());
  26. // exit;
  27. $result = $soap->VerifyOffStreet(array(
  28. 'request' => array(
  29. 'ZoneCode' => 'HNK001',
  30. 'Identification' => array(
  31. 'AuthenticationType' => 'Mifare',
  32. // 'SupplierCode' => '0020',
  33. // 'SupplierName' => 'Gateway Client',
  34. 'Number' => '5E13E47E'
  35. ),
  36. 'TransactionID' => time(),
  37. 'RequestTime' => date("Y-m-d\TH:i:s.000",time())
  38. )
  39. ));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement