Solved

Help on project with Soap

Posted on 2016-08-09
10
47 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
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…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
Need to grow your business through quality cloud solutions? With everything required to build a cloud platform and solution, you may feel like the distance between you and the cloud is quite long. Help is here. Spend some time learning about the Con…

930 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

10 Experts available now in Live!

Get 1:1 Help Now