Skip to content

Commit

Permalink
adn: added env proxy host
Browse files Browse the repository at this point in the history
  • Loading branch information
smeyer-ilias committed Jan 16, 2024
1 parent 6c3badc commit d1c2337
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,13 @@ public function start()
// PRIVATE
public function __enableWSDL()
{
$this->server->configureWSDL(SERVICE_NAME, SERVICE_NAMESPACE);
// begin-patch adn
$this->server->configureWSDL(
SERVICE_NAME,
SERVICE_NAMESPACE,
ilSoapFunctions::buildHTTPPath() . '/webservice/soap/server.php'
);
// end-patch adn

return true;
}
Expand Down
3 changes: 3 additions & 0 deletions webservice/soap/include/inc.soap_functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -920,6 +920,9 @@ public static function buildHTTPPath()
$uri = dirname($uri);
}
// begin-patch adn
if (getenv('ADN_PROXY_HOST')) {
$host = getenv('ADN_PROXY_HOST');
}
$uri = ilUtil::removeTrailingPathSeparators($protocol . $host . $uri);
$proxy_uri = '';
if (getenv('ADN_PROXY_URI')) {
Expand Down
2 changes: 2 additions & 0 deletions webservice/soap/server.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
// This is a SOAP request
include_once('webservice/soap/include/inc.soap_functions.php');
$uri = ilSoapFunctions::buildHTTPPath() . '/webservice/soap/server.php';
// begin-patch adn
$uri = 'http://localhost/webservice/soap/server.php';
if (isset($_GET['client_id'])) {
$uri .= '?client_id=' . $_GET['client_id'];
$wsdl = $uri . '&wsdl';
Expand Down

0 comments on commit d1c2337

Please sign in to comment.