You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
137 lines
5.1 KiB
Plaintext
137 lines
5.1 KiB
Plaintext
// ************************************************************************ //
|
|
// The types declared in this file were generated from data read from the
|
|
// WSDL File described below:
|
|
// WSDL : http://www.sdsmart.cn/JKWebService/BLService.asmx?WSDL
|
|
// Encoding : utf-8
|
|
// Version : 1.0
|
|
// (2016-11-23 12:28:29 - $Revision: 1.9.1.0.1.0.1.9 $)
|
|
// ************************************************************************ //
|
|
|
|
unit BLService;
|
|
|
|
interface
|
|
|
|
uses InvokeRegistry, Types, XSBuiltIns;
|
|
|
|
type
|
|
|
|
// ************************************************************************ //
|
|
// The following types, referred to in the WSDL document are not being represented
|
|
// in this file. They are either aliases[@] of other types represented or were referred
|
|
// to but never[!] declared in the document. The types from the latter category
|
|
// typically map to predefined/known XML or Borland types; however, they could also
|
|
// indicate incorrect WSDL documents that failed to declare or import a schema type.
|
|
// ************************************************************************ //
|
|
// !:string - "http://www.w3.org/2001/XMLSchema"
|
|
// !:boolean - "http://www.w3.org/2001/XMLSchema"
|
|
|
|
GetInportCntrInfoResult = class; { "http://www.sdsmart.cn/" }
|
|
GetReturnCntrInfoResult = class; { "http://www.sdsmart.cn/" }
|
|
GetLTCntrInfoResult = class; { "http://www.sdsmart.cn/" }
|
|
|
|
|
|
|
|
// ************************************************************************ //
|
|
// Namespace : http://www.sdsmart.cn/
|
|
// ************************************************************************ //
|
|
GetInportCntrInfoResult = class(TRemotable)
|
|
private
|
|
Fs_schema: String;
|
|
published
|
|
property s_schema: String read Fs_schema write Fs_schema;
|
|
end;
|
|
|
|
|
|
|
|
// ************************************************************************ //
|
|
// Namespace : http://www.sdsmart.cn/
|
|
// ************************************************************************ //
|
|
GetReturnCntrInfoResult = class(TRemotable)
|
|
private
|
|
Fs_schema: String;
|
|
published
|
|
property s_schema: String read Fs_schema write Fs_schema;
|
|
end;
|
|
|
|
|
|
|
|
// ************************************************************************ //
|
|
// Namespace : http://www.sdsmart.cn/
|
|
// ************************************************************************ //
|
|
GetLTCntrInfoResult = class(TRemotable)
|
|
private
|
|
Fs_schema: String;
|
|
published
|
|
property s_schema: String read Fs_schema write Fs_schema;
|
|
end;
|
|
|
|
|
|
// ************************************************************************ //
|
|
// Namespace : http://www.sdsmart.cn/
|
|
// soapAction: http://www.sdsmart.cn/%operationName%
|
|
// transport : http://schemas.xmlsoap.org/soap/http
|
|
// binding : BLServiceSoap
|
|
// service : BLService
|
|
// port : BLServiceSoap
|
|
// URL : http://www.sdsmart.cn/JKWebService/BLService.asmx
|
|
// ************************************************************************ //
|
|
BLServiceSoap = interface(IInvokable)
|
|
['{D9BF1B1D-C47D-FBB1-DCF0-794D6AFEB183}']
|
|
function GetBLNoInfo(const sBLNO: String; const sKey: String): WideString; stdcall;
|
|
function ExistBLNo(const sBLNO: String; const sKey: String): Boolean; stdcall;
|
|
function GetCIQEXAMINEInfo(const sBLNO: String; const sKey: String): String; stdcall;
|
|
function GetInportCntrInfo(const sBLNO: String; const sKey: String): GetInportCntrInfoResult; stdcall;
|
|
function GetReturnCntrInfo(const sBLNO: String; const sKey: String): GetReturnCntrInfoResult; stdcall;
|
|
function GetLTCntrInfo(const sBLNO: String; const sKey: String): GetLTCntrInfoResult; stdcall;
|
|
function GetIsOptrDC(const sBLNO: String; const sKey: String): Boolean; stdcall;
|
|
end;
|
|
|
|
function GetBLServiceSoap(UseWSDL: Boolean=System.False; Addr: string=''): BLServiceSoap;
|
|
|
|
|
|
implementation
|
|
uses SOAPHTTPClient;
|
|
|
|
function GetBLServiceSoap(UseWSDL: Boolean; Addr: string): BLServiceSoap;
|
|
const
|
|
defWSDL = 'http://www.sdsmart.cn/JKWebService/BLService.asmx?WSDL';
|
|
defURL = 'http://www.sdsmart.cn/JKWebService/BLService.asmx';
|
|
defSvc = 'BLService';
|
|
defPrt = 'BLServiceSoap';
|
|
var
|
|
RIO: THTTPRIO;
|
|
begin
|
|
Result := nil;
|
|
if (Addr = '') then
|
|
begin
|
|
if UseWSDL then
|
|
Addr := defWSDL
|
|
else
|
|
Addr := defURL;
|
|
end;
|
|
RIO := THTTPRIO.Create(nil);
|
|
try
|
|
if UseWSDL then
|
|
begin
|
|
RIO.WSDLLocation := Addr;
|
|
RIO.Service := defSvc;
|
|
RIO.Port := defPrt;
|
|
end else
|
|
RIO.URL := Addr;
|
|
Result := (RIO as BLServiceSoap);
|
|
finally
|
|
if Result = nil then
|
|
RIO.Free;
|
|
end;
|
|
end;
|
|
|
|
|
|
initialization
|
|
InvRegistry.RegisterInterface(TypeInfo(BLServiceSoap), 'http://www.sdsmart.cn/', 'utf-8');
|
|
InvRegistry.RegisterDefaultSOAPAction(TypeInfo(BLServiceSoap), 'http://www.sdsmart.cn/%operationName%');
|
|
InvRegistry.RegisterInvokeOptions(TypeInfo(BLServiceSoap),ioDocument);
|
|
RemClassRegistry.RegisterXSClass(GetInportCntrInfoResult, 'http://www.sdsmart.cn/', 'GetInportCntrInfoResult');
|
|
RemClassRegistry.RegisterXSClass(GetReturnCntrInfoResult, 'http://www.sdsmart.cn/', 'GetReturnCntrInfoResult');
|
|
RemClassRegistry.RegisterXSClass(GetLTCntrInfoResult, 'http://www.sdsmart.cn/', 'GetLTCntrInfoResult');
|
|
|
|
end. |