Author Topic: Constructing a raw HTML request  (Read 4987 times)

jit

  • Newbie
  • *
  • Posts: 11
  • Karma: 0
    • View Profile
Constructing a raw HTML request
« on: December 30, 2009, 03:56:24 »
I'm looking to communicate with the XML-RPC from an environment other than the ones with demo code, a non-web one. I'm more familiar with making SOAP calls, but my understanding of what's happening here is that we're simply building an XML request, sending it to QM, and then parsing the XML response.

Is there any documentation anywhere as to what a raw HTML request to the XML-RPC service would look like?

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: Constructing a raw HTML request
« Reply #1 on: January 06, 2010, 21:57:03 »
You would better be using one of the many libraries around that do the wrapping just for you.... no sense in reinventing the wheel. Which language are you using?

jit

  • Newbie
  • *
  • Posts: 11
  • Karma: 0
    • View Profile
Re: Constructing a raw HTML request
« Reply #2 on: January 07, 2010, 19:58:11 »
Using 4D. I got it working with the Python code, so I can see what you mean. The parsing is a little complicated.

Thanks for the support.  :)

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: Constructing a raw HTML request
« Reply #3 on: January 08, 2010, 11:59:29 »
What is 4D? it is strange that there is no XML-RPC library for it.....

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: Constructing a raw HTML request
« Reply #4 on: January 08, 2010, 12:03:22 »
If you want to write it from scratch, see http://www.scottandrew.com/xml-rpc/ - there is quite a bit of material.

QM uses a very simple tabular model for XML-RPC response data, so parsing the return data should be quite easy as long as you have support for XML.


jit

  • Newbie
  • *
  • Posts: 11
  • Karma: 0
    • View Profile
Re: Constructing a raw HTML request
« Reply #5 on: January 08, 2010, 18:14:27 »
What is 4D? it is strange that there is no XML-RPC library for it.....
www.4d.com

I've got plenty of tools to handle the communication, but you were right that the Python samples were the easiest path. I'm just one of those people who likes to do things the hard way sometimes.

QueueMetrics

  • Loway
  • Hero Member
  • *
  • Posts: 2999
  • Karma: 39
    • View Profile
    • QueueMetrics
Re: Constructing a raw HTML request
« Reply #6 on: January 08, 2010, 19:04:04 »
I understand - every coder would love to write from the scheduler upwards. :)