Lefora Free Forum

mrchameleon's Blog

Member For: 6 months, 3 weeks
Posts: 2

Member of: Diybetfairbots Forum.
Top Post By mrchameleon (most thumbs up):

No posts received thumbs up, next time you see a good one, give some respect and thumb it up.

Recent Posts by mrchameleon:

Re: API request XML - hand rolled

May 18, 2009 by mrchameleon

Hi

Thanks bennean. Yes I have done the VS wsdl thing, and it all works. The reasons I want to hand-roll is partly for performance, partly to educate myself, and partly to make my code base more language and o/s portable.

Thanks birchy.

I think my first question is: "Is the XML sent as a WebRequest POST merely a byte-encoded string"? Or is there somethong more complex going on?

Thanks

Chris

Re: API request XML - hand rolled

May 18, 2009 by mrchameleon

Hi

I'm new to the Betfair API, but have used the .NET tutorial in the Betfair Developers Forum to generate a working C# bot application (in a rather "paint-by- numbers" fashion).

For no particularly good reason I now want to hand-roll a C# .NET Betfair API application. I have used some of the XML snippets above to try and generate a login, but my requests are returned with a Java Exceception - "MethodNotFound" or somesuch. I suspect it has to do with my XML construction - I just generate a (XML) string, encode it and send it with the .NET WebClient object. Am I missing something about XML creation?

I know this isn't quite on-topic, but I'd be grateful for a pointer or two.

Thanks

Chris