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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -