PHP Classes

Is there a way to create WSDL for more than one class?

Recommend this page to a friend!

      PHP WSDL Generator  >  All threads  >  Is there a way to create WSDL for...  >  (Un) Subscribe thread alerts  
Subject:Is there a way to create WSDL for...
Summary:Is there a way to create WSDL for more than one class?
Messages:3
Author:Vladimir
Date:2013-12-11 16:53:17
Update:2013-12-12 10:37:17
 

  1. Is there a way to create WSDL for...   Reply   Report abuse  
Picture of Vladimir Vladimir - 2013-12-11 16:53:17
Is there a way to create WSDL for more than one class at once?

I have a complex class hierarchy, can I create WSDL with your script for more than one class?

  2. Re: Is there a way to create WSDL for...   Reply   Report abuse  
Picture of Protung Dragos Protung Dragos - 2013-12-11 18:36:45 - In reply to message 1 from Vladimir
You can not (and should not) combine 2 classes into one WSDL out of the box.
You can of course create 2 different WSDL files.

If really do want to create one WSDL from multiple sources you can extend "PHP2WSDL\PHPClass2WSDL" to accept an array of classes and loop over them in generateWSDL().
If you do this you may have a hard time setting up the SoapServer in PHP. One class per WSDL easier.

  3. Re: Is there a way to create WSDL for...   Reply   Report abuse  
Picture of Vladimir Vladimir - 2013-12-12 10:37:17 - In reply to message 2 from Protung Dragos
Thanks for your reply - I will try to create one WebService that includes everything I need in a WSDL.

 
For more information send a message to info at phpclasses dot org.