Advertisement
Guest User

Untitled

a guest
Jun 29th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. $xml = '<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v1="www.rxhub.co.za/RFMService/v1" xmlns:rxh="http://schemas.datacontract.org/2004/07/RxHub.Service.Requests">'
  2. .'<soapenv:Header/>'
  3. .'<soapenv:Body>'
  4. .'<v1:Login>'
  5. .'<!--Optional:-->'
  6. .'<v1:loginRequest>'
  7. .'<rxh:VendorToken>'.$this->clicksVendorToken.'</rxh:VendorToken>'
  8. .'<rxh:UserName>'.$this->clicksUsername.'</rxh:UserName>'
  9. .'<rxh:Password>'.$this->clicksPassword.'</rxh:Password>'
  10. .'</v1:loginRequest>'
  11. .'</v1:Login>'
  12. .'</soapenv:Body>'
  13. .'</soapenv:Envelope>';
  14. //print_r($xml);die();
  15.  
  16. $soap_params = array(
  17. "soap_version" => SOAP_1_1,
  18. "trace" => 1,
  19. );
  20.  
  21. $client = new \SoapClient("http://sandbox.marconi.co.za/RxHubService/RxHub.Service.RFMService.svc", $soap_params);
  22.  
  23. $result = $client->Login($xml);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement