# Returning data from c++ daemon xmlrpc

**URL:** <https://forum.universal-robots.com/t/returning-data-from-c-daemon-xmlrpc/1149>\
**Category:** URCap Development\
**Created:** [September 5, 2017, 1:09pm UTC](https://forum.universal-robots.com/t/returning-data-from-c-daemon-xmlrpc/1149 "2017-09-05T13:09:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon58840761](https://avatars.discourse-cdn.com/v4/letter/a/e9c0ed/32.png) [@anon58840761](https://forum.universal-robots.com/u/anon58840761)\
**Post date:** [September 5, 2017, 1:09pm UTC](https://forum.universal-robots.com/t/returning-data-from-c-daemon-xmlrpc/1149/1 "2017-09-05T13:09:44Z")

</div>

As the Title says  
How do I retrieve complex data from an xmlprc run by the robot  
as I understand we can only get list of one type string[] or number[]

```
DataTest::DataTest(Data* data)
{
  this->_signature = "A:";
}

void DataTest::execute(xmlrpc_c::paramList const& paramList, xmlrpc_c::value * const retvalP)
{
  paramList.verifyEnd(0);
  std::vector<xmlrpc_c::value> dataTest;
  dataTest.push_back(xmlrpc_c::value_string("foo"));
  dataTest.push_back(xmlrpc_c::value_string("bar"));

  *retvalP = xmlrpc_c::value_array(dataTest);
}

```

The error i get is list cannot contain this data type: Variable String

pls how to solve this problem thanks.

---

<div class="post-metadata">

**Author:** ![anon58840761](https://avatars.discourse-cdn.com/v4/letter/a/e9c0ed/32.png) [@anon58840761](https://forum.universal-robots.com/u/anon58840761)\
**Post date:** [September 5, 2017, 1:24pm UTC](https://forum.universal-robots.com/t/returning-data-from-c-daemon-xmlrpc/1149/2 "2017-09-05T13:24:17Z")

</div>

I found out you cant define an array of string in urscript, so that’s is why it won’t be possible.

---

<div class="post-metadata">

**Author:** ![mbush](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/mbush/32/76_2.png) [@mbush](https://forum.universal-robots.com/u/mbush)\
**Post date:** [September 5, 2017, 3:17pm UTC](https://forum.universal-robots.com/t/returning-data-from-c-daemon-xmlrpc/1149/3 "2017-09-05T15:17:02Z")

</div>

@anon58840761 There is a feature request to support more complex lists such as list of lists as well as strings in lists. You might want to go vote on the request.

It can be found [here](http://forum.universal-robots.com/t/urscript-array-of-arrays-list-of-lists/363)
