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.

90 lines
3.0 KiB
Plaintext

11 months ago
// ************************************************************************ //
// The types declared in this file were generated from data read from the
// WSDL File described below:
// WSDL : http://www.sdsmart.cn/DongShengWS/Service.asmx?WSDL
// Encoding : utf-8
// Version : 1.0
// (2013-7-26 13:55:13 - 1.33.2.5)
// ************************************************************************ //
unit jfczService;
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"
// ************************************************************************ //
// Namespace : http://www.sdsmart.cn/
// soapAction: http://www.sdsmart.cn/GetBLNoInfo
// transport : http://schemas.xmlsoap.org/soap/http
// binding : ServiceSoap
// service : Service
// port : ServiceSoap
// URL : http://www.sdsmart.cn/DongShengWS/Service.asmx
// ************************************************************************ //
jfczServiceSoap = interface(IInvokable)
['{586AA2ED-7D81-9232-9BBB-9677FC454AAB}']
function GetBLNoInfo(const sBLNO: WideString): WideString; stdcall;
end;
function GetServiceSoapJFCZ(UseWSDL: Boolean=System.False; Addr: string=''; HTTPRIO: THTTPRIO = nil): jfczServiceSoap;
implementation
function GetServiceSoapJFCZ(UseWSDL: Boolean; Addr: string; HTTPRIO: THTTPRIO): jfczServiceSoap;
const
defWSDL = 'http://www.sdsmart.cn/DongShengWS/Service.asmx?WSDL';
defURL = 'http://www.sdsmart.cn/DongShengWS/Service.asmx';
defSvc = 'Service';
defPrt = 'ServiceSoap';
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 jfczServiceSoap);
if UseWSDL then
begin
RIO.WSDLLocation := Addr;
RIO.Service := defSvc;
RIO.Port := defPrt;
RIO.HTTPWebNode.UseUTF8InHeader:=true;
end else
RIO.URL := Addr;
finally
if (Result = nil) and (HTTPRIO = 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/GetBLNoInfo');
InvRegistry.RegisterInvokeOptions(TypeInfo(jfczServiceSoap),ioDocument);
end.