Clangon
Clangon

Reputation: 1408

What is the syntax that should be used for WebMessageBodyStyle.Wrapped?

I can't find any documentation on the syntax for a HttpWebRequest wrapped body.

Upvotes: 1

Views: 586

Answers (2)

Rebecca
Rebecca

Reputation: 14402

If your method looks like this:

string Echo(string echo)
{
   return echo;
}

Then the Wrapped request body looks like this in Json:

{"echo":"test"}

If you change the setting to "Bare" then it would look like this:

"test"

Upvotes: 0

Wilfred Knievel
Wilfred Knievel

Reputation: 3245

I'm not 100% sure if you are looking for:

Upvotes: 1

Related Questions