Guest User

Untitled

a guest
May 24th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. <?phptry {
  2. $opts = array(
  3. 'http' => array(
  4. 'user_agent' => 'PHPSoapClient'
  5. )
  6. );
  7. $context = stream_context_create($opts);
  8.  
  9. $wsdlUrl = 'http://ws.portaledu.com.br:8051/wsConsultaSQL/MEX?wsdl';
  10. $soapClientOptions = array(
  11. "login" => "XxXxXxXx",
  12. "password" => "XxXxXxXxX",
  13. "stream_context" => $context,
  14. "cache_wsdl" => WSDL_CACHE_NONE
  15. );
  16.  
  17. $client = new SoapClient($wsdlUrl, $soapClientOptions);
  18.  
  19. }
  20. catch(Exception $e) {
  21. echo $e->getMessage();
  22. }
Add Comment
Please, Sign In to add comment