// ************************************************************************ // // The types declared in this file were generated from data read from the // WSDL File described below: // WSDL : http://221.215.94.251:8002/service.asmx?WSDL // Encoding : utf-8 // Version : 1.0 // (2015-12-23 08:46:36 - 1.33.2.5) // ************************************************************************ // unit servicezh; interface uses InvokeRegistry, SOAPHTTPClient, 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" GetReturnDataResult = class; { "http://tempuri.org/" } GetOutDataResult = class; { "http://tempuri.org/" } GetJGResult = class; { "http://tempuri.org/" } GetCustomsResult = class; { "http://tempuri.org/" } // ************************************************************************ // // Namespace : http://tempuri.org/ // ************************************************************************ // GetReturnDataResult = class(TRemotable) private Fschema: WideString; published property schema: WideString read Fschema write Fschema; end; // ************************************************************************ // // Namespace : http://tempuri.org/ // ************************************************************************ // GetOutDataResult = class(TRemotable) private Fschema: WideString; published property schema: WideString read Fschema write Fschema; end; // ************************************************************************ // // Namespace : http://tempuri.org/ // ************************************************************************ // GetJGResult = class(TRemotable) private Fschema: WideString; published property schema: WideString read Fschema write Fschema; end; // ************************************************************************ // // Namespace : http://tempuri.org/ // ************************************************************************ // GetCustomsResult = class(TRemotable) private Fschema: WideString; published property schema: WideString read Fschema write Fschema; end; // ************************************************************************ // // Namespace : http://tempuri.org/ // soapAction: http://tempuri.org/%operationName% // transport : http://schemas.xmlsoap.org/soap/http // binding : ServiceSoap // service : Service // port : ServiceSoap // URL : http://221.215.94.251:8002/service.asmx // ************************************************************************ // ServiceSoapzh = interface(IInvokable) ['{77573149-9C57-FA51-F11F-EFD527C91BD9}'] function HelloWorld: WideString; stdcall; function GetReturnData(const account: WideString; const password: WideString; const bl_no: WideString): GetReturnDataResult; stdcall; function GetReturnDataXml(const account: WideString; const password: WideString; const bl_no: WideString): WideString; stdcall; function GetOutData(const account: WideString; const password: WideString; const bl_no: WideString): GetOutDataResult; stdcall; function GetOutDataXml(const account: WideString; const password: WideString; const bl_no: WideString): WideString; stdcall; function GetJG(const account: WideString; const password: WideString; const bl_no: WideString): GetJGResult; stdcall; function GetJGXml(const account: WideString; const password: WideString; const bl_no: WideString): WideString; stdcall; function GetCustoms(const account: WideString; const password: WideString; const bl_no: WideString): GetCustomsResult; stdcall; function GetCustomsXml(const account: WideString; const password: WideString; const bl_no: WideString): WideString; stdcall; function CheckBlNo(const account: WideString; const password: WideString; const bl_no: WideString): Boolean; stdcall; function CheckTX(const account: WideString; const password: WideString; const bl_no: WideString): Boolean; stdcall; end; function GetzhServiceSoap(UseWSDL: Boolean=System.False; Addr: string=''; HTTPRIO: THTTPRIO = nil): ServiceSoapzh; implementation function GetzhServiceSoap(UseWSDL: Boolean; Addr: string; HTTPRIO: THTTPRIO): ServiceSoapzh; const defWSDL = 'http://221.215.94.251:8002/service.asmx?WSDL'; defURL = 'http://221.215.94.251:8002/service.asmx'; defSvc = 'Servicezh'; defPrt = 'ServiceSoapzh'; var RIO: THTTPRIO; begin Result := nil; if (Addr = '') then begin if UseWSDL then Addr := defWSDL else Addr := defURL; end; if HTTPRIO = nil then RIO := THTTPRIO.Create(nil) else RIO := HTTPRIO; try Result := (RIO as ServiceSoapzh); if UseWSDL then begin RIO.WSDLLocation := Addr; RIO.Service := defSvc; RIO.Port := defPrt; end else RIO.URL := Addr; finally if (Result = nil) and (HTTPRIO = nil) then RIO.Free; end; end; initialization InvRegistry.RegisterInterface(TypeInfo(ServiceSoapzh), 'http://tempuri.org/', 'utf-8'); InvRegistry.RegisterDefaultSOAPAction(TypeInfo(ServiceSoapzh), 'http://tempuri.org/%operationName%'); InvRegistry.RegisterInvokeOptions(TypeInfo(ServiceSoapzh), ioDocument); RemClassRegistry.RegisterXSClass(GetReturnDataResult, 'http://tempuri.org/', 'GetReturnDataResult'); RemClassRegistry.RegisterXSClass(GetOutDataResult, 'http://tempuri.org/', 'GetOutDataResult'); RemClassRegistry.RegisterXSClass(GetJGResult, 'http://tempuri.org/', 'GetJGResult'); RemClassRegistry.RegisterXSClass(GetCustomsResult, 'http://tempuri.org/', 'GetCustomsResult'); end.