PHP - Llenar arreglo consumiendolo desde nusoap

 
Vista:

Llenar arreglo consumiendolo desde nusoap

Publicado por Cristian (42 intervenciones) el 02/01/2013 21:33:14
Veran tengo el siguiente web service:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:lic="http://localhost/SOAP/NuSOAP/Licencia" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
   <soapenv:Header/>
   <soapenv:Body>
      <lic:CUOrecibeTramite soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
         <estado xsi:type="xsd:string">S</estado>
         <tramite xsi:type="lic:tramite">
            <!--You may enter the following 3 items in any order-->
            <notaria xsi:type="lic:notaria">
               <!--You may enter the following 4 items in any order-->
               <codigonotaria xsi:type="xsd:string">N00002</codigonotaria>
               <razonsocial xsi:type="xsd:string">NOTARIA DE PRUEBA</razonsocial>
               <direccion xsi:type="xsd:string">GAMARRA 680 CHUCUITO CALLAO</direccion>
               <ubigeo xsi:type="xsd:string">010101</ubigeo>
            </notaria>
            <solicitante xsi:type="lic:solicitante">
               <!--You may enter the following 7 items in any order-->
               <tipodocumento xsi:type="xsd:string">DNI</tipodocumento>
               <dni xsi:type="xsd:string">10646000</dni>
               <nombres xsi:type="xsd:string">CARLOS ENRIQUE</nombres>
               <apellidopaterno xsi:type="xsd:string">QUISPE</apellidopaterno>
               <apellidomaterno xsi:type="xsd:string">SALAZAR</apellidomaterno>
               <correoelectronico xsi:type="xsd:string">ceqs@hotmail.com</correoelectronico>
               <numerocelular xsi:type="xsd:string">965373727</numerocelular>
            </solicitante>
            <empresa xsi:type="lic:empresa">
               <!--You may enter the following 12 items in any order-->
               <tiposociedad xsi:type="xsd:string">01</tiposociedad>
               <numerotitulo xsi:type="xsd:string">100</numerotitulo>
               <razonsocial xsi:type="xsd:string">Mi Empresa de Prueba SA</razonsocial>
               <denominacionabreviada xsi:type="xsd:string">MIEMPSA</denominacionabreviada>
               <ubigeo xsi:type="xsd:string">010101</ubigeo>
               <objetosocial xsi:type="xsd:string">Esta es una empresa de prueba</objetosocial>
               <tipoaporte xsi:type="xsd:string">1</tipoaporte>
               <montocapitalsocial xsi:type="xsd:decimal">1000.00</montocapitalsocial>
               <valoraccion xsi:type="xsd:decimal">0.00</valoraccion>
               <tipocancelacion xsi:type="xsd:string">2</tipocancelacion>
               <porcentajeCancelado xsi:type="xsd:int">100</porcentajeCancelado>
               <Arreglodesocios xsi:type="lic:Arreglodesocios" soapenc:arrayType="lic:socios[]"/>
            </empresa>
         </tramite>
      </lic:CUOrecibeTramite>
   </soapenv:Body>
</soapenv:Envelope>



En : <Arreglodesocios xsi:type="lic:Arreglodesocios" soapenc:arrayType="lic:socios[]"/>, ahi esta mi arreglo, actualmente lo estoy llenando con el siguiente codigo:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php
 
require_once('../lib/nusoap.php');
try{
 
$oSoapClient = new nusoap_client('http://localhost/SOAP/NuSOAP/Licencia/serverTramite.php?wsdll','wsdl');
$aParametros =  array('estado'=>'S',"tramite" =>
					array("notaria" => array('codigonotaria'=>'N00002',
										'razonsocial'=>'NOTARIA DE PRUEBA',
										'direccion'=>'GAMARRA 680 CHUCUITO CALLAO',
										'ubigeo'=>'010101'),
 
 
					"solicitante" => array('tipodocumento'=>'DNI',
										'dni'=>'10646000',
										'nombres'=>'CARLOS ENRIQUE',
										'apellidopaterno'=>'QUISPE',
										'apellidomaterno'=>'SALAZAR',
										'correoelectronico'=>'ceqs@hotmail.com',
										'numerocelular'=>'965373727'),
 
 
					 "empresa" => array('tiposociedad'=>'01',
										'numerotitulo'=>'100',
										'razonsocial'=>'Mi Empresa de Prueba SA',
										'denominacionabreviada'=>'MIEMPSA',
										'ubigeo'=>'010101',
										'objetosocial'=>'Esta es una empresa de prueba',
										'tipoaporte'=>'1',
										'montocapitalsocial'=>'1000',
										'valoraccion'=>'0',
										'tipocancelacion'=>'2',
										'porcentajeCancelado'=>'100',
 
										"Arreglodesocios" => array("10646000","01","CARLOS ENRIQUE","QUISPE","SALAZAR","MI CASA","1000.00"))));
 
 
 
 
 
$aRespuesta = $oSoapClient->call('CUOrecibeTramite',$aParametros);
 
//echo $aRespuesta;
//var_dump($aRespuesta);
var_dump($aRespuesta);
//echo $aRespuesta;
 
} catch (Exception $e){
         echo $e->getMessage();
    }
?>



Esto es un reto, no me logra llenar el arreglo, algunos de ustedes tiene una sugerencia?? una ayuda, etc
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder