Php 为复杂类型定义一个类

Php 为复杂类型定义一个类,php,xml,soap,Php,Xml,Soap,我正在使用php的SoapClient。我的classmap可以工作,除非遇到这种特殊的复杂类型: <xs:complexType mixed="true" name="Text"> <xs:choice maxOccurs="unbounded" minOccurs="0"> <xs:element name="values" type="xs:string"/> <xs:element name="a" typ

我正在使用php的
SoapClient
。我的
classmap
可以工作,除非遇到这种特殊的复杂类型:

<xs:complexType mixed="true" name="Text">
    <xs:choice maxOccurs="unbounded" minOccurs="0">
        <xs:element name="values" type="xs:string"/>
        <xs:element name="a" type="ti:a"/>
        <xs:element ref="ti:br"/>
        <xs:element name="strong" type="ti:strong"/>
        <xs:element name="ul" type="ti:ul"/>
    </xs:choice>
</xs:complexType>
这里有一个指向WSDL的链接

我非常感谢你的帮助。我可以提供更多的代码,但希望你能解决这个问题

我猜我没有进一步处理类层次结构的

class Text
{
    protected $values = null;
    protected $a = null;
    protected $br = null;
    protected $strong = null;
    protected $ul = null;

    public function __construct($values, $a, $br, $strong, $ul)
    {
      $this->values = $values;
      $this->a = $a;
      $this->br = $br;
      $this->strong = $strong;
      $this->ul = $ul;
    }
}