Menu

#10 Enums donot work at PHP5.3.8

New
nobody
None
Medium
Defect
2013-02-28
2012-08-26
Anonymous
No

Originally created by: christia...@gmail.com
Originally owned by: schickwa...@googlemail.com

What steps will reproduce the problem?
1. Use php-wsdl-creator Commit 43
2. Use http://sourceforge.net/projects/soapui/files/soapui/ 4.5 or 4.51
3. Apache 2.2.21, PHP 5.3.8

What is the expected output? What do you see instead?
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
   <SOAP-ENV:Body>
      <SOAP-ENV:Fault>
         <faultcode>WSDL</faultcode>
         <faultstring>SOAP-ERROR: Parsing WSDL: Missing name for &lt;fault> of 'DemoEnum'</faultstring>
      </SOAP-ENV:Fault>
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

What version of the product are you using? On what operating system?

Please provide any additional information below.

demo.php: Comment out
//PhpWsdlMethod::$DefaultException='SoapFault';// This will set SoapFault as exception type for all methods
makes demp.php sample working

Discussion

  • Anonymous

    Anonymous - 2012-08-26

    Originally posted by: schickwa...@googlemail.com

    I can't reproduce the error with PHP Version 5.3.3-7+squeeze14. For testing it'd maybe be good to know the exact operating system because there are differences between Windows/Linux within the same PHP release. To reproduce the error you have to send a SOAP request - how does the request XML look like?

    Please note that the class.complextypedemo.php in the latest [r43] contains an error: The class method ComplexTypeDemo->ComplexTypeDemo does a wrong call on the enumeration demonstration class. It should look like this:

    $this->Enum=DemoEnum::ValueB;

    I'm still working on some improvements for the enumeration support. If they work for me, I'll submit another revision (maybe later today).

    Owner: schickwa...@googlemail.com

     

    Related

    Commit: [r43]

  • Anonymous

    Anonymous - 2012-08-26

    Originally posted by: schickwa...@googlemail.com

    Ok, I saw this must be an error from the PHP SoapClient object. Please review the latest [r44], it may fix the error.

    I assume you use Windows?

     

    Related

    Commit: [r44]

  • Anonymous

    Anonymous - 2012-08-26

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

    Currently i am testing at win7/64 bit but later will use it also at redhat.

     

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.