novaungthu / php-wsdl-creator

Automatically exported from code.google.com/p/php-wsdl-creator
GNU General Public License v3.0
0 stars 0 forks source link

php-wsdl-creator doesn't work on systems which have SOAP_1_1 and SOAP_1_2 defined #20

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
version 2.3 uses the following code to set the Soap Server options:

...
433  $this->SoapServerOptions=Array(
434      'soap_version' => SOAP_1_1|SOAP_1_2, 
435      'encoding'     => 'UTF-8',
436      'compression'  => SOAP_COMPRESSION_ACCEPT|SOAP_COMPRESSION_GZIP|9
437  );

The expression SOAP_1_1|SOAP_1_2, which I think is meant to evaluate to to the 
maximum available soap version, actually evaluates to 1|2 => 3. This is not a 
valid version and the server fails 

Original issue reported on code.google.com by clive.ca...@gmail.com on 16 Jan 2013 at 3:07

GoogleCodeExporter commented 9 years ago
I had the same problem

Original comment by BuBy...@gmail.com on 31 Jan 2013 at 2:34

GoogleCodeExporter commented 9 years ago
--- class.phpwsdl.php   2011-08-20 12:20:48.000000000 -0400
+++ ../class.phpwsdl.php    2013-04-11 09:26:06.745986708 -0400
@@ -431,7 +431,7 @@
        }
        // SOAP server options
        $this->SoapServerOptions=Array(
-           'soap_version'  =>  SOAP_1_1|SOAP_1_2,
+           'soap_version'  =>  SOAP_1_2,
            'encoding'      =>  'UTF-8',
            'compression'   =>  SOAP_COMPRESSION_ACCEPT|SOAP_COMPRESSION_GZIP|9
        );

Original comment by johntheb...@gmail.com on 11 Apr 2013 at 1:26