这个Webservice如何调用啊
大家好,现在有这样一个Webservice,请教在客户端如何调用它啊??
unit oneclient_v2;
interface
uses InvokeRegistry, SOAPHTTPClient, Types, XSBuiltIns;
const
IS_OPTN = $0001;
IS_UNBD = $0002;
IS_UNQL = $0008;
type
OneClientCustomerPolicy = class; { "http://www.xyz.com/oneclient-v2/"[Lit][GblCplx] }
Customer = class; { "http://www.xyz.com/oneclient-v2/"[GblCplx] }
Policy = class; { "http://www.xyz.com/oneclient-v2/"[GblCplx] }
PaymentDetails = class; { "http://www.xyz.com/oneclient-v2/"[GblCplx] }
WarrantyDetail = class; { "http://www.xyz.com/oneclient-v2/"[GblCplx] }
DirectDebitPayType = class; { "http://www.xyz.com/oneclient-v2/"[GblCplx] }
PolicyList = class; { "http://www.xyz.com/oneclient-v2/"[GblCplx] }
Errors = class; { "http://www.xyz.com/oneclient-v2/"[GblCplx] }
ErrorList = class; { "http://www.xyz.com/oneclient-v2/"[GblCplx] }
CreditCardPayType = class; { "http://www.xyz.com/oneclient-v2/"[GblCplx] }
InsertPolicy = class; { "http://www.xyz.com/oneclient-v2/"[Lit][GblElm] }
InsertPolicyResponse = class; { "http://www.xyz.com/oneclient-v2/"[Lit][GblCplx] }
InsertPolicyResponse2 = class; { "http://www.xyz.com/oneclient-v2/"[Lit][GblElm] }
{ "http://www.xyz.com/oneclient-v2/"[Smpl] }
CustomerType = (d, c);
{ "http://www.xyz.com/oneclient-v2/"[Smpl] }
Country = (GB);
{ "http://www.xyz.com/oneclient-v2/"[Smpl] }
SpecialNeeds = (blind, braille, deaf, lgprint);
{ "http://www.xyz.com/oneclient-v2/"[Smpl] }
SalesType = (Post, Scanner, Tele, Web);
{ "http://www.xyz.com/oneclient-v2/"[Smpl] }
PayType = (CCA, CCM, DDA, DDM, DDQ, DDT);
{ "http://www.xyz.com/oneclient-v2/"[Smpl] }
CardType = (DBS, DBD, CCV, CCM2);
Policies = array of Policy; { "http://www.xyz.com/oneclient-v2/"[GblCplx] }
OneClientCustomerPolicy = class(TRemotable)
private
FOneClientChannel: WideString;
FTransactionID: WideString;
FCustomer: Customer;
FAlternativeCustomer: Customer;
FPolicies: Policies;
public
constructor Create; override;
destructor Destroy; override;
published
property OneClientChannel: WideString Index (IS_UNQL) read FOneClientChannel write FOneClientChannel;
property TransactionID: WideString Index (IS_UNQL) read FTransactionID write FTransactionID;
property Customer: Customer Index (IS_UNQL) read FCustomer write FCustomer;
property AlternativeCustomer: Customer Index (IS_UNQL) read FAlternativeCustomer write FAlternativeCustomer;
property Policies: Policies Index (IS_UNQL) read FPolicies write FPolicies;
end;
// ************************************************************************ //
// XML : Customer, global, <complexType>
// Namespace : http://www.xyz.com/oneclient-v2/
// ************************************************************************ //
Customer = class(TRemotable)
private
FCustomerType: CustomerType;
FCompanyName: WideString;
FTitle: WideString;
FInitials: WideString;
FSurname: WideString;
FFlatNo: WideString;
FHouseNo: WideString;
FAddressLine1: WideString;
FAddressLine2: WideString;
FAddressLine3: WideString;
FAddressLine4: WideString;
FAddressLine5: WideString;
FPostCode: WideString;
FCountry: Country;
FDateOfBirth: TXSDate;
FHomePhone: WideString;
FMobilePhone: WideString;
FWorkPhone: WideString;
FSpecialNeeds: SpecialNeeds;
FEmailAddress: WideString;
FNoTeleSales3rdParty: Boolean;
FNoTeleSales: Boolean;
FNoMail3rdParty: Boolean;
FNoMail: Boolean;
FNoSms: Boolean;
FNoEmail: Boolean;
public
destructor Destroy; override;
published
property CustomerType: CustomerType Index (IS_UNQL) read FCustomerType write FCustomerType;
property CompanyName: WideString Index (IS_UNQL) read FCompanyName write FCompanyName;
property Title: WideString Index (IS_UNQL) read FTitle write FTitle;
property Initials: WideString Index (IS_UNQL) read FInitials write FInitials;
property Surname: WideString Index (IS_UNQL) read FSurname write FSurname;
property FlatNo: WideString Index (IS_UNQL) read FFlatNo write FFlatNo;
property HouseNo: WideString Index (IS_UNQL) read FHouseNo write FHouseNo;
property AddressLine1: WideString Index (IS_UNQL) read FAddressLine1 write FAddressLine1;
property AddressLine2: WideString Index (IS_UNQL) read FAddressLine2 write FAddressLine2;
property AddressLine3: WideString Index (IS_UNQL) read FAddressLine3 write FAddressLine3;
property AddressLine4: WideString Index (IS_UNQL) read FAddressLine4 write FAddressLine4;
property AddressLine5: WideString Index (IS_UNQL) read FAddressLine5 write FAddressLine5;
property PostCode: WideString Index (IS_UNQL) read FPostCode write FPostCode;
property Country: Country Index (IS_UNQL) read FCountry write FCountry;
property DateOfBirth: TXSDate Index (IS_UNQL) read FDateOfBirth write FDateOfBirth;
property HomePhone: WideString Index (IS_UNQL) read FHomePhone write FHomePhone;
property MobilePhone: WideString Index (IS_UNQL) read FMobilePhone write FMobilePhone;
property WorkPhone: WideString Index (IS_UNQL) read FWorkPhone write FWorkPhone;
property SpecialNeeds: SpecialNeeds Index (IS_UNQL) read FSpecialNeeds write FSpecialNeeds;
property EmailAddress: WideString Index (IS_UNQL) read FEmailAddress write FEmailAddress;
property NoTeleSales3rdParty: Boolean Index (IS_UNQL) read FNoTeleSales3rdParty write FNoTeleSales3rdParty;
property NoTeleSales: Boolean Index (IS_UNQL) read FNoTeleSales write FNoTeleSales;
property NoMail3rdParty: Boolean Index (IS_UNQL) read FNoMail3rdParty write FNoMail3rdParty;
property NoMail: Boolean Index (IS_UNQL) read FNoMail write FNoMail;
property NoSms: Boolean Index (IS_UNQL) read FNoSms write FNoSms;
property NoEmail: Boolean Index (IS_UNQL) read FNoEmail write FNoEmail;
end;
Policy = class(TRemotable)
private
FMailCode: WideString;
FAreaCode: WideString;
FSalePrice: WideString;
FStartDate: TXSDate;
FSalesType: SalesType;
FAgentId: WideString;
FPayType: PayType;
FPaymentDetail: PaymentDetails;
FWarrantyDetail: WarrantyDetail;
public
destructor Destroy; override;
published
property MailCode: WideString Index (IS_UNQL) read FMailCode write FMailCode;
property AreaCode: WideString Index (IS_UNQL) read FAreaCode write FAreaCode;
property SalePrice: WideString Index (IS_UNQL) read FSalePrice write FSalePrice;
property StartDate: TXSDate Index (IS_UNQL) read FStartDate write FStartDate;
property SalesType: SalesType Index (IS_UNQL) read FSalesType write FSalesType;
property AgentId: WideString Index (IS_UNQL) read FAgentId write FAgentId;
property PayType: PayType Index (IS_UNQL) read FPayType write FPayType;
property PaymentDetail: PaymentDetails Index (IS_UNQL) read FPaymentDetail write FPaymentDetail;
property WarrantyDetail: WarrantyDetail Index (IS_UNQL) read FWarrantyDetail write FWarrantyDetail;
end;
PaymentDetails = class(TRemotable)
private
FCreditCardPayType: CreditCardPayType;
FDirectDebitPayType: DirectDebitPayType;
public
destructor Destroy; override;
published
property CreditCardPayType: CreditCardPayType Index (IS_UNQL) read FCreditCardPayType write FCreditCardPayType;
property DirectDebitPayType: DirectDebitPayType Index (IS_UNQL) read FDirectDebitPayType write FDirectDebitPayType;
end;