-
Notifications
You must be signed in to change notification settings - Fork 52
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
Remove __construct method from WSDL #5
Comments
What is the reason to remove constructor? |
As far as i know this method is called on object initialization by php SoapServer before object will do any web service called method. This is object internal method. There is no need to be callable by webservice consumer. If this method is declared in WSDL it is public and visible for webservice consumer, but is unuseful. |
I don't know I exactly understand you, but class |
Yes you are right but why this WSDL is generated? |
You mean why on SOAP request the
And this create object only on |
Yes that's all true. I think you did not understand me properly. This magic method __contruct should be in WSDLCreator class also could be in SimpleSoapServer class. But there is no reason to be on the list of methods in the webservice wsdl file. This method is specific for php. When You make webservice request by SOAP, before Your aplication will handle request, object of SimpleSoapServer class will be created automatically by the server software. It could be an php SoapServer http://www.php.net/manual/pl/class.soapserver.php or any other software. Możemy rozmawiać po polsku? Może wtedy uda mi się wyjaśnić o co mi chodzi. |
You are mean the magic methods are also generated with normal methods? OK napisz. |
Magic methods shuld be removed from WSDL.
The text was updated successfully, but these errors were encountered: