Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2012-07

networking / webservices

7 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Ian Godman

Hi

I am new to Lazarus (Ex Delphi but that was years ago) and am investigating it for use in a multi OS project (Windows, Linux , Mac, Android and IOS).

One requirement of thsi project is to connect to a web service, type of service to be defined.

I have tried to find webservice / networking libraries for Lazarus but all that I have found will not compile/install and my knowledge is not up to fixing the issues. Plus I am only in the evaluation phase so dont have the time to fix things that I may not end up using.

I am using Lazarus 0.9.30.4 with FPC 2.6.0.0 and have tried Indy, Inet, Synapse and WST libraries.

Is it possible to build GUI applications with network connectivity for multiple platforms with Lazarus ?

At the moment I can even work out how to open a socket connection !

Ian

Reply by email

Michael Van Canneyt
to Ian Godman
Ian Godman wrote 16 lines
Hi I am new to Lazarus (Ex Delphi but that was years ago) and am investigating it for use in a multi OS project (Windows, Linux , Mac, Android and IOS). One requirement of thsi project is to connect to a web service, type of service to be defined. I have tried to find webservice / networking libraries for Lazarus but all that I have found will not compile/install and my knowledge is not up to fixing the issues. Plus I am only in the evaluation phase so dont have the time to fix things that I may not end up using. I am using Lazarus 0.9.30.4 with FPC 2.6.0.0 and have tried Indy, Inet, Synapse and WST libraries.

I use synapse and WST in FPC projects since years to connect to many different webservices.

What are the problems you are experiencing ?

Michael.

Reply by email

Ian Godman
to Michael Van Canneyt
Michael Van Canneyt wrote 35 lines
On Tue, 10 Jul 2012, Ian Godman wrote: > Hi > > I am new to Lazarus (Ex Delphi but that was years ago) and am > investigating it for use in a multi OS project (Windows, Linux , Mac, > Android and IOS). > > One requirement of thsi project is to connect to a web service, type of > service to be defined. > > I have tried to find webservice / networking libraries for Lazarus but > all that I have found will not compile/install and my knowledge is not > up to fixing the issues. Plus I am only in the evaluation phase so dont > have the time to fix things that I may not end up using. > > I am using Lazarus 0.9.30.4 with FPC 2.6.0.0 and have tried Indy, Inet, > Synapse and WST libraries. I use synapse and WST in FPC projects since years to connect to many different webservices. What are the problems you are experiencing ? Michael. -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

When trying to compile synapse get error:

The file "ssfpc.pas" of package laz_synapse 0.0 is missing.

Have source from synapse40.zip

Reply by email

Michael Van Canneyt
to Ian Godman
Ian Godman wrote 16 lines
On 10/07/12 11:27, Michael Van Canneyt wrote: > > > > I use synapse and WST in FPC projects since years to connect to many > different > webservices. > > What are the problems you are experiencing ? > When trying to compile synapse get error: The file "ssfpc.pas" of package laz_synapse 0.0 is missing. Have source from synapse40.zip

You should be able to compile anyway. This is lazarus who gives this warning. The file is indeed missing, but is no longer needed.

I compiled it only this weekend on a fresh lazarus 0.9.30 installation.

Michael.

Reply by email

Ian Godman
to Michael Van Canneyt
Michael Van Canneyt wrote 35 lines
On Tue, 10 Jul 2012, Ian Godman wrote: > On 10/07/12 11:27, Michael Van Canneyt wrote: >> >> >> >> I use synapse and WST in FPC projects since years to connect to many >> different >> webservices. >> >> What are the problems you are experiencing ? >> > > When trying to compile synapse get error: > > The file "ssfpc.pas" of package laz_synapse 0.0 is missing. > > Have source from synapse40.zip You should be able to compile anyway. This is lazarus who gives this warning. The file is indeed missing, but is no longer needed. I compiled it only this weekend on a fresh lazarus 0.9.30 installation. Michael. -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Thanks Michael - dont like ignoring errors - but it does compile when you do :)

Ian

Reply by email

Dimitrios Chr. Ioannidis
to Ian Godman: Hi I am new to Lazarus (Ex Delphi but that was years ago) and am investigating it for use…

Hi,

???? 10/7/2012 1:10 ??, ?/? Ian Godman ??????:

I am using Lazarus 0.9.30.4 with FPC 2.6.0.0 and have tried Indy, Inet, Synapse and WST libraries.

you don't need the Indy, lNet or Synapse. You should use the fpc_http_protocol. Unfortunately, the doc's doesn't refer to it.

Add to the uses the fpc_http_protocol unit which is in the WST directory and at place you're registering synapse's http protocol replace it with the FPC_RegisterHTTP_Transport. Because it uses the fphttpclient it's very portable and i succesfully used it at WinCE, Win and Linux.

regards,

Dimitrios Chr. Ioannidis

Reply by email

Ian Godman
to Dimitrios Chr. Ioannidis
Dimitrios Chr. Ioannidis wrote 16 lines
Hi, ???? 10/7/2012 1:10 ??, ?/? Ian Godman ??????: > I am using Lazarus 0.9.30.4 with FPC 2.6.0.0 and have tried Indy, Inet, > Synapse and WST libraries. you don't need the Indy, lNet or Synapse. You should use the fpc_http_protocol. Unfortunately, the doc's doesn't refer to it. Add to the uses the fpc_http_protocol unit which is in the WST directory and at place you're registering synapse's http protocol replace it with the FPC_RegisterHTTP_Transport. Because it uses the fphttpclient it's very portable and i succesfully used it at WinCE, Win and Linux. regards,

Thanks Dimitrios

An example is worth a thousand words :-)

Do you know were I can get a working example from ? So much to learn so little time :-(

Ian

Reply by email