Help on project with Soap

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
LVL 1
hidrauAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
ThommyConnect With a Mentor Commented:
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
 
ThommyCommented:
Does this database already exist?
Are you already able to connect to this database from both of the computers?
0
 
hidrauAuthor Commented:
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
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
ThommyCommented:
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
 
ThommyCommented:
via VPN ist the easiest  way, but I would prefer a web-service
0
 
hidrauAuthor Commented:
Thommy, do you have knowledge how to use a php server ?
0
 
hidrauAuthor Commented:
Thanks Thommy,

I am gonna check this tonight or tomorrow.
0
 
ThommyCommented:
Have you already checked
0
 
hidrauAuthor Commented:
thanks a lot.
0
 
hidrauAuthor Commented:
Hello Thommy.

I checked and worked fine the example.

Sorry for the delay to return to my question.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.