Reputation: 1789
Is there anyway to configure WCF endpoint/binding to send the data "as-is" without wrapping as a soap message (with the Envelope tag, etc.)?
I'm trying to send an xml using WCF and its ended up wrapped as a soap and i would like that the server side would get it as plain xml (exactly as the original) because i can't change the server side at this point.
Upvotes: 1
Views: 2558
Reputation: 754448
Check out the excellent screen cast series by Pluralsight, which covers all of WCF REST extensively:
Specifically, there's on screen cast on:
Upvotes: 3
Reputation: 511
There is a write up on MSDN for "POX" (plain old xml), but I haven't tried it out. (http://msdn.microsoft.com/en-us/library/aa395208.aspx)
I was able to use the answer from a REST/SOAP stackoverflow question to return plain text (which I assume could be xml): REST / SOAP endpoints for a WCF service
Upvotes: 1