Giter VIP home page Giter VIP logo

Comments (7)

piotrooo avatar piotrooo commented on May 30, 2024

What is the reason to remove constructor?

from wsdl-creator.

stasicki avatar stasicki commented on May 30, 2024

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.

piotrooo avatar piotrooo commented on May 30, 2024

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.

stasicki avatar stasicki commented on May 30, 2024

Yes you are right but why this WSDL is generated?

from wsdl-creator.

piotrooo avatar piotrooo commented on May 30, 2024

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.

stasicki avatar stasicki commented on May 30, 2024

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.

piotrooo avatar piotrooo commented on May 30, 2024

You are mean the magic methods are also generated with normal methods? OK napisz.

from wsdl-creator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.