Comments (7)
What is the reason to remove constructor?
from wsdl-creator.
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.
from wsdl-creator.
I don't know I exactly understand you, but class \WSDL\WSDLCreator
has noting to do with the SoapServer. This class is only used to the generate WSDL document.
from wsdl-creator.
Yes you are right but why this WSDL is generated?
from wsdl-creator.
You mean why on SOAP request the WSDLCreator
object is created? In example https://github.com/piotrooo/wsdl-creator/blob/master/examples/SimpleExampleSoapServer.php when you want to show service information by the renderWSDLService
method you must have this object. If you don't want to render service information this class can be in the if
structure:
if (isset($_GET['wsdl'])) {
$wsdl = new WSDL\WSDLCreator('SimpleSoapServer', 'http://localhost/wsdl-creator/examples/SimpleExampleSoapServer.php');
$wsdl->setNamespace("http://foo.bar/");
$wsdl->renderWSDL();
exit;
}
And this create object only on http://localhost/wsdl-creator/examples/SimpleExampleSoapServer.php?wsdl
.
from wsdl-creator.
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.
from wsdl-creator.
You are mean the magic methods are also generated with normal methods? OK napisz.
from wsdl-creator.
Related Issues (20)
- object + object HOT 2
- Doctrine entity HOT 1
- Complex type defenitions problems HOT 1
- Object Type dont work whith various class
- Problem wraper
- Complex type HOT 1
- return std object HOT 1
- Set nillable to false ?
- remove XSD:type HOT 1
- Next planned release HOT 1
- Quick start ? HOT 1
- Support for minOccurs and maxOccurs
- Cache annotations
- duplicate element definitions HOT 4
- How to return array of objects with defined class
- Please don't use dev dependancies HOT 1
- @WebParam header doesn't work
- Add GitHub Actions support
- Run code for 8.0 and 8.1
- GitHub features
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wsdl-creator.