📄 ccomms.pas
字号:
// ************************************************************************ //
// The types declared in this file were generated from data read from the
// WSDL File described below:
// WSDL : http://www.soapengine.com/lucin/salcentral/ccomms.asmx?wsdl
// Encoding : utf-8
// Version : 1.0
// (11/09/2002 11:31:00 PM - $Revision: 1.9.1.0.1.0.1.9 $)
// ************************************************************************ //
unit ccomms;
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.
// ************************************************************************ //
// !:boolean - "http://www.w3.org/2001/XMLSchema"
// !:string - "http://www.w3.org/2001/XMLSchema"
// !:long - "http://www.w3.org/2001/XMLSchema"
Users = class; { "http://www.soapengine.com/lucin/salcentral/ccomms.asmx" }
{ "http://www.soapengine.com/lucin/salcentral/ccomms.asmx" }
MailFormat = (Text, Html);
// ************************************************************************ //
// Namespace : http://www.soapengine.com/lucin/salcentral/ccomms.asmx
// ************************************************************************ //
Users = class(TRemotable)
private
Fs_schema: String;
published
property s_schema: String read Fs_schema write Fs_schema;
end;
// ************************************************************************ //
// Namespace : http://www.soapengine.com/lucin/salcentral/ccomms.asmx
// soapAction: http://www.soapengine.com/lucin/salcentral/ccomms.asmx/%operationName%
// transport : http://schemas.xmlsoap.org/soap/http
// style : document
// binding : ccommsSoap
// service : ccomms
// port : ccommsSoap
// URL : http://www.soapengine.com/lucin/salcentral/ccomms.asmx
// ************************************************************************ //
ccommsSoap = interface(IInvokable)
['{B1C8C0CE-5F5E-DA0F-D6B7-FA26A65D2283}']
function SendNewsletter(const AdminUserID: Int64; const Password: String; const Sender: String; const Users: Users; const Subject: String; const NewsLetter: String; const MessageType: MailFormat): Boolean; stdcall;
function IsEmailAddress(const UserID: Int64; const Password: String; const EmailAddress: String): Boolean; stdcall;
function SendEmail(const Sender: String; const Recipient: String; const Subject: String; const Message: String; const MessageType: MailFormat): Boolean; stdcall;
function SendBulkEmail(const AdminUserID: Int64; const Password: String; const Sender: String; const Recipient: String; const Subject: String; const Message: String; const BCCRecipients: String; const CCRecipients: String; const MessageType: MailFormat): Boolean; stdcall;
function GetUserID(const EmailAddress: String; const Name: String): String; stdcall;
end;
function GetccommsSoap(UseWSDL: Boolean=System.False; Addr: string=''): ccommsSoap;
implementation
uses SOAPHTTPClient;
function GetccommsSoap(UseWSDL: Boolean; Addr: string): ccommsSoap;
const
defWSDL = 'http://www.soapengine.com/lucin/salcentral/ccomms.asmx?wsdl';
defURL = 'http://www.soapengine.com/lucin/salcentral/ccomms.asmx';
defSvc = 'ccomms';
defPrt = 'ccommsSoap';
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 ccommsSoap);
finally
if Result = nil then
RIO.Free;
end;
end;
initialization
InvRegistry.RegisterInterface(TypeInfo(ccommsSoap), 'http://www.soapengine.com/lucin/salcentral/ccomms.asmx', 'utf-8');
InvRegistry.RegisterDefaultSOAPAction(TypeInfo(ccommsSoap), 'http://www.soapengine.com/lucin/salcentral/ccomms.asmx/%operationName%');
InvRegistry.RegisterInvokeOptions(TypeInfo(ccommsSoap), ioDocument);
RemClassRegistry.RegisterXSInfo(TypeInfo(MailFormat), 'http://www.soapengine.com/lucin/salcentral/ccomms.asmx', 'MailFormat');
RemClassRegistry.RegisterXSClass(Users, 'http://www.soapengine.com/lucin/salcentral/ccomms.asmx', 'Users');
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -