You've already forked lazarus-ccr
+ Better Delphi support : client & server( new ) - SOAP, XMLRPC and BINARY formats git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@212 8e941d3f-bd1b-0410-a28a-d453659cc2b4
76 lines
2.1 KiB
ObjectPascal
76 lines
2.1 KiB
ObjectPascal
{
|
|
This unit has been produced by ws_helper.
|
|
Input unit name : "SDMTabularService".
|
|
This unit name : "SDMTabularService_proxy".
|
|
Date : "11/07/2007 23:11:05".
|
|
}
|
|
|
|
Unit SDMTabularService_proxy;
|
|
{$IFDEF FPC} {$mode objfpc}{$H+} {$ENDIF}
|
|
Interface
|
|
|
|
Uses SysUtils, Classes, TypInfo, base_service_intf, service_intf, SDMTabularService;
|
|
|
|
Type
|
|
|
|
|
|
TSDMTabularServiceSoap_Proxy=class(TBaseProxy,SDMTabularServiceSoap)
|
|
Protected
|
|
class function GetServiceType() : PTypeInfo;override;
|
|
function RunQuery(
|
|
Const RunQueryParam : RunQueryType
|
|
):RunQueryResponse;
|
|
End;
|
|
|
|
Function wst_CreateInstance_SDMTabularServiceSoap(const AFormat : string = 'SOAP:'; const ATransport : string = 'HTTP:'):SDMTabularServiceSoap;
|
|
|
|
Implementation
|
|
uses wst_resources_imp, metadata_repository;
|
|
|
|
|
|
Function wst_CreateInstance_SDMTabularServiceSoap(const AFormat : string; const ATransport : string):SDMTabularServiceSoap;
|
|
Begin
|
|
Result := TSDMTabularServiceSoap_Proxy.Create('SDMTabularServiceSoap',AFormat+GetServiceDefaultFormatProperties(TypeInfo(SDMTabularServiceSoap)),ATransport + 'address=' + GetServiceDefaultAddress(TypeInfo(SDMTabularServiceSoap)));
|
|
End;
|
|
|
|
{ TSDMTabularServiceSoap_Proxy implementation }
|
|
|
|
class function TSDMTabularServiceSoap_Proxy.GetServiceType() : PTypeInfo;
|
|
begin
|
|
result := TypeInfo(SDMTabularServiceSoap);
|
|
end;
|
|
|
|
function TSDMTabularServiceSoap_Proxy.RunQuery(
|
|
Const RunQueryParam : RunQueryType
|
|
):RunQueryResponse;
|
|
Var
|
|
locSerializer : IFormatterClient;
|
|
strPrmName : string;
|
|
Begin
|
|
locSerializer := GetSerializer();
|
|
Try
|
|
locSerializer.BeginCall('RunQuery', GetTarget(),(Self as ICallContext));
|
|
locSerializer.Put('RunQuery', TypeInfo(RunQueryType), RunQueryParam);
|
|
locSerializer.EndCall();
|
|
|
|
MakeCall();
|
|
|
|
locSerializer.BeginCallRead((Self as ICallContext));
|
|
TObject(Result) := Nil;
|
|
strPrmName := 'RunQueryResponse';
|
|
locSerializer.Get(TypeInfo(RunQueryResponse), strPrmName, Result);
|
|
|
|
Finally
|
|
locSerializer.Clear();
|
|
End;
|
|
End;
|
|
|
|
|
|
initialization
|
|
{$i SDMTabularService.wst}
|
|
|
|
{$IF DECLARED(Register_SDMTabularService_ServiceMetadata)}
|
|
Register_SDMTabularService_ServiceMetadata();
|
|
{$IFEND}
|
|
End.
|