How can I use SSRS methods in delphi with WSDL?

I am using Delphi7 and I need to use some reports that I made earlier in SSRS 2008 in delphi. I want to call them in Delphi. I used the WSDl importer and imported reportservice2005.asmx, and delphi gave me a PAS file with a list of SSRS methods, but when I try to create an instance of ReportingService2010Soap with the GetReportingService2010Soap function, it gives me some errors !. Can I find a document to use this PAS file? thanks and sorry my bad english!

+4
source share
1 answer

Delphi 7 WSDL Importer (wsdlimp.exe) has an update that can be downloaded from Embarcadero ID: 24535, Delphi SOAP Runtime and Importer Update

Here are 3 informational articles. Using ASMX web services in Delphi is pretty straightforward, be it Delphi 7 or later.

1. Using C # Web Services with Delphi 7 Professional

2. Delphi 2010 and WCF Clients

3. Introduction to WCF Programming in Delphi

In addition, during development, you can make your web service calls in an attempt other than this block

uses SysUtils, ABCService; // .pas unit generated by WSDLIMP.EXE (WSDL Importer) procedure PerformServiceCall; var MyService: IMyService; MyServiceResponse: TMyServiceResponse; // the result returned from the service call MyServiceRequest: TMyServiceRequest; // the parameter passed with the service call Connected: boolean; begin MyService := nil; try try MyService := IMyService.GetMyService; Connected := (MyService <> nil); if Connected then MyServiceResponse := MyService.MethodName(MyServiceRequest); else raise Exception.Create('Could Not Connect'); except on E: Exception do ShowMessage(E.ClassName + #13#10 + E.Message); end; finally MyService := nil; end; end; 

At this point, we investigate the problems according to ClassName and Message in the exception until we get any exceptions ... then there are other things that we could check (for example, is the service really valid now, addressing, timeouts, performance, security, etc.).

+3
source

All Articles