Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enums donot work at PHP5.3.8 #10

Open
GoogleCodeExporter opened this issue Feb 29, 2016 · 4 comments
Open

Enums donot work at PHP5.3.8 #10

GoogleCodeExporter opened this issue Feb 29, 2016 · 4 comments

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 26 Aug 2012 at 1:11

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 26 Aug 2012 at 5:40

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 26 Aug 2012 at 7:36

@GoogleCodeExporter
Copy link
Author

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

Original comment by [email protected] on 26 Aug 2012 at 9:55

@GoogleCodeExporter
Copy link
Author

Still doesn't work in r44. But I've developed fix (in attachment)

Original comment by [email protected] on 1 Mar 2013 at 6:48

Attachments:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant