PHP Classes

Package doesn't seem to generate XSD (XML Schema Definition)

Recommend this page to a friend!

      PHP WSDL Generator  >  All threads  >  Package doesn't seem to generate XSD...  >  (Un) Subscribe thread alerts  
Subject:Package doesn't seem to generate XSD...
Summary:Package doesn't seem to generate XSD (XML Schema Definition)
Messages:4
Author:Vladimir
Date:2013-12-12 14:01:58
Update:2013-12-17 22:53:07
 

  1. Package doesn't seem to generate XSD...   Reply   Report abuse  
Picture of Vladimir Vladimir - 2013-12-12 14:01:58
The package doesn't seem to generate XSD part of WSDL, it only outputs empty XSD definition:

<xsd:schema targetNamespace="localhost">
<xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
</xsd:schema>

  2. Re: Package doesn't seem to generate XSD...   Reply   Report abuse  
Picture of Protung Dragos Protung Dragos - 2013-12-15 17:15:20 - In reply to message 1 from Vladimir
Maybe you don't have complex types.

you need to give me more info on this one.

  3. Re: Package doesn't seem to generate XSD...   Reply   Report abuse  
Picture of Vladimir Vladimir - 2013-12-17 13:17:53 - In reply to message 2 from Protung Dragos
Hi

I have complex types like classes that contain other clasess or methods that have other classes as input parameters.

They are all referred to as "anyType" in WSDL.

Does script supports ComplexType and SequenceType strategies as we they exist in Zend Framework?

$auto = new Zend_Soap_AutoDiscover('Zend_Soap_Wsdl_Strategy_ArrayOfTypeSequence');
$auto->setClass('PatientViewModel');
$auto->handle();

Where PatientViewModel class has a public property diagnosis which is a class or a method that returns the PatientViewModel class.

  4. Re: Package doesn't seem to generate XSD...   Reply   Report abuse  
Picture of Protung Dragos Protung Dragos - 2013-12-17 22:53:07 - In reply to message 3 from Vladimir
Yes, everything that you described is supported, but you need to make sure the annotations are present for the class properties and they are public.