What is the 'd2p1' on the xml response

1,195 views
Skip to first unread message

Rui Marques

unread,
Mar 25, 2011, 11:20:20 AM3/25/11
to ServiceStack .NET Open Source REST Web Services Framework
Hi,

Why do we have this?

<d2p1:Customer>

Where does 'd2p1' came from?


Thanks in advance,

Rui (ruionwriting)

Demis Bellot

unread,
Mar 25, 2011, 11:25:32 AM3/25/11
to servic...@googlegroups.com
This is automatically genrated by the .NET's XML DataContractSerializer for Generic built-in types.
Note: ServiceStack doesn't actually do anything with the XML output, its comes straight from the DataContractSerializer mouth :)

To get around it (and get prettier XML output), unfortunately you need to use annotated collection classes, which you can see examples of here:

Cheers,

jokecamp

unread,
Jul 2, 2012, 4:05:28 PM7/2/12
to servic...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages