News:

Happy New Year! Yes, the current one, not a previous one; this is a new post, we swear!

Main Menu

Bot Thoughts

Started by iago, January 21, 2008, 08:13:45 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

MyndFyre

Quote from: Camel on January 22, 2008, 03:43:17 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:

<Login>
  <Username>string</Username>
  <Password>string</Password>
</Login>
Quote from: Joe on January 23, 2011, 11:47:54 PM
I have a programming folder, and I have nothing of value there

Running with Code has a new home!

Quote from: Rule on May 26, 2009, 02:02:12 PMOur species really annoys me.

Camel

#16
Quote from: MyndFyre on January 22, 2008, 09:00:52 PM
1.) Namespacing XML is otherworldly.

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

Quote from: MyndFyre on January 22, 2008, 09:00:52 PM
2.) Why bother with an envelope, which really provides no value, when your XML can be RESTful, such as:

<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.

<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!

Skywing

If you use a TLVs (a-la RADIUS), binary protocols easily become as extendible as text-based protocols in terms of compatibility.

Camel

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!

MyndFyre

iago, this made me think of you :)
Quote from: Joe on January 23, 2011, 11:47:54 PM
I have a programming folder, and I have nothing of value there

Running with Code has a new home!

Quote from: Rule on May 26, 2009, 02:02:12 PMOur species really annoys me.

iago

I read that this morning.. but why, exactly? Is every use of XML as a Web service a wrong use?

MyndFyre

No. :)  But sometimes, yes.  :)
Quote from: Joe on January 23, 2011, 11:47:54 PM
I have a programming folder, and I have nothing of value there

Running with Code has a new home!

Quote from: Rule on May 26, 2009, 02:02:12 PMOur species really annoys me.

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!

Blaze

Haha, that's awesome.  :)
And like a fool I believed myself, and thought I was somebody else...