3
提供されたWSDLを使用して統合しようとしている会社からAPIを取得しました。私のコードでAPI関数(SOAP)を呼び出すDelphi
AppointmentRequest = class(TRemotable)
private
FStartDate: TXSDateTime;
FEndDate: TXSDateTime;
FProperty_: Property_;
FServiceIDs: ArrayOfInt;
public
destructor Destroy; override;
published
property StartDate: TXSDateTime read FStartDate write FStartDate;
property EndDate: TXSDateTime read FEndDate write FEndDate;
property Property_: Property_ read FProperty_ write FProperty_;
property ServiceIDs: ArrayOfInt read FServiceIDs write FServiceIDs;
end;
私は次のようにスタート&終了日のプロパティを設定しようとしています:
aApptReq := c_xxx_API.AppointmentRequest.Create();
aApptReq.StartDate.AsDateTime := Date();
aApptReq.EndDate.AsDateTime := Date() + 7;
私は信じてここにいる私は問題を抱えていAPIのコードのスニペットですこれは一点で機能しましたが、アドレスでのアクセス違反のエラーをスローします.AppletReq.StartDate(またはEndDate)にカーソルを移動すると、 'nil'として表示されます。
私はaApptReq.StartDate.Create()を試みましたが、それは役に立ちませんでした。
このAPIオブジェクトの使用方法は何ですか?
お返事ありがとうございます。それはまさに私がする必要があったものでした。 – BrianKE