Groups
Groups
Sign in
Groups
Groups
ServiceStack .NET Open Source REST Web Services Framework
Conversations
About
Send feedback
Help
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 AM
3/25/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 AM
3/25/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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:
https://github.com/ServiceStack/ServiceStack.Contrib/blob/master/src/ServiceStack.ServiceInterface/ServiceModel/CollectionTypes.cs
Cheers,
--
- Demis
http://twitter.com/demisbellot
http://www.servicestack.net/mythz_blog
jokecamp
unread,
Jul 2, 2012, 4:05:28 PM
7/2/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to servic...@googlegroups.com
CollectionTypes.cs was moved to here:
https://github.com/ServiceStack/ServiceStack/blob/master/src/ServiceStack.Interfaces/ServiceInterface.ServiceModel/CollectionTypes.cs
\
Thanks mythz
Reply all
Reply to author
Forward
0 new messages