Visit Our UNIX and Linux User Community

Top Forums Web Development Problems writing app that will communicate with gateway(newbie,last bit of project) Post 302340762 by wrapster on Tuesday 4th of August 2009 09:31:44 AM
Old 08-04-2009
Problems writing app that will communicate with gateway(newbie,last bit of project)

Hi all,

Im writing an app that will contact a specified gateway and retrieve info onto our server and perform manipulations on it then return the result back to the gateway for further operations...

But I'm a newbie and dont have much of an experience in network programming...
Would like to know what are the paramaters necessary to contact the gateway...(I've got permission to use a gateway from a certain provider.)

Could anyone please help me...(This is the last bit in my project , that im not too familiar with)
The protocol is probably going to be HTTPS...
We have a choice to choose between that and HTTP... working out the logistics as of now..

This is however the overview...
The gateway will be pushing text to our server, we maintain a DB to do the manipulations on the incoming data.
Process depending on our needs and then push the result back to the gateway which will then take it forward.

I'll be using Java ...
The gateway that will send the data to us will be in the form of an url, this will be processed by our server(Which will act as a client since the gateway now acts as server).
So should i be looking at writing a HTTP client app or servlets, because regular socket programming ,Im assuming will only be used for RAW TCP/IP packets..

Assume that the data is sent like this from the gateway to me.

In this case all I need to do is to verify if the uname/passwd is valid or not and send a response back to the gateway(It will take if forward from there).
(i.e, I do a GET the url and then extract the query string that contains the necessary data.
Then I process the data with a DB that I have to check of certain things in the extracted data.
Then I POST the response from my server back to the gateway).

I dont have a Submit button or anything like that at all, so how am I going to use the POST method(to the gateway) if that be the case?(want to know what will be the argument to be passed to the POST so that it will take the data to the gateway)

The reason Im asking is so far I had only dealt with the POST method in the conventional way ...
This is new.

Could anyone help me out.

I'll be glad to help you out with more,if need be...
This is the last bit of my project and taking too much of time to resolve.
please help.
Test Your Knowledge in Computers #56
Difficulty: Easy
A flip-flop circuit stores 1 bit of data.
True or False?

6 More Discussions You Might Find Interesting

1. Programming

Writing both 8-bit and 16-bit data to a file

I'm writing both 8-bit and wide 16-bit data to the screen and an output file. I have no problems with writing out to the screen - for example: cout<<8-bit data; wcout<<16-bit data; Similarly, I have used ofstream for 8-bit and wofstream for 16-bit, for example: ofstream out; wofstream wout;... (1 Reply)
Discussion started by: Breen
1 Replies

2. AIX

Compiling 32 bit app on 64 bit kernal

I've been trying to compile an application that works on AIX 5L in 32 bit mode on an AIX 5L 64 bit mode machine. In doing so I get a lot of undefined symbol errors. Below is a sample of what the output looks like..... %make -f makefile_hl7 all cc... (3 Replies)
Discussion started by: morrisey
3 Replies

3. UNIX for Dummies Questions & Answers

simple app to communicate windows and linux/unix

Careful!!! This is a newbie question! Hello Community I'd like to develop a very simple application, on the one side (some windows pcs with a listener and sender) on the other side a linux server that does the same. Any suggestions about doing that? telnet, smbclient????? It must be... (3 Replies)
Discussion started by: ncatdesigner
3 Replies

4. Shell Programming and Scripting

awk, shell script reverse engineering app generator - project

Hi, this is fantastic forum for shell programming and scripting, so please let me to introduce you with my very old concept to have web form/s with radio, select, input fields and have an application generating valid, syntax error free scripting code. The same or alike questions are asked... (2 Replies)
Discussion started by: darius2
2 Replies

5. AIX

32 bit app on aix 6.1

We have our in house developed software running on AIX 6.1 (6100-06-06-1140). The application is a 32 bit application and the operating system is 64 bit. We are running this application without any issue on AIX 5.3 32-bit on P5. We are facing issue with this application after moving on P7 with aix... (4 Replies)
Discussion started by: vjm
4 Replies

6. UNIX for Beginners Questions & Answers

Inconsistency between RedHat 6.5 global gateway and single gateway leads to loss of default gateway

Dear friends I use RedHat 6.5, which sets the gateway in the configuration file / etc / sysconfig / network as GATEWAY =, and the gateway in the configuration file / etc / sysconfig / network-scripts / ifcfg-eth11 as GATEWAY = The two gateways are different.... (6 Replies)
Discussion started by: tanpeng
6 Replies

ecaccess-association-delete - Delete Association SYNOPSIS
ecaccess-association-delete -version|-help|-manual ecaccess-association-delete [-debug] [-gateway name] association-name DESCRIPTION
Allow deleting an ECtrans Association. Once deleted the Association can not be retrieved. The History associated with this Association will also be removed from the ECaccess Gateway Database. ARGUMENTS
association-name The name of the Association to delete. OPTIONS
-gateway name This is the name of the ECaccess Gateway where the Association is installed. It is by default the Gateway you are connected to. In order to get the name of your current Gateway you can use the ecaccess-gateway-name command. When using the commands at ECMWF the default Gateway is always "". -version Display version number and exits. -help Print a brief help message and exits. -manual Prints the manual page and exits. -debug Display the SOAP messages exchanged. EXAMPLES
ecaccess-association-delete -gateway test Remove the test Association on the Gateway. ecaccess-association-delete test2 Remove the test2 Association on the default Gateway. SEE ALSO
ecaccess-association-get, ecaccess-association-list, ecaccess-association-protocol, ecaccess-association-put and ecaccess. perl v5.14.2 2012-04-16 ECACCESS-ASSOCIATION-DELETE(1p)

Featured Tech Videos

All times are GMT -4. The time now is 07:35 AM.
Unix & Linux Forums Content Copyright 1993-2020. All Rights Reserved.
Privacy Policy