Advertisement
DrupalCustom

pbin

Mar 27th, 2012
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. BEFORE
  2. $LoginClient = new SoapClient("https://freeway.demo.lionbridge.com/vojo/FreewayAuth.asmx?wsdl", array("trace" => 1));
  3. $ServicesLink = new SoapClient("https://freeway.demo.lionbridge.com/vojo/Service.asmx?wsdl", array("trace" => 1));
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11. AFTER
  12.  
  13. Added the link to file urlconfig.txt
  14.  
  15. $myFile = "sites/all/modules/freeway/urlconfig.txt";
  16.  
  17. $fh = fopen($myFile, 'r');
  18. while($line=fgets($fh))
  19. {
  20. $url = $line;
  21. }
  22. list($part1, $part2) = explode('#$', $url);
  23.  
  24. $LoginClient = new SoapClient('"'.$part1.'"', array("trace" => 1));
  25. $ServicesLink = new SoapClient('"'.$part2.'"', array("trace" => 1));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement