Skip to content

Commit

Permalink
Merge pull request #12 from brianfreytag/bf_client_fix
Browse files Browse the repository at this point in the history
Fix for undefined variable error
  • Loading branch information
brianfreytag committed Apr 26, 2023
2 parents 1d4cd97 + 173ae65 commit 04330ba
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/UltiproSoapClient.php
Expand Up @@ -68,7 +68,7 @@ public function login(string $baseUri = 'https://service5.ultipro.com/services/B
new SoapHeader('http://www.w3.org/2005/08/addressing', 'Action', 'http://www.ultipro.com/dataservices/bidata/2/IBIDataService/LogOn', true),
new SoapHeader('http://www.w3.org/2005/08/addressing', 'To', 'https://service5.ultipro.com/services/BiDataService', true)
];

$this->getClient()->__setSoapHeaders($headers);

try {
Expand All @@ -78,8 +78,8 @@ public function login(string $baseUri = 'https://service5.ultipro.com/services/B
'There was an error logging into the Ultipro SOAP API',
[
'message' => $e->getMessage(),
'last_request' => $client->__getLastRequest(),
'last_response' => $client->__getLastResponse()
'last_request' => $this->getClient()->__getLastRequest(),
'last_response' => $this->getClient()->__getLastResponse()
]
);

Expand All @@ -90,8 +90,8 @@ public function login(string $baseUri = 'https://service5.ultipro.com/services/B
$this->getLogger()->error(
'There was an error logging into the Ultipro SOAP API',
[
'last_request' => $client->__getLastRequest(),
'last_response' => $client->__getLastResponse()
'last_request' => $this->getClient()->__getLastRequest(),
'last_response' => $this->getClient()->__getLastResponse()
]
);

Expand Down

0 comments on commit 04330ba

Please sign in to comment.