Skip to content

Commit

Permalink
Sandbox endpoint... better than wsdl
Browse files Browse the repository at this point in the history
  • Loading branch information
davispeixoto committed Apr 24, 2014
1 parent 53af8e1 commit 1853b52
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6,306 deletions.
6 changes: 5 additions & 1 deletion src/Davispeixoto/LaravelSalesforce/Salesforce.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,12 @@ public function __construct(Repository $configExternal)
{
try {
$this->sfh = new Client();
$this->sfh->createConnection(__DIR__.'/Wsdl/' . $configExternal->get('laravel-salesforce::wsdl'));
$this->sfh->createConnection(__DIR__.'/Wsdl/enterprise.wsdl.xml');
$this->sfh->login($configExternal->get('laravel-salesforce::username') , $configExternal->get('laravel-salesforce::password') . $configExternal->get('laravel-salesforce::token'));
$endpoint = $configExternal->get('laravel-salesforce::endpoint');
if (!empty($endpoint)) {
$this->sfh->setEndpoint($endpoint);
}
return $this;
} catch (Exception $e) {
Log::error($e->getMessage());
Expand Down
Loading

0 comments on commit 1853b52

Please sign in to comment.