Post #204,829
4/26/05 6:48:51 AM
|
Low volume - interactive
Almost all of my code resides on world of Linux back-end. Occasionally I need to create a user interface - which I've done lately in C#.
The back-end Linux code is almost always Perl, but will interact with a variety of 3rd party programs.
So (for a trivial example), I need to create a C# interface that queries that status of a back-end production, and this status is an aggregation of Linux stuff (load average, SGE queue size, plus some information in some log tables currently in Postgresql).
My 1st instinct is to create a Perl program on the Linux size, and have it produce some clearly defined text strings on output. This is then callable from any command line.
I would then need to hand this data off to the C# side, since it would be invloked by a user pressing a button, querying the status of the system. I would want the C# to format and present it, since I hate web presentation/interaction and these are all in-house windows clients.
Based on what you said, it seem a CGI interface a decent answer.
Hm - what about SOAP?
|
Post #204,830
4/26/05 7:07:13 AM
|
SOAP is a dirty word
Way far over complex for what you need, by the sounds of it. Of course, SOAP is over complex for just about everything.
Just use a simple POST/response interface, and you'll be all happy and stuff.
Regards,
-scott anderson
"Welcome to Rivendell, Mr. Anderson..."
|
Post #204,843
4/26/05 11:05:43 AM
|
REST in the ease of HTTP
[link|http://en.wikipedia.org/wiki/REST|http://en.wikipedia.org/wiki/REST]
|
Post #204,873
4/26/05 1:39:57 PM
|
Yep, that's what we support here.
Regards,
-scott anderson
"Welcome to Rivendell, Mr. Anderson..."
|
Post #204,872
4/26/05 1:38:27 PM
|
Agreed
[link|http://www.perl.com/pub/a/2004/09/30/drop_the_soap.html|Don't be afraid to drop the SOAP] says it all, from the perspective of someone who loves XML.
Note, SOAP used to stand for Simple Object Access Protocol. It now stands for nothing because people couldn't stand the irony, seeing as how it isn't simple and no objects are involved.
Cheers, Ben
I have come to believe that idealism without discipline is a quick road to disaster, while discipline without idealism is pointless. -- Aaron Ward (my brother)
|
Post #204,874
4/26/05 1:40:08 PM
|
Irony can be so ironic...
Regards,
-scott anderson
"Welcome to Rivendell, Mr. Anderson..."
|
Post #204,878
4/26/05 2:03:33 PM
|
Sure it stands for something
Stupid Object Access Protocol
"Whenever you find you are on the side of the majority, it is time to pause and reflect" --Mark Twain
"The significant problems we face cannot be solved at the same level of thinking we were at when we created them." --Albert Einstein
"This is still a dangerous world. It's a world of madmen and uncertainty and potential mental losses." --George W. Bush
|
Post #204,881
4/26/05 2:10:59 PM
|
Come on, you can do better than that:
Suppuration Of Access Predicament Sent Objects Are Punted Software Originators Aren't Pleased
Regards,
-scott anderson
"Welcome to Rivendell, Mr. Anderson..."
|
Post #204,883
4/26/05 2:15:30 PM
|
I suppose
Syntactic Obfuscation/Augmentation Protocol
"Whenever you find you are on the side of the majority, it is time to pause and reflect" --Mark Twain
"The significant problems we face cannot be solved at the same level of thinking we were at when we created them." --Albert Einstein
"This is still a dangerous world. It's a world of madmen and uncertainty and potential mental losses." --George W. Bush
|
Post #204,886
4/26/05 2:27:57 PM
|
ROFL
|
Post #204,888
4/26/05 3:43:09 PM
|
That works
Regards,
-scott anderson
"Welcome to Rivendell, Mr. Anderson..."
|
Post #204,885
4/26/05 2:20:34 PM
|
Surely Over Agitation Pleases
;-)
Peter [link|http://www.ubuntulinux.org|Ubuntu Linux] [link|http://www.kuro5hin.org|There is no K5 Cabal] [link|http://guildenstern.dyndns.org|Home] Use P2P for legitimate purposes!
|
Post #204,891
4/26/05 4:34:35 PM
|
Simple Operations Are Perplexing
I have come to believe that idealism without discipline is a quick road to disaster, while discipline without idealism is pointless. -- Aaron Ward (my brother)
|