Menu

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

New
nobody
None
Medium
Defect
2013-04-11
2013-01-16
Anonymous
No

Originally created by: clive.ca...@gmail.com

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

Discussion

  • Anonymous

    Anonymous - 2013-04-11

    Originally posted by: johntheb...@gmail.com

    --- 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
             );

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.