tags:

views:

100

answers:

1

I'm in deep trouble because I wrote a POX service w/ WCF and WebInovke and specified the input type as XElement because we need several different types of data coming into. I'm in trouble now because the service throws a 400 Bad Request if you submit an xml infoset w/ processing instructions. When I tried changing it to XDocument, the service no longer works period.

Can someone please help me?

A: 

XElement should work. It implements IXmlSerializable and so the DataContractJsonSerializer should have no problem serializing instances of it as is documented here on MSDN.

Can you post any exception information you're getting and/oryour code so we can try and help figure out what's wrong?

Drew Marsh