LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-10-2011, 01:06 AM   #1
sparnar
LQ Newbie
 
Registered: Aug 2011
Posts: 1

Rep: Reputation: Disabled
Newb question about calling web service on windows server from linux red hat server


hi everyone,
i am a complete newbie with regards to linux. actually saw it the first time a week or two ago.

i am a .net developer and i'm working on a project where we will need to integrate two systems. the one system runs on windows server, while the second system runs on linux red hat.

the second system has the ability to easily add shell scripts on events (button click, field change, etc).

now, i need to create an event-driven integration from the system on linux to an external web service.

my question is this, what is the best approach for calling this web service from the linux box? keep in mind that i can easily make use of a shell script, to either call the web service directly, or to perhaps execute a php file.

hope i'm asking in the right spot. if not, please let me know.
 
Old 08-10-2011, 09:56 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by sparnar View Post
hi everyone,
i am a complete newbie with regards to linux. actually saw it the first time a week or two ago.

i am a .net developer and i'm working on a project where we will need to integrate two systems. the one system runs on windows server, while the second system runs on linux red hat. the second system has the ability to easily add shell scripts on events (button click, field change, etc). now, i need to create an event-driven integration from the system on linux to an external web service.

my question is this, what is the best approach for calling this web service from the linux box? keep in mind that i can easily make use of a shell script, to either call the web service directly, or to perhaps execute a php file.
hope i'm asking in the right spot. if not, please let me know.
This is impossible for anyone here to answer.

The "best approach" could vary wildly, and you've not provided any details that would help us make a determination. We don't know if the pages are .net/MONO, PHP, Java, or straight HTML, what it interfaces with behind the scenes, what "web service" it calls and what that call needs to pass/return, etc., etc., etc. Far to many variables to guess at. Also, pretty much ANY web server can serve up PHP pages, which would give you the ability to call external programs (shell scripts/batch files or whatever), and Perl can always be used, too, via cgi-bin.
 
Old 08-10-2011, 10:13 AM   #3
SL00b
Member
 
Registered: Feb 2011
Location: LA, US
Distribution: SLES
Posts: 375

Rep: Reputation: 112Reputation: 112
The correct method to call any web service is HTTP/HTTPS, because that's what web services means.
 
Old 08-10-2011, 05:57 PM   #4
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Moved: This thread is more suitable in Programming and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 08-10-2011, 07:51 PM   #5
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Sparnar -

Strictly speaking, this is the correct answer:
Quote:
The correct method to call any web service is HTTP/HTTPS, because that's what web services means.
Soooooooo .....

What are your constraints?
Q: Does this web service already exist?
Q: Do you have a WSDL for it?
Q: Does the service execute on Windows, on Redhat, or will it run on both?
Q: Will the client reside on Windows, on Redhat, or on both?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP Login script working on windows server but not on Linux Red Hat Server ahmedyk Linux - Newbie 2 01-14-2009 12:22 AM
Problem accessing Windows SQL server from Red Hat Web Server mariap Linux - General 0 12-28-2008 05:46 PM
Red Hat Enterprise Linux 3 web server? Superfrk Linux - Enterprise 1 06-27-2004 01:11 AM
installing Red hat 7.2 on a remote server (newb) Xcalabur Linux - Networking 1 01-21-2003 07:17 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration