Sign in
MSDN Blogs
Microsoft Blog Images
More ...
Browse by Tags
Search
Archives
Archives
February 2013
(1)
January 2013
(1)
July 2012
(1)
June 2012
(1)
February 2012
(1)
June 2011
(1)
September 2010
(1)
June 2010
(1)
May 2010
(1)
March 2010
(1)
January 2010
(1)
December 2009
(1)
November 2009
(3)
October 2009
(1)
August 2009
(1)
July 2009
(2)
June 2009
(3)
May 2009
(1)
April 2009
(4)
Tags
.net
behaviors
configuration
datacontractresolver
datacontractserializer
errors
IIS
metadata
odata
paging
refreshsection
Serialization
svcutil
testing
wcf
webapi
websocket
wsdl
xmlserializer
xsd
Common Tasks
Blog Home
Email Blog Author
RSS for posts
RSS for comments
Tagged Content List
Blog Post:
Turning XML into XmlSerializer CLR Types with xsd.exe
Youssef Moussaoui - MSFT
Here’s a common dilemma .NET developers encounter when working with XML: I have some XML that I want to represent in a strongly typed way, but I don’t have any XSDs to represent that XML. How do I turn that XML into CLR types that I can serialize? Of course, I could go about manually...
on
1 Jun 2010
Blog Post:
Using XML Schema Import and Export for XmlSerializer
Youssef Moussaoui - MSFT
In a previous post, I outlined how you could import and export the XML schema for a type that you’re serializing with DataContractSerializer. Here’s how to do the same thing if you’re serializing objects with XmlSerializer: static void RoundTripXmlMetadata( Type type) { XmlSchemas schemas...
on
13 May 2010
Blog Post:
How to get minOccurs = 0 in the schema for XmlSerializer struct members
Youssef Moussaoui - MSFT
If you try exporting the following type into an XML schema: public class Employee { public DateTime BirthDate { get ; set ; } } And you happen to be using XmlSerializer, you may be surprised to find that the schema gets exposed like this: <xs:schema elementFormDefault="qualified...
on
22 Mar 2010
Blog Post:
Reusing Types in Referenced Assemblies with svcutil's /r Switch
Youssef Moussaoui - MSFT
Everyone’s entitled to their own personal favorite svcutil switch, but mine is the “/reference” switch, or “/r” for short. It allows you to avoid generating a type again if it’s already present in a referenced assembly. Here’s how it works: Let’s say you have an assembly Foo.dll that already contains...
on
9 Oct 2009
Blog Post:
Configuring the Client Endpoint for svcutil
Youssef Moussaoui - MSFT
One of the more common questions I get is along these lines: I want to configure svcutil to use a particular binding. How do I do that? Usually, this happens for one of two reasons: 1) You’ve exposed your metadata with a secure binding, and need a way to generate proxy from it. 2...
on
12 May 2009
Blog Post:
Using XML Schema Import and Export for DataContractSerializer
Youssef Moussaoui - MSFT
For many WCF developers, service metadata import and export is a magical thing. You start your service with a serviceMetadataBehavior, set httpGetEnabled to true or add an IMetadataExchange endpoint, and metadata gets automatically generated for you. Then you run svcutil or use Add Service Reference...
on
29 Apr 2009
Page 1 of 1 (6 items)