[Mono-dev] WCF REST POST POCO, and null value

Joe Dluzen jdluzen at gmail.com
Wed Nov 24 15:42:58 EST 2010


Hi all,

I've recently been familiarizing myself with the
System.ServiceModel.Web namespace, as I'm looking to do some WCF REST
style development.

I've found 2 things that appear to be bugs, and am wondering if there
are workarounds, or if I can [attempt to] patch it.

1. When passing an object in the body of a POST call, I get "Unhandled
Exception: System.NotImplementedException: parameter user is not
contained in the URI template blah 0 0". IHello.SayHi2 in the included
code.

2. When passing null in the URI to a GET call with a named value, I
get "Unhandled Exception: System.ArgumentException: The argument name
value collection does not contain non-null value for 'BLAH'". However,
when I GET in the browser, http://localhost:1337/Joe?age=1337 leaving
off the "blah", it works fine. IHello.SayHi in the included code.

On Win7 64, Mono 2.8.1. The code works without issue on MS.NET.

Code:
Shared library: http://pastebin.com/WSfiaj63
Server: http://pastebin.com/veJ9JubX
Client: http://pastebin.com/jniuHsiz

Thanks,
Joe


More information about the Mono-devel-list mailing list