bensmans / 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

Enums donot work at PHP5.3.8 #10

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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

Original issue reported on code.google.com by christia...@gmail.com on 26 Aug 2012 at 1:11

GoogleCodeExporter commented 8 years ago
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 revision 43 
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).

Original comment by schickwa...@googlemail.com on 26 Aug 2012 at 5:40

GoogleCodeExporter commented 8 years ago
Ok, I saw this must be an error from the PHP SoapClient object. Please review 
the latest revision 44, it may fix the error.

I assume you use Windows?

Original comment by schickwa...@googlemail.com on 26 Aug 2012 at 7:36

GoogleCodeExporter commented 8 years ago
Currently i am testing at win7/64 bit but later will use it also at redhat.

Original comment by christia...@gmail.com on 26 Aug 2012 at 9:55

GoogleCodeExporter commented 8 years ago
Still doesn't work in r44. But I've developed fix (in attachment)

Original comment by braba...@gmail.com on 1 Mar 2013 at 6:48

Attachments: