Solved

Help on project with Soap

Posted on 2016-08-09
10
69 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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
 
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

734 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