Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Why XML sucks (not only today, but especially today)

Why XML sucks (not only today, but especially today)

Scheduled Pinned Locked Moved The Lounge
csharpjavascriptwcfxmllinq
20 Posts 8 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Sander RosselS Offline
    Sander RosselS Offline
    Sander Rossel
    wrote on last edited by
    #1

    So I have to make this SOAP (1.1) service so some third party application can connect with our system and request data. Fine, just tell me what the SOAP service should look like. So I get a WSDL, which is invalid because two types with the same name have the same namespace (x3). So I get a new WSDL and right after that a third because the other wasn't correct, which, after testing with the third party application (which I don't have myself), turns out to be incorrect because the namespaces don't match. And I go back to the old WSDL, which still has the same type names. I've just implemented the fifth WSDL with XSD's and I have no idea if this is going to work or not. The version of the WSDL is embedded in the namespace, but apparently it's not possible to just give me that version of the WSDL. I'm getting different versions in the namespaces, but I just changed the version to match that of the third party application and hope it'll work when I can test this stuff again. The best part is that this is apparently a standard that's maintained by a work group and I'm the third person to implement this standard (about 10 years after the last implementation) :~

    Best, Sander sanderrossel.com Continuous Integration, Delivery, and Deployment arrgh.js - Bringing LINQ to JavaScript Object-Oriented Programming in C# Succinctly

    S L 2 Replies Last reply
    0
    • Sander RosselS Sander Rossel

      So I have to make this SOAP (1.1) service so some third party application can connect with our system and request data. Fine, just tell me what the SOAP service should look like. So I get a WSDL, which is invalid because two types with the same name have the same namespace (x3). So I get a new WSDL and right after that a third because the other wasn't correct, which, after testing with the third party application (which I don't have myself), turns out to be incorrect because the namespaces don't match. And I go back to the old WSDL, which still has the same type names. I've just implemented the fifth WSDL with XSD's and I have no idea if this is going to work or not. The version of the WSDL is embedded in the namespace, but apparently it's not possible to just give me that version of the WSDL. I'm getting different versions in the namespaces, but I just changed the version to match that of the third party application and hope it'll work when I can test this stuff again. The best part is that this is apparently a standard that's maintained by a work group and I'm the third person to implement this standard (about 10 years after the last implementation) :~

      Best, Sander sanderrossel.com Continuous Integration, Delivery, and Deployment arrgh.js - Bringing LINQ to JavaScript Object-Oriented Programming in C# Succinctly

      S Offline
      S Offline
      Super Lloyd
      wrote on last edited by
      #2

      Ha! XML! It was all the rage back in 1999! :D

      A new .NET Serializer All in one Menu-Ribbon Bar Taking over the world since 1371!

      Sander RosselS 1 Reply Last reply
      0
      • S Super Lloyd

        Ha! XML! It was all the rage back in 1999! :D

        A new .NET Serializer All in one Menu-Ribbon Bar Taking over the world since 1371!

        Sander RosselS Offline
        Sander RosselS Offline
        Sander Rossel
        wrote on last edited by
        #3

        The standard message I had to implement pretty much predates the internet (and I guess XML as well) :sigh: Here's a two line example.

        DN1400150015090337000150024010001500250200015002305000150906010001509070900015001901000150021060001500460100015210101000152102010001500280100015002904100150032010001500360310015003802000150104010001500350310015003403100150304060
        VN1400152019053100000001230491000011000938127???0000110009381272938127020011890580A E6181581

        Now imagine having 100s of lines :D (There may be some personal data in there, but I think it's safe to share :laugh: ) The SOAP service is just so we can exchange these kinds of messages. You can imagine XML is actually the lesser of evils :D

        Best, Sander sanderrossel.com Continuous Integration, Delivery, and Deployment arrgh.js - Bringing LINQ to JavaScript Object-Oriented Programming in C# Succinctly

        CPalliniC OriginalGriffO H S 4 Replies Last reply
        0
        • Sander RosselS Sander Rossel

          The standard message I had to implement pretty much predates the internet (and I guess XML as well) :sigh: Here's a two line example.

          DN1400150015090337000150024010001500250200015002305000150906010001509070900015001901000150021060001500460100015210101000152102010001500280100015002904100150032010001500360310015003802000150104010001500350310015003403100150304060
          VN1400152019053100000001230491000011000938127???0000110009381272938127020011890580A E6181581

          Now imagine having 100s of lines :D (There may be some personal data in there, but I think it's safe to share :laugh: ) The SOAP service is just so we can exchange these kinds of messages. You can imagine XML is actually the lesser of evils :D

          Best, Sander sanderrossel.com Continuous Integration, Delivery, and Deployment arrgh.js - Bringing LINQ to JavaScript Object-Oriented Programming in C# Succinctly

          CPalliniC Offline
          CPalliniC Offline
          CPallini
          wrote on last edited by
          #4

          XML to transport binary data? Oh, The Wonderful!

          In testa che avete, signor di Ceprano?

          Sander RosselS 1 Reply Last reply
          0
          • CPalliniC CPallini

            XML to transport binary data? Oh, The Wonderful!

            Sander RosselS Offline
            Sander RosselS Offline
            Sander Rossel
            wrote on last edited by
            #5

            It's not binary, those are actual values (seriously)! For example, the "A " somewhere at the end of the second line means quality A (the space is there because AA is also a possible quality, so that's two reserved characters). The meaning can be deduced from the upper line, which is the definition and has codes with field length and precision. Awesome that people created a standard that's so cryptic people actually think it's binary :laugh:

            Best, Sander sanderrossel.com Continuous Integration, Delivery, and Deployment arrgh.js - Bringing LINQ to JavaScript Object-Oriented Programming in C# Succinctly

            M 1 Reply Last reply
            0
            • Sander RosselS Sander Rossel

              The standard message I had to implement pretty much predates the internet (and I guess XML as well) :sigh: Here's a two line example.

              DN1400150015090337000150024010001500250200015002305000150906010001509070900015001901000150021060001500460100015210101000152102010001500280100015002904100150032010001500360310015003802000150104010001500350310015003403100150304060
              VN1400152019053100000001230491000011000938127???0000110009381272938127020011890580A E6181581

              Now imagine having 100s of lines :D (There may be some personal data in there, but I think it's safe to share :laugh: ) The SOAP service is just so we can exchange these kinds of messages. You can imagine XML is actually the lesser of evils :D

              Best, Sander sanderrossel.com Continuous Integration, Delivery, and Deployment arrgh.js - Bringing LINQ to JavaScript Object-Oriented Programming in C# Succinctly

              OriginalGriffO Offline
              OriginalGriffO Offline
              OriginalGriff
              wrote on last edited by
              #6

              Where on earth did you get my phone number from?

              Sent from my Amstrad PC 1640 Never throw anything away, Griff Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!

              "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
              "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

              Sander RosselS 1 Reply Last reply
              0
              • Sander RosselS Sander Rossel

                The standard message I had to implement pretty much predates the internet (and I guess XML as well) :sigh: Here's a two line example.

                DN1400150015090337000150024010001500250200015002305000150906010001509070900015001901000150021060001500460100015210101000152102010001500280100015002904100150032010001500360310015003802000150104010001500350310015003403100150304060
                VN1400152019053100000001230491000011000938127???0000110009381272938127020011890580A E6181581

                Now imagine having 100s of lines :D (There may be some personal data in there, but I think it's safe to share :laugh: ) The SOAP service is just so we can exchange these kinds of messages. You can imagine XML is actually the lesser of evils :D

                Best, Sander sanderrossel.com Continuous Integration, Delivery, and Deployment arrgh.js - Bringing LINQ to JavaScript Object-Oriented Programming in C# Succinctly

                H Offline
                H Offline
                honey the codewitch
                wrote on last edited by
                #7

                wow. someone designed that on a bender.

                When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.

                Sander RosselS 1 Reply Last reply
                0
                • Sander RosselS Sander Rossel

                  It's not binary, those are actual values (seriously)! For example, the "A " somewhere at the end of the second line means quality A (the space is there because AA is also a possible quality, so that's two reserved characters). The meaning can be deduced from the upper line, which is the definition and has codes with field length and precision. Awesome that people created a standard that's so cryptic people actually think it's binary :laugh:

                  Best, Sander sanderrossel.com Continuous Integration, Delivery, and Deployment arrgh.js - Bringing LINQ to JavaScript Object-Oriented Programming in C# Succinctly

                  M Offline
                  M Offline
                  Mark_Wallace
                  wrote on last edited by
                  #8

                  Um, forgive me if I'm wrong, but isn't one of the main points of XML to break down strings like that into individual data items? So instead of a single line of hundreds of characters, you have at least three lines for each group of zero to five characters.  It's what XML fanboys call "human readable" and "far superior to CSV".

                  I wanna be a eunuchs developer! Pass me a bread knife!

                  Sander RosselS 1 Reply Last reply
                  0
                  • M Mark_Wallace

                    Um, forgive me if I'm wrong, but isn't one of the main points of XML to break down strings like that into individual data items? So instead of a single line of hundreds of characters, you have at least three lines for each group of zero to five characters.  It's what XML fanboys call "human readable" and "far superior to CSV".

                    I wanna be a eunuchs developer! Pass me a bread knife!

                    Sander RosselS Offline
                    Sander RosselS Offline
                    Sander Rossel
                    wrote on last edited by
                    #9

                    Yeah, the message itself isn't XML, it actually predates XML. The only thing that's XML is the (EDI) SOAP service that communicates the messages. The service has a few functions, like requesting a list of all messages (without content), requesting a single message (with content), updating the message status and sending a message for others to pick up. It's pretty difficult to generate that service if I can't get a proper WSDL though :sigh: We're building the SOAP service so that any customer with a specific application (which are quite a few) can receive messages automatically. The only alternative is to take a subscription elsewhere, send them our data (in another simpler format) and they do the communication. The subscription is fine for smaller businesses, but gets very expensive when you have lots of customers. We also have customers who download the message manually (from a website or from an email) and then manually input the file into the application. This industry isn't known for their modern take on IT :laugh: I know that the work group that maintains the message format also wants to move forward to XML or even JSON, so that would be a welcome change, but as long as the current message works no one wants to pay for that.

                    Best, Sander sanderrossel.com Continuous Integration, Delivery, and Deployment arrgh.js - Bringing LINQ to JavaScript Object-Oriented Programming in C# Succinctly

                    P M 2 Replies Last reply
                    0
                    • H honey the codewitch

                      wow. someone designed that on a bender.

                      When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.

                      Sander RosselS Offline
                      Sander RosselS Offline
                      Sander Rossel
                      wrote on last edited by
                      #10

                      No doubt evil witchery was involved :D

                      Best, Sander sanderrossel.com Continuous Integration, Delivery, and Deployment arrgh.js - Bringing LINQ to JavaScript Object-Oriented Programming in C# Succinctly

                      H 1 Reply Last reply
                      0
                      • OriginalGriffO OriginalGriff

                        Where on earth did you get my phone number from?

                        Sent from my Amstrad PC 1640 Never throw anything away, Griff Bad command or file name. Bad, bad command! Sit! Stay! Staaaay... AntiTwitter: @DalekDave is now a follower!

                        Sander RosselS Offline
                        Sander RosselS Offline
                        Sander Rossel
                        wrote on last edited by
                        #11

                        The Phone Book from BT[^] ;p Or maybe it was my answer for one of your CCCs? :D

                        Best, Sander sanderrossel.com Continuous Integration, Delivery, and Deployment arrgh.js - Bringing LINQ to JavaScript Object-Oriented Programming in C# Succinctly

                        1 Reply Last reply
                        0
                        • Sander RosselS Sander Rossel

                          No doubt evil witchery was involved :D

                          Best, Sander sanderrossel.com Continuous Integration, Delivery, and Deployment arrgh.js - Bringing LINQ to JavaScript Object-Oriented Programming in C# Succinctly

                          H Offline
                          H Offline
                          honey the codewitch
                          wrote on last edited by
                          #12

                          that's some hackneyed magic there. looks like it was designed by someone with a grudge against their employer. LOL

                          When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.

                          Sander RosselS 1 Reply Last reply
                          0
                          • Sander RosselS Sander Rossel

                            The standard message I had to implement pretty much predates the internet (and I guess XML as well) :sigh: Here's a two line example.

                            DN1400150015090337000150024010001500250200015002305000150906010001509070900015001901000150021060001500460100015210101000152102010001500280100015002904100150032010001500360310015003802000150104010001500350310015003403100150304060
                            VN1400152019053100000001230491000011000938127???0000110009381272938127020011890580A E6181581

                            Now imagine having 100s of lines :D (There may be some personal data in there, but I think it's safe to share :laugh: ) The SOAP service is just so we can exchange these kinds of messages. You can imagine XML is actually the lesser of evils :D

                            Best, Sander sanderrossel.com Continuous Integration, Delivery, and Deployment arrgh.js - Bringing LINQ to JavaScript Object-Oriented Programming in C# Succinctly

                            S Offline
                            S Offline
                            Super Lloyd
                            wrote on last edited by
                            #13

                            Looking good! :cool: :laugh:

                            A new .NET Serializer All in one Menu-Ribbon Bar Taking over the world since 1371!

                            1 Reply Last reply
                            0
                            • Sander RosselS Sander Rossel

                              So I have to make this SOAP (1.1) service so some third party application can connect with our system and request data. Fine, just tell me what the SOAP service should look like. So I get a WSDL, which is invalid because two types with the same name have the same namespace (x3). So I get a new WSDL and right after that a third because the other wasn't correct, which, after testing with the third party application (which I don't have myself), turns out to be incorrect because the namespaces don't match. And I go back to the old WSDL, which still has the same type names. I've just implemented the fifth WSDL with XSD's and I have no idea if this is going to work or not. The version of the WSDL is embedded in the namespace, but apparently it's not possible to just give me that version of the WSDL. I'm getting different versions in the namespaces, but I just changed the version to match that of the third party application and hope it'll work when I can test this stuff again. The best part is that this is apparently a standard that's maintained by a work group and I'm the third person to implement this standard (about 10 years after the last implementation) :~

                              Best, Sander sanderrossel.com Continuous Integration, Delivery, and Deployment arrgh.js - Bringing LINQ to JavaScript Object-Oriented Programming in C# Succinctly

                              L Offline
                              L Offline
                              Luca Leonardo Scorcia
                              wrote on last edited by
                              #14

                              SOAP is fine. It's those dumb Java developers who build web services using all kind of Java-proprietary crap and shout "it works with Java clients" whenever someone points them to the specs they violate. I bet on the providing side you have a Java implementation. Sorry for adding my rant to yours, you triggered some very angry memories (I spent too many hours trying to fix other parties' mistakes).

                              Luca The Price of Freedom is Eternal Vigilance. -- Wing Commander IV En Það Besta Sem Guð Hefur Skapað, Er Nýr Dagur. (But the best thing God has created, is a New Day.) -- Sigur Ròs - Viðrar vel til loftárása

                              Sander RosselS 1 Reply Last reply
                              0
                              • Sander RosselS Sander Rossel

                                Yeah, the message itself isn't XML, it actually predates XML. The only thing that's XML is the (EDI) SOAP service that communicates the messages. The service has a few functions, like requesting a list of all messages (without content), requesting a single message (with content), updating the message status and sending a message for others to pick up. It's pretty difficult to generate that service if I can't get a proper WSDL though :sigh: We're building the SOAP service so that any customer with a specific application (which are quite a few) can receive messages automatically. The only alternative is to take a subscription elsewhere, send them our data (in another simpler format) and they do the communication. The subscription is fine for smaller businesses, but gets very expensive when you have lots of customers. We also have customers who download the message manually (from a website or from an email) and then manually input the file into the application. This industry isn't known for their modern take on IT :laugh: I know that the work group that maintains the message format also wants to move forward to XML or even JSON, so that would be a welcome change, but as long as the current message works no one wants to pay for that.

                                Best, Sander sanderrossel.com Continuous Integration, Delivery, and Deployment arrgh.js - Bringing LINQ to JavaScript Object-Oriented Programming in C# Succinctly

                                P Offline
                                P Offline
                                PIEBALDconsult
                                wrote on last edited by
                                #15

                                EDI... : shiver :

                                M 1 Reply Last reply
                                0
                                • P PIEBALDconsult

                                  EDI... : shiver :

                                  M Offline
                                  M Offline
                                  Mark_Wallace
                                  wrote on last edited by
                                  #16

                                  Oh, I'm very familiar with EDI. Not only because I used it decades ago, but because of a recent contract (which lasted literally more than ten times longer than I was originally contracted for) which involved equipment used in airports -- so any new technology had to be cleared by roughly 9,785,276 governments, before it could be deployed. EDI was just the tip of the iceberg.  Anyone remember the fifty flavours of serial data?  DOSKEY and DOS batch-script syntax? Think you know everything because you can plug in an Ethernet cable?  Think again, and get your soldering iron out. Of course, I remembered pretty much nothing about the old tech, because I hadn't used it for somewhat more than a few weeks (which is about the limit of my memory), but relearning is a damned sight quicker than learning for the first time (especially if you have no frames of reference for it), so it was a job where kiddies need not apply.

                                  I wanna be a eunuchs developer! Pass me a bread knife!

                                  1 Reply Last reply
                                  0
                                  • Sander RosselS Sander Rossel

                                    Yeah, the message itself isn't XML, it actually predates XML. The only thing that's XML is the (EDI) SOAP service that communicates the messages. The service has a few functions, like requesting a list of all messages (without content), requesting a single message (with content), updating the message status and sending a message for others to pick up. It's pretty difficult to generate that service if I can't get a proper WSDL though :sigh: We're building the SOAP service so that any customer with a specific application (which are quite a few) can receive messages automatically. The only alternative is to take a subscription elsewhere, send them our data (in another simpler format) and they do the communication. The subscription is fine for smaller businesses, but gets very expensive when you have lots of customers. We also have customers who download the message manually (from a website or from an email) and then manually input the file into the application. This industry isn't known for their modern take on IT :laugh: I know that the work group that maintains the message format also wants to move forward to XML or even JSON, so that would be a welcome change, but as long as the current message works no one wants to pay for that.

                                    Best, Sander sanderrossel.com Continuous Integration, Delivery, and Deployment arrgh.js - Bringing LINQ to JavaScript Object-Oriented Programming in C# Succinctly

                                    M Offline
                                    M Offline
                                    Mark_Wallace
                                    wrote on last edited by
                                    #17

                                    Hey, if they like old stuff, talk them into using PostScript, which does the job of XML but a thousand times better! XML is like PostScript that's had its bollocks chopped off; kiddies only revere XML because they haven't used PostScript (and, of course, because it was "The Next Big Thing!", for a while). And no, PostScript has nothing to do with adobe. It was adobe's effing about (in their creation of Pee-Defecated-Files) that led to so many people abandoning PostScript, because they somehow managed to make it look hideously inefficient and slow, which it Shirley ain't.

                                    I wanna be a eunuchs developer! Pass me a bread knife!

                                    Sander RosselS 1 Reply Last reply
                                    0
                                    • H honey the codewitch

                                      that's some hackneyed magic there. looks like it was designed by someone with a grudge against their employer. LOL

                                      When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.

                                      Sander RosselS Offline
                                      Sander RosselS Offline
                                      Sander Rossel
                                      wrote on last edited by
                                      #18

                                      honey the monster, codewitch wrote:

                                      looks like it was designed by someone with a grudge against their employer humanity

                                      FTFY :D

                                      Best, Sander sanderrossel.com Continuous Integration, Delivery, and Deployment arrgh.js - Bringing LINQ to JavaScript Object-Oriented Programming in C# Succinctly

                                      1 Reply Last reply
                                      0
                                      • L Luca Leonardo Scorcia

                                        SOAP is fine. It's those dumb Java developers who build web services using all kind of Java-proprietary crap and shout "it works with Java clients" whenever someone points them to the specs they violate. I bet on the providing side you have a Java implementation. Sorry for adding my rant to yours, you triggered some very angry memories (I spent too many hours trying to fix other parties' mistakes).

                                        Luca The Price of Freedom is Eternal Vigilance. -- Wing Commander IV En Það Besta Sem Guð Hefur Skapað, Er Nýr Dagur. (But the best thing God has created, is a New Day.) -- Sigur Ròs - Viðrar vel til loftárása

                                        Sander RosselS Offline
                                        Sander RosselS Offline
                                        Sander Rossel
                                        wrote on last edited by
                                        #19

                                        Wow, I never thought about it that way, but now that you mention it... All my bad experiences come from incompatible Java clients :~

                                        Best, Sander sanderrossel.com Continuous Integration, Delivery, and Deployment arrgh.js - Bringing LINQ to JavaScript Object-Oriented Programming in C# Succinctly

                                        1 Reply Last reply
                                        0
                                        • M Mark_Wallace

                                          Hey, if they like old stuff, talk them into using PostScript, which does the job of XML but a thousand times better! XML is like PostScript that's had its bollocks chopped off; kiddies only revere XML because they haven't used PostScript (and, of course, because it was "The Next Big Thing!", for a while). And no, PostScript has nothing to do with adobe. It was adobe's effing about (in their creation of Pee-Defecated-Files) that led to so many people abandoning PostScript, because they somehow managed to make it look hideously inefficient and slow, which it Shirley ain't.

                                          I wanna be a eunuchs developer! Pass me a bread knife!

                                          Sander RosselS Offline
                                          Sander RosselS Offline
                                          Sander Rossel
                                          wrote on last edited by
                                          #20

                                          I uhhh... might stick to regular XML :~ And we don't actually like the old stuff, we're just forced to use it :laugh:

                                          Best, Sander sanderrossel.com Continuous Integration, Delivery, and Deployment arrgh.js - Bringing LINQ to JavaScript Object-Oriented Programming in C# Succinctly

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups