XmlRpc and C#

Posted by Dedric Mauriac on September 30th, 2006

A friend of mine had started asking me about some code I had made for him a few months back.
I had totally forgotten about it.
I dug it up on my old computer and found a nice XmlRpc class that I wrote in C#.
The problem was that the first connection made to talk to objects in SecondLife from a web page were doing great, but each alternate request afterwards was bombing.
The server committed a protocol violation. Section=ResponseStatusLine
I was able to duplicate his problem as well.
I tried a few things to fix it. Things like, forcing the http request to 1.0, and using unsafe headers.
Eventually, I discovered that the fix was to set KeepAlive connections to false.
It turns out that the SecondLife xml-rpc server is sending an extra byte after the body of the documents it sends.
This messes up successive requests that are still held in the application domain.
So all is fixed now.
I even posted my C# code to the wiki so others can benefit from it.
http://lslwiki.com/lslwiki/wakka.php?wakka=XMLRPCImplementations#csharp
End of Line

Arcata. This entry has been viewed 1343 times.


Leave a Comment

You're not logged in. If you want to post a comment, please log in.