# XMLHttpRequest. Array

**URL:** <https://foros.velneo.com/t/xmlhttprequest-array/9725>\
**Category:** Velneo\
**Created:** [12 Enero, 2018 17:24 UTC](https://foros.velneo.com/t/xmlhttprequest-array/9725 "2018-01-12T17:24:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tecnicos](https://avatars.discourse-cdn.com/v4/letter/t/76d3ee/32.png) [@tecnicos](https://foros.velneo.com/u/tecnicos)\
**Post date:** [12 Enero, 2018 17:24 UTC](https://foros.velneo.com/t/xmlhttprequest-array/9725/1 "2018-01-12T17:24:11Z")

</div>

Estoy realizando unas petición por XMLHttpRequest.

var sr = ‘…+  
‘\<soap:addSubscriber soapenv:encodingStyle=“[http://schemas.xmlsoap.org/soap/encoding/](http://schemas.xmlsoap.org/soap/encoding/)”\>’ +  
‘\<functionOptions xsi:type=“xsd:anyType”\>’ +  
‘\<apikey xsi:type=“xsd:anyType”\>’ + theRoot.varToString(“API\_KEY”) + ‘\</apikey\>’ +  
‘\<listID xsi:type=“xsd:anyType”\>’ + theRoot.varToString(“LIST\_ID”) + ‘\</listID\>’ +  
‘\<email xsi:type=“xsd:anyType”\>’ + theRoot.varToString(“EMAIL”) + ‘\</email\>’ +  
‘\<first\_name xsi:type=“xsd:anyType”\>’ + theRoot.varToString(“FIRST\_NAME”) + ‘\</first\_name\>’ +  
‘\<last\_name xsi:type=“xsd:anyType”\>’ + theRoot.varToString(“LAST\_NAME”) + ‘\</last\_name\>’ +  
‘\<cellphone xsi:type=“xsd:anyType”\>’ + theRoot.varToString(“CELLPHONE”) + ‘\</cellphone\>’ +  
‘\<telephone xsi:type=“xsd:anyType”\>’ + theRoot.varToString(“TELEPHONE”) + ‘\</telephone\>’ +  
‘\<status xsi:type=“xsd:anyType”\>’ + theRoot.varToString(“STATUS”) + ‘\</status\>’ +  
‘\</functionOptions\>’ +  
…  
El paso de parámetros me va perfecto.  
Para explicarme le paso la dirección de correo a un etiqueta ‘email’ mediante la variable VAR\_EMAIL…  
\<email xsi:type=“xsd:anyType”\>’ + theRoot.varToString(“VAR\_EMAIL”) + ‘\</email\>’  
Ahora tengo la necesidad de pasar información a una etiqueta ‘tags’ que es un array, es decir, quiero pasarle los valores: 17,15,8 y 6  
¿COMO PUEDO HACERLO?

---

<div class="post-metadata">

**Author:** ![aztecmexico](https://yyz1.discourse-cdn.com/flex035/user_avatar/foros.velneo.com/aztecmexico/32/3498_2.png) [@aztecmexico](https://foros.velneo.com/u/aztecmexico)\
**Post date:** [15 Enero, 2018 08:12 UTC](https://foros.velneo.com/t/xmlhttprequest-array/9725/2 "2018-01-15T08:12:46Z")

</div>

Buen día J. Carlos

Pudieras compartir la url del ws que consumes?

Para analizar el método que necesitas e indicarte cómo lo haría.

Saludos.
