[aerogear-dev] [Pipe] Wrapped Response
Tiago Resende
tiagor87 at gmail.com
Thu Mar 6 13:21:03 EST 2014
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 at gmail.com' } };
2014-03-06 15:14 GMT-03:00 Daniel Passos <daniel at passos.me>:
> Well, It's not a valid JSON
>
> -- Passos
>
>
> On Thu, Mar 6, 2014 at 2:57 PM, Tiago Resende <tiagor87 at 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 at 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 at 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 at 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 at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>>
>
>
> _______________________________________________
> aerogear-dev mailing list
> aerogear-dev at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20140306/1689840d/attachment.html
More information about the aerogear-dev
mailing list