Re: XMLRPC Question
- From: Michael Taras <michaeltaras@xxxxxxxxx>
- Date: Mon, 7 Jul 2008 22:18:41 -0500
Michael Neumann wrote:
Michael Taras wrote:
<transit>0.089925</transit>I think your analysis is correct. The server is returning the plain XML
So after that, I set out to see if I could get the same information from
from /usr/local/lib/ruby/1.8/net/http.rb:1032:in `request'
not sure. This is my first time messing with any xmlrpc stuff.
and not a HTTP request. Btw, what did you enter in telnet? And what did
you got as a result from telnet?
XML-RPC is usually served via HTTP. IIRC it is even required. If you use
XML-RPC not over HTTP, then you need to fetch the response yourself (you
can use plain sockets) and then invoke the parser on it yourself. But
it's probably easier to take a look at the server, because it's very
uncommon to not use HTTP!
And btw, are you sure that the XML shown above is valid XML-RPC? AFAIK
it's not! Yeah, it's not XML-RPC ;-)
Regards,
Michael
Thank you very much for the response.
So what I entered into telnet was just: <ping></ping>
And I got out exactly what I posted in the original post, which
apparently isn't even valid XML-RPC :) I will definitely check that
stuff out and see what's up.
In case I'm not able to get anything on the server side changed, how
exactly would i go about making an XML-RPC call using sockets? I'm not
really sure how to encode the xml in the request or anything of that
sort. So some general direction would be greatly appreciated.
@Eric
I broke out tcpdump and examined the request. From what I could tell it
was just an HTTP POST. I really have no experience with tcpdump so I
could have been wrong.
Thanks everyone for all the help so far.
-Michael
--
Posted via http://www.ruby-forum.com/.
.
- References:
- XMLRPC Question
- From: Michael Taras
- Re: XMLRPC Question
- From: Michael Neumann
- XMLRPC Question
- Prev by Date: Re: emacs-mode for ruby?
- Next by Date: [ANN][ADV] Ruby Hoedown 2008 - Hotel information, group/student discounts, and more!
- Previous by thread: Re: XMLRPC Question
- Next by thread: Re: XMLRPC Question
- Index(es):
Relevant Pages
|