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.
138 lines
5.2 KiB
Plaintext
138 lines
5.2 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 09:05:48 - $Revision: 1.9.1.0.1.0.1.9 $)
|
|
// ************************************************************************ //
|
|
|
|
unit jfczService;
|
|
|
|
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
|
|
// ************************************************************************ //
|
|
jfczServiceSoap = interface(IInvokable)
|
|
['{D9BF1B1D-C47D-FBB1-DCF0-794D6AFEB183}']
|
|
function GetBLNoInfo(const sBLNO: String; const sKey: String): WideString; stdcall; //='18315FA0-8E5A-4935-8369-91BE89BC6B6A'
|
|
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 GetjfczServiceSoap(UseWSDL: Boolean=System.False; Addr: string=''): jfczServiceSoap;
|
|
|
|
|
|
implementation
|
|
uses SOAPHTTPClient;
|
|
|
|
function GetjfczServiceSoap(UseWSDL: Boolean; Addr: string): jfczServiceSoap;
|
|
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 jfczServiceSoap);
|
|
finally
|
|
if Result = nil then
|
|
RIO.Free;
|
|
end;
|
|
end;
|
|
|
|
|
|
initialization
|
|
InvRegistry.RegisterInterface(TypeInfo(jfczServiceSoap), 'http://www.sdsmart.cn/', 'utf-8');
|
|
InvRegistry.RegisterDefaultSOAPAction(TypeInfo(jfczServiceSoap), 'http://www.sdsmart.cn/%operationName%');
|
|
InvRegistry.RegisterInvokeOptions(TypeInfo(jfczServiceSoap),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.
|