italia / fatturapa-testsdi

Sistema d'Interscambio di test
GNU Affero General Public License v3.0
61 stars 24 forks source link

SOAP server endpoints do not return WSDL on GET ...?WSDL #38

Open simevo opened 5 years ago

simevo commented 5 years ago

a first fix is to locate the endpoint:

--- a/soap/index.php
+++ b/soap/index.php
@@@ -11,7 -11,7 +11,7 @@@ if (sizeof($request_uri) < 4) 

  $actor = $request_uri[1];
  $soap = $request_uri[2];
--$endpoint = $request_uri[3];
++$endpoint = explode('?', $request_uri[3])[0];

  if ($soap != 'soap') {
      echo "404 wrong path to soap endpoint";

but that's not enough ...