Hi Tiago,
In this case as Summers said you need use DataRoot. See "Nested Data in
Result" section in Pipe document[1]
[1]
-- Passos
On Thu, Mar 6, 2014 at 3:21 PM, Tiago Resende <tiagor87(a)gmail.com> wrote:
I will write it in JSON. I gave a bad example.
Imagine my method in WS is called "GetUserById", so my response for this
method, would be:
{ GetUserByIdResponse: { Login: 'Tiago', Email: 'tiagor87(a)gmail.com' }
};
2014-03-06 15:14 GMT-03:00 Daniel Passos <daniel(a)passos.me>:
Well, It's not a valid JSON
>
> -- Passos
>
>
> On Thu, Mar 6, 2014 at 2:57 PM, Tiago Resende <tiagor87(a)gmail.com> wrote:
>
>> When a response is wrapped, it comes encapsulated, just like this:
>>
>> - <MethodName>Response
>> <RealResponse>
>>
>>
>>
>> On Thursday, March 6, 2014, Daniel Passos <daniel(a)passos.me> wrote:
>>
>>> Hi Tiago,
>>>
>>> I not sure what you mean about wrapper. But, if you JSON is not equals
>>> to your model you can annotate your model using
>>> @SerializedName("name_of_your_json_property")
>>>
>>> Please, gist[1] your Android model and your JSON
>>>
>>> [1]
https://gist.github.com/
>>>
>>> -- Passos
>>>
>>>
>>> On Thu, Mar 6, 2014 at 1:37 PM, Tiago Resende
<tiagor87(a)gmail.com>wrote:
>>>
>>>> Hi guys, My name is Tiago, I am an old Daniel Passos's student from
>>>> Brazil.
>>>>
>>>> I'm new here and have a lot of noob questions, so, take it easy and
>>>> forgive my english.
>>>>
>>>> I am trying to integrate AG for Android to a WCF Service on .Net C#,
>>>> but all service responses are configured as Wrapped, so AG isn't
working
>>>> properly.
>>>>
>>>> I just wanna know... Should I create Wrapped objects for every
>>>> endpoint, or is there another method to do it, some work around?
>>>>
>>>> Thanks everyone.
>>>>
>>>> --
>>>> *Tiago de Carvalho Resende*
>>>> Desenvolvedor
>>>>
>>>> "O importante não é saber fazer,
>>>>
>>>> é saber de onde copiar."
>>>>
>>>> por Bernardo Esbérard
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> aerogear-dev mailing list
>>>> aerogear-dev(a)lists.jboss.org
>>>>
https://lists.jboss.org/mailman/listinfo/aerogear-dev
>>>>
>>>
>>>
>>
>> --
>> *Tiago de Carvalho Resende*
>> Desenvolvedor
>>
>> "O importante não é saber fazer,
>>
>> é saber de onde copiar."
>>
>> por Bernardo Esbérard
>>
>>
>>
>>
>> _______________________________________________
>> aerogear-dev mailing list
>> aerogear-dev(a)lists.jboss.org
>>
https://lists.jboss.org/mailman/listinfo/aerogear-dev
>>
>
>
> _______________________________________________
> aerogear-dev mailing list
> aerogear-dev(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/aerogear-dev
>
--
*Tiago de Carvalho Resende*
Desenvolvedor
"O importante não é saber fazer,
é saber de onde copiar."
por Bernardo Esbérard
_______________________________________________
aerogear-dev mailing list
aerogear-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/aerogear-dev