[Mono-dev] WebHttpBinding - Missing property ContentTypeMapper

lpinho lpinho at gmail.com
Wed Jul 24 15:32:32 UTC 2013


Hi,

 I'm developing an android/ios application using mono.

 I'm trying to consume a web service that uses raw content messages, I was
able to port an example using json.net and in standard .net I'm able to send
a request and receive a response.

 Using Mono for android I'm trying to port the .net code and I'm missing the
property ContentTypeMapper for the type WebHttpBinding. 

 At this time, I'm not defining the property and I keep getting the error:

-- System.InvalidCastException: Cannot cast from source type to destination
type.

 I'm not sure the problem is a consequence of the missing property, but it's
the only thing I've changed from the original working example.

 Is it possible to set the content type mapper anywhere else? Or is there a
newer version of mono that has this property?

Thanks,

Luis Pinho



--
View this message in context: http://mono.1490590.n4.nabble.com/WebHttpBinding-Missing-property-ContentTypeMapper-tp4660278.html
Sent from the Mono - Dev mailing list archive at Nabble.com.


More information about the Mono-devel-list mailing list