Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- BEFORE
- $LoginClient = new SoapClient("https://freeway.demo.lionbridge.com/vojo/FreewayAuth.asmx?wsdl", array("trace" => 1));
- $ServicesLink = new SoapClient("https://freeway.demo.lionbridge.com/vojo/Service.asmx?wsdl", array("trace" => 1));
- AFTER
- Added the link to file urlconfig.txt
- $myFile = "sites/all/modules/freeway/urlconfig.txt";
- $fh = fopen($myFile, 'r');
- while($line=fgets($fh))
- {
- $url = $line;
- }
- list($part1, $part2) = explode('#$', $url);
- $LoginClient = new SoapClient('"'.$part1.'"', array("trace" => 1));
- $ServicesLink = new SoapClient('"'.$part2.'"', array("trace" => 1));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement