Author Topic: Bot Thoughts  (Read 8681 times)

0 Members and 1 Guest are viewing this topic.

Offline MyndFyre

  • Boticulator Extraordinaire
  • x86
  • Hero Member
  • *****
  • Posts: 4540
  • The wait is over.
    • View Profile
    • JinxBot :: the evolution in boticulation
Re: Bot Thoughts
« Reply #15 on: January 22, 2008, 09:00:52 pm »
A SOAP packet that does not represent an error has two XML tags surrounding the pure user-defined XML. What about that is ugly or verbose?
Dude, even Wikipedia knows how verbose it is, and I totally didn't write that.

Example:
http://www.clan-aoa.org/aoamod4_login.asmx?op=Login

Two things make this yucky to work with:
1.) Namespacing XML is otherworldly. 
2.) Why bother with an envelope, which really provides no value, when your XML can be RESTful, such as:
Code: [Select]
<Login>
  <Username>string</Username>
  <Password>string</Password>
</Login>
I have a programming folder, and I have nothing of value there

Running with Code has a new home!

Our species really annoys me.

Offline Camel

  • Hero Member
  • *****
  • Posts: 1703
    • View Profile
    • BNU Bot
Re: Bot Thoughts
« Reply #16 on: January 22, 2008, 09:48:07 pm »
1.) Namespacing XML is otherworldly.

I disagree. When your language is weakly typed, you're living in the past.

2.) Why bother with an envelope, which really provides no value, when your XML can be RESTful, such as:
Code: [Select]
<Login>
  <Username>string</Username>
  <Password>string</Password>
</Login>
The SOAP envelope is the single ancestor; it takes the place of your above "login" element. XML, strictly speaking, requires a single ancestor, so the argument is moot.

The purpose of the SOAP:body tag is to distinguish successful operation result message types from faults. I don't see how you can possibly argue that there's no value to it, when it's pretty clear what the value is just by looking at any example.
« Last Edit: January 22, 2008, 09:49:41 pm by Camel »

<Camel> i said what what
<Blaze> in the butt
<Camel> you want to do it in my butt?
<Blaze> in my butt
<Camel> let's do it in the butt
<Blaze> Okay!

Offline Skywing

  • Full Member
  • ***
  • Posts: 139
    • View Profile
    • Nynaeve
Re: Bot Thoughts
« Reply #17 on: January 26, 2008, 05:47:06 pm »
If you use a TLVs (a-la RADIUS), binary protocols easily become as extendible as text-based protocols in terms of compatibility.

Offline Camel

  • Hero Member
  • *****
  • Posts: 1703
    • View Profile
    • BNU Bot
Re: Bot Thoughts
« Reply #18 on: January 28, 2008, 01:57:50 pm »
Someone published a spec for a "binary XML" using TLVs.

<Camel> i said what what
<Blaze> in the butt
<Camel> you want to do it in my butt?
<Blaze> in my butt
<Camel> let's do it in the butt
<Blaze> Okay!

Offline MyndFyre

  • Boticulator Extraordinaire
  • x86
  • Hero Member
  • *****
  • Posts: 4540
  • The wait is over.
    • View Profile
    • JinxBot :: the evolution in boticulation
Re: Bot Thoughts
« Reply #19 on: April 30, 2008, 04:42:33 pm »
iago, this made me think of you :)
I have a programming folder, and I have nothing of value there

Running with Code has a new home!

Our species really annoys me.

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: Bot Thoughts
« Reply #20 on: April 30, 2008, 04:47:18 pm »
I read that this morning.. but why, exactly? Is every use of XML as a Web service a wrong use?

Offline MyndFyre

  • Boticulator Extraordinaire
  • x86
  • Hero Member
  • *****
  • Posts: 4540
  • The wait is over.
    • View Profile
    • JinxBot :: the evolution in boticulation
Re: Bot Thoughts
« Reply #21 on: April 30, 2008, 06:23:20 pm »
No. :)  But sometimes, yes.  :)
I have a programming folder, and I have nothing of value there

Running with Code has a new home!

Our species really annoys me.

Offline Camel

  • Hero Member
  • *****
  • Posts: 1703
    • View Profile
    • BNU Bot
Re: Bot Thoughts
« Reply #22 on: April 30, 2008, 10:27:42 pm »
I lol'd

<Camel> i said what what
<Blaze> in the butt
<Camel> you want to do it in my butt?
<Blaze> in my butt
<Camel> let's do it in the butt
<Blaze> Okay!

Offline Blaze

  • x86
  • Hero Member
  • *****
  • Posts: 7136
  • Canadian
    • View Profile
    • Maide
Re: Bot Thoughts
« Reply #23 on: April 30, 2008, 10:53:40 pm »
Haha, that's awesome.  :)
And like a fool I believed myself, and thought I was somebody else...