I have this WDSL
<xsd:element name="elementname">
<xsd:complexType>
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1" ref="miref"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
Now I have to create that via nuSoap but I can't find anyway to omit de type and name on the complexType and set the complexType inside of an element.
So if I want to create an element I use this code:
$server->wsdl->AddElement(
array('name' => 'example1', 'type' => ''
)
);
And if I want to create a complexType this other:
$server->wsdl->addComplexType(
'example2',
'complexType',
'struct',
'all',
'',
array(
'id_user' => array('type' => '', 'maxOccurs' => '1', 'minOccurs' => '1'),
)
);
So this are my problems: 1] I need to put that complexType (example2) inside of the other element (example1). 2] The complexType shouldn't have his name inside the tag but the functions addComplexType() and addElement(), dosn't seem to work if I don't give them the Type and the Name. Also in the documentation is typified that it's need: attributes that must include name and type.