PHP nuSOAP complexType within element tag -
i have build following wsdl structure:
<xs:element name="sobre"> <xs:complextype> <xs:sequence> <xs:element minoccurs="0" maxoccurs="1" name="encabezado" type="tns:encabezadosobre"/> <xs:element minoccurs="0" maxoccurs="unbounded" name="cuerpo" type="tns:cuerposobre"/> </xs:sequence> </xs:complextype> </xs:element>
but looks nusoap architecture not allow me that.
with following code:
$server->wsdl->addcomplextype( 'sobre', 'complextype', 'struct', 'sequence', '', array( 'encabezado' => array('name' => 'aem:encabezado', 'type' => 'tns:encabezadosobre'), 'cuerpo' => array('name' => 'aem:cuerpo' , 'type' => 'tns:cuerposobre') ) );
i have following structure:
<xsd:complextype name="sobre"> <xsd:sequence> <xsd:element name="encabezado" type="tns:encabezadosobre"/> <xsd:element name="cuerpo" type="tns:cuerposobre"/> </xsd:sequence> </xsd:complextype>
i have found similar issue in here answers in there did not me out.
so sum need create element named "sobre", , complextype within element.
i have average of 20 webservices same problem rebuild using framework or php native soap last last last option.
try this:
$server->wsdl->addcomplextype( 'sobre', 'complextype', 'struct', 'sequence', '', array( 'encabezado' => array('name' => 'aem:encabezado', 'minoccurs' => '0', 'maxoccurs' => '1', 'type' => 'tns:encabezadosobre'), 'cuerpo' => array('name' => 'aem:cuerpo', 'minoccurs' => '0', 'maxoccurs' => 'unbounded', 'type' => 'tns:cuerposobre') )
);
Comments
Post a Comment