This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
I want to get some .NET client apps used by customers to talk to a program on our server. I suppose this would make RMI out of the question, so I'm wondering how they can communicate with the server. I figure that they could send XML summaries of transactions, but I'm not sure what the best way to do that is--just open a connection to the server and upload a stream of bytes? What about if the app needs to check to see if it's the latest version? What's the best way to send a message with my version number and IP address to a Java program on a server? Just send a stream of chars to it and have it respond with the URL for downloading the latest patch? Can my program invoke a servlet directly? I'm not asking for a solution--I just want to be steered in the best direction since there's so much stuff out there.
If you have access to an HTTP client in .NET (I would think that this is the case) then doing a GET or POST to a servlet sounds like a good idea. Another possibility is exposing your Java server side functionality as a web service. Option nr. 3: CORBA!
I like the sound of a web service--sounds pretty friendly...especially for something as lightweight as checking versioning/updates. But what about the part where I need to upload data about a transaction, especially if a simple XML file doesn't turn out to be sufficient? Should that be handled through a web service provided by the server, or should I use one of the other routes? What does "nr" mean? Thanks...
SOAP is a strong standard for XML over HTTP request and response services. You can get into it without even learning XML with tools like GLUE (very easy, Java only) or Systinet WASP (more platforms, less easy). Are you using new .NET languages? You can probably consume a SOAP service with only a few declarative statements. http://www.themindelectric.com/glue/index.html http://www.systinet.com/
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi