?

Log in

ms_dot_net

Accessing an XML-RPC service

« previous entry | next entry »
Aug. 11th, 2008 | 05:35 pm
location: Work
mood: frustratedfrustrated
music: Með suð í eyrum við spilum endalaust — Sigur Rós
posted by: owenblacker in ms_dot_net

I'm trying to access an XML-RPC service from C# that I'm building. I've had absolutely no response from my message on the XML-RPC.net YahooGroup, so I started looking at the only other .Net XML-RPC class library out there: XmlRpcCS, which is only confusing me further.

The cause of my problems appears to be that XML-RPC.Net seems to require all its proxy objects to be structs. I, however, would like to use class objects, so I can add other functionality into the classes (constructors, the ability to have properties that are masked from the XML-RPC output and so on).

Now if this were XML serialisation, I would use the attributes that control XML serialisation, such as [XmlIgnore]. Without rewriting half of the class library, though (which would seem to defeat the purpose of using it!), I can't do something like that.

Does anyone here have any experience of using an XML-RPC library for .Net?

(Cross-posted to csharp.)

Link | Leave a comment | Share

Comments {1}

owenblacker

(no subject)

from: owenblacker
date: Feb. 27th, 2009 05:38 pm (UTC)
Link

For future reference, the code we ended up using was Clemens Vaster's sample code, implementing XML-RPC in WCF.

His blog post is at http://blogs.msdn.com/clemensv/archive/2007/08/21/xml-rpc-with-wcf.aspx, though I can only get that from the Google Cache at the moment.

We needed to make a couple of minor edits, partly because the sample code wasn't quite conforming to the XML-RPC spec and partly because the third party XML-RPC interface wasn't either ;o)

Reply | Thread