Solved

Help on project with Soap

Posted on 2016-08-09
10
43 Views
Last Modified: 2016-09-25
Hello guys,

I need a help on this project.
I don't know if it is possible then I need some clues from all of you.

I have a database in internet (mysql) and I need to access this database. I intend to have a syncronized system between two computer far way. One of the computer will only send information to this database in my web and the other will download the information.

What is the best way to do that? Soap?

is it possible to send rows of register and to record in database? Do you know any site that I could have some examples?

I really thanks
Alexandre
0
Comment
Question by:hidrau
  • 5
  • 5
10 Comments
 
LVL 19

Expert Comment

by:Thommy
ID: 41750119
Does this database already exist?
Are you already able to connect to this database from both of the computers?
0
 
LVL 1

Author Comment

by:hidrau
ID: 41750219
Hello Thommy,

this database exist and it is on my internet server, it is mysql.

The database used for desktop system is firebird.

the internet database will only be a repository of information.

did you get it?
0
 
LVL 19

Expert Comment

by:Thommy
ID: 41750303
You have different options for securely connecting to your web database

1.) direct connection via VPN
2.) via a web-service to pass-through requests and send back responses
2.) via a php script
0
 
LVL 19

Expert Comment

by:Thommy
ID: 41750304
via VPN ist the easiest  way, but I would prefer a web-service
0
 
LVL 1

Author Comment

by:hidrau
ID: 41752496
Thommy, do you have knowledge how to use a php server ?
0
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
LVL 19

Accepted Solution

by:
Thommy earned 500 total points
ID: 41756150
On client side use Delphi component methods TIdHttp.Put or TidHttp.Post to send parameters.

Simply put your parameters in a TStringlist and do it somehow like that...

function PostParameters: string;
var
  MyParams: TStringList;
  idhttp: TIdHTTP;
begin
  MyParams := TStringList.Create;
  MyParams.Add('Param1=1');
  ...
  MyParams.Add('Param5=X');

  idhttp := TIdHTTP.Create(nil);
  try
    Result := idhhtp.Post('http://....', MyParams);
  finally
    MyParams.Free;
    idhttp.Free;
  end;
end;

Open in new window


On Server side use php script to handle your parameters and return result data, which you then can parse in your client Delphi app.

This is a good example for how to use Delphi to work with a php script...
How to send data to a PHP script and imediatelly get data back from the same script
1
 
LVL 1

Author Comment

by:hidrau
ID: 41756677
Thanks Thommy,

I am gonna check this tonight or tomorrow.
0
 
LVL 19

Expert Comment

by:Thommy
ID: 41768854
Have you already checked
0
 
LVL 1

Author Closing Comment

by:hidrau
ID: 41815224
thanks a lot.
0
 
LVL 1

Author Comment

by:hidrau
ID: 41815231
Hello Thommy.

I checked and worked fine the example.

Sorry for the delay to return to my question.
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now