Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Help on project with Soap

Posted on 2016-08-09
10
Medium Priority
?
87 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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
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…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses

670 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