Re: XMLRPC Question



Michael Neumann wrote:
Michael Taras wrote:
<transit>0.089925</transit>
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.
I think your analysis is correct. The server is returning the plain XML
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/.

.



Relevant Pages

  • Re: SQL Qeries via XMLRPC
    ... Using XML-RPC is a great way of exposing services and data. ... Note that using XML-RPC does not mean HTTP. ... The authentication issue can be solved ... language portability. ...
    (comp.lang.python)
  • Re: MFC, ISAPI, and XML-RPC?
    ... program running on the web server. ... XML-RPC data, WinInet to handle the HTTP details, and XML-RPC is a very ... using C++ and MFC? ...
    (microsoft.public.vc.mfc)
  • Re: Multiple XML-RPC calls over the same connection?
    ... The default implementation uses HTTP as a transport, ... and response parameters into an XML stream. ... In one of my projects I actually use XML-RPC over SSH and deal with ... the authentication etc at the SSH level. ...
    (comp.lang.python)
  • Authentication for XML-RPC Calls
    ... The only documentation regarding doing authentication for XML-RPC I ... "Both the HTTP and HTTPS transports support the URL syntax extension ... the remote server requires a Basic Authentication user and password." ...
    (comp.lang.python)
  • Re: IIS returns status code 200 even if XML is invalid
    ... ASMX requests are handled by ASP.NET ... when there is a problem with an XML being sent to the server ... The request is not being handled by the "designated method" which ... That HTTP 1.1 200 OK return code means the the HTTP request/connection ...
    (microsoft.public.dotnet.framework.webservices)