Re: Exchanging information



Mark Space wrote:
Haggis McMutton wrote:

I should mention that I'm very likely to want to write the client in a
different language in the future so I need a way of doing it that can
easily be done in other languages. I can't be Java specific.

Thinking about this a bit more then, I guess my next question would be "Which transports/libraries do those languages support?" Pick something that seems standard for those languages and is also well supported in Java. I remember looking a Javascript, and thinking the best transport would be XML. XML is used by J2EE, supported with some libraries for Javascript, and also can be parsed by plain old Java. Whereas something like JSON was really only good if you were talking Javascript only. It seemed to require too much ad hoc parsing on the Java side, even though it integrated with Javascript well.

SOAP I haven't looked into at all. As Roedy implies though it might be good to have clear understanding of the other (non-Java) application (which you haven't talked about, so ...). If the other side really likes SOAP, that might indeed be the best choice. But you're saying "HTTP seems like a waste" which to me implies you are not writing a "web app" and therefore SOAP might not actually be used in your environment much.

SOAP is not limited to HTTP. It is an XML format. Document exchange follows a format defined by a WSDL. The mode of document transport is not restricted.

If you like XML generally, SOAP provides the advantage of a well-thought-out set of XML tags that define document transport. One is, of course, free to reinvent that solution.

--
Lew
.



Relevant Pages

  • Re: Exchanging information
    ... Thinking about this a bit more then, I guess my next question would be "Which transports/libraries do those languages support?" ... Pick something that seems standard for those languages and is also well supported in Java. ... XML is used by J2EE, supported with some libraries for Javascript, and also can be parsed by plain old Java. ... If the other side really likes SOAP, that might indeed be the best choice. ...
    (comp.lang.java.help)
  • Re: [PHP] Web Service in PHP/XML
    ... if you want to use xml and php you can use soap and then you can ... incorporate other languages as well...making soap the common protocol ... most languages support soap implementations of one sort. ... > I started writting an install script that would talk to a PHP script on one ...
    (php.general)
  • Re: more idle thinking: SiMPL
    ... this XML will likely be a subset, as to not mandate a full XML/DOM ... writing parsers and compiler machinery for N different languages is how I ... element, in different programming languages. ...
    (comp.lang.misc)
  • [ANN] XML Processing in Prolog
    ... The XML of Programming Languages ... What would 'the XML of programming languages' be like? ... Prolog to support research in natural language processing. ...
    (comp.text.xml)
  • Re: how are programming languages made???
    ... comp.lang.misc Different computer languages not specifically listed. ... > I don't see how JavaScript is even remotely related to Java since: ... 1st bug in MS win2k source code found after 20 minutes: ...
    (comp.lang.asm.x86)