Windows (Delphi -> Lazarus) Problem

Hi there

I am stucked with a quiet simple task.

I try to consume a 3rd party SOAP web service within a Lazarus program. In Delphi this works perfectly but in Lazarus it does not.

-> I did exactly (I hope so) the same sample project once as Delphi and once as Lazarus (See attached archive).

Could someone pls take a quick look?

Thanks & cheers,
Peter

Hello,
We get ‘ERR: 001, Authentication error’ using delphi and lazarus client project.
Can you retest it in delphi?
Do you compile lazarus project in ubuntu or in windows?

Thanks for the answer

I did reinstall Indy & RO SDK on my windows machine and now it seems to works.

However I am having now a problem with the exact same program on Ubuntu. I am using:

  • Ubuntu 11.10/32
  • Lazarus 0.9.30-2
  • Indy 10.5.8.0
  • RO SDK 6.0.55.957

Compiling is ok, running too but then calling the remote SOAP service (pushing the UI button) hangs and brings a timeout error after a while.

(By the way the latest beta release .1021 can not be installed on Lazarus/Linux)

Thanks & cheers,
Peter

Hi there

I have a general question -> Is “Indy 10.5.8.0” supposed to run fine together with RemObject? On Windows and Linux?

Thx & cheers,
Peter

Hi there

I suspect my problem to be related to TROIndyHttpChannel working together with TROSOAPMessage under Linux.

To illustrate this I modified the RO sample “Sample FPC Server” to test the service with BIN, SOAP and JSON messages.

-> BIN and JSON do work fine but SOAP gives an access violation error.

P.S: Testing this with:

  • Ubuntu 11.10/32
  • Lazarus 0.9.30-2
  • Indy (Release found on the RemObjects forum)
  • RO SDK 6.0.55.957

Thanks & cheers,
Peter

Hello Peter,

binfch said: I suspect my problem to be related to TROIndyHttpChannel working together with TROSOAPMessage under Linux.

I’d rather not blame Indy for that, I suspect there is an OpenXML (the library used instead of MSXML in non-Windows environments) issue. Thanks for the test case, we’ll investigate further.

Best regards - Sergey.

Hi there

Any news on this issue?

P.S: I also just tried to install the latest summer release of RO SDK .1029 but this still gives errors when compiling the “core” package:

/usr/lib/lazarus/0.9.30/components/RemObjects/RemObjects SDK for Delphi/Source/uROClasses.pas(497,6) Error: No matching implementation for interface method “IUnknown.QueryInterface(const TGuid,out ):LongInt; StdCall;” found

Thanks & cheers,
Peter

Hello,
You wrote:

I also just tried to install the latest summer release of RO SDK .1029 but this still gives errors when compiling the “core” package:
Dirrefent version of FPC have different declaration of IUnknown.QueryInterface mehod.
What FPC version are you using now? The latest RO is adapted under last FPC versions.

Ok thanks for the info. I did not know that.
I am currently using:

  • Ubuntu 11.10/32
  • Lazarus 0.9.30-2
  • FPC 2.4.4
  • Indy (Release found on the RemObjects forum)

-> Just to be sure -> Newest RO release is working with Lazarus 0.9.30.4 and FPC 2.6.0 and Indy 10.5.8.0? Please confirm before I upgrade…

Thanks,
Peter

Hello,
Please use Indy 10.2.3. New Indy versions can work unstable with RO.
Newest RO release is working with Lazarus 0.9.30.4 and FPC 2.6.0.

After setting up a fresh VM, I just want to confirm (might be helpful for other users) that using…

  • Ubuntu 12.04/32 (without Unity)
  • FPC 2.6.0-1
  • Lazarus 0.9.30-4
  • Indy 10.2.3.0
  • RO SDK 6.0.61.1029

… all is working perfectly. All packages can be installed without problems (even the RO-SDK IDE package).

My test project (first post) now compiles and run pefectly!

Thanks & cheers,
Peter

Can you please show the SVN versions for
lazarus
fpc
indy

Thanks in advance.

DonaldShimoda said: Can you please show the SVN versions for
lazarus
fpc
indy
I totally agree, it would be helpful to test the platform with Lazarus.