我有两个从同一个 WSDL 导入生成的 Delphi 单元,一个由 XE2 生成,一个由 XE3 生成。我想检查是否有任何显着差异,但是两个文件中定义/实现的顺序都不同。没办法我将能够编辑这些 25000+ 行文件以匹配....
有谁知道我如何进行比较?很可能这些文件是完全相同的,但我对任何微小的差异都很感兴趣......
XE2 文件的示例部分:
FreeBusyResponseType = class; { "http://schemas.microsoft.com/exchange/services/2006/messages"[GblCplx] }
GetUserAvailabilityResponseType = class; { "http://schemas.microsoft.com/exchange/services/2006/messages"[Lit][GblCplx] }
SetUserOofSettingsResponse2 = class; { "http://schemas.microsoft.com/exchange/services/2006/messages"[Lit][GblCplx] }
FieldURIOrConstantType = class; { "http://schemas.microsoft.com/exchange/services/2006/types"[GblCplx] }
MessageXml = class; { "http://schemas.microsoft.com/exchange/services/2006/messages"[Cplx] }
BaseRequestType = class; { "http://schemas.microsoft.com/exchange/services/2006/messages"[GblCplx] }
GetFolderType = class; { "http://schemas.microsoft.com/exchange/services/2006/messages"[Lit][GblCplx] }
BaseMoveCopyItemType = class; { "http://schemas.microsoft.com/exchange/services/2006/messages"[GblCplx] }
CopyItemType = class; { "http://schemas.microsoft.com/exchange/services/2006/messages"[Lit][GblCplx] }
MoveItemType = class; { "http://schemas.microsoft.com/exchange/services/2006/messages"[Lit][GblCplx] }
CreateAttachmentType = class; { "http://schemas.microsoft.com/exchange/services/2006/messages"[Lit][GblCplx] }
BaseMoveCopyFolderType = class; { "http://schemas.microsoft.com/exchange/services/2006/messages"[GblCplx] }
MoveFolderType = class; { "http://schemas.microsoft.com/exchange/services/2006/messages"[Lit][GblCplx] }
CopyFolderType = class; { "http://schemas.microsoft.com/exchange/services/2006/messages"[Lit][GblCplx] }
GetItemType = class; { "http://schemas.microsoft.com/exchange/services/2006/messages"[Lit][GblCplx] }
SetUserOofSettingsRequest2 = class; { "http://schemas.microsoft.com/exchange/services/2006/messages"[Lit][GblCplx] }
GetUserOofSettingsRequest2 = class; { "http://schemas.microsoft.com/exchange/services/2006/messages"[Lit][GblCplx] }
BaseDelegateType = class; { "http://schemas.microsoft.com/exchange/services/2006/messages"[GblCplx] }
GetRoomListsType = class; { "http://schemas.microsoft.com/exchange/services/2006/messages"[Lit][GblCplx] }
GetRoomsType = class; { "http://schemas.microsoft.com/exchange/services/2006/messages"[Lit][GblCplx] }
[snip]
implementation
uses SysUtils;
destructor FreeBusyResponseType.Destroy;
begin
SysUtils.FreeAndNil(FResponseMessage);
SysUtils.FreeAndNil(FFreeBusyView);
inherited Destroy;
end;
procedure FreeBusyResponseType.SetResponseMessage(Index: Integer; const AResponseMessageType: ResponseMessageType);
begin
FResponseMessage := AResponseMessageType;
FResponseMessage_Specified := True;
end;
XE3 文件的示例部分:
GetUserAvailabilityResponseType = class; { "http://schemas.microsoft.com/exchange/services/2006/messages"[Lit][GblCplx] }
FreeBusyResponseType = class; { "http://schemas.microsoft.com/exchange/services/2006/messages"[GblCplx] }
FieldURIOrConstantType = class; { "http://schemas.microsoft.com/exchange/services/2006/types"[GblCplx] }
SetUserOofSettingsResponse2 = class; { "http://schemas.microsoft.com/exchange/services/2006/messages"[Lit][GblCplx] }
MessageXml = class; { "http://schemas.microsoft.com/exchange/services/2006/messages"[Cplx] }
BaseRequestType = class; { "http://schemas.microsoft.com/exchange/services/2006/messages"[GblCplx] }
BaseMoveCopyFolderType = class; { "http://schemas.microsoft.com/exchange/services/2006/messages"[GblCplx] }
MoveFolderType = class; { "http://schemas.microsoft.com/exchange/services/2006/messages"[Lit][GblCplx] }
CopyFolderType = class; { "http://schemas.microsoft.com/exchange/services/2006/messages"[Lit][GblCplx] }
CreateAttachmentType = class; { "http://schemas.microsoft.com/exchange/services/2006/messages"[Lit][GblCplx] }
GetItemType = class; { "http://schemas.microsoft.com/exchange/services/2006/messages"[Lit][GblCplx] }
BaseMoveCopyItemType = class; { "http://schemas.microsoft.com/exchange/services/2006/messages"[GblCplx] }
MoveItemType = class; { "http://schemas.microsoft.com/exchange/services/2006/messages"[Lit][GblCplx] }
CopyItemType = class; { "http://schemas.microsoft.com/exchange/services/2006/messages"[Lit][GblCplx] }
GetRoomsType = class; { "http://schemas.microsoft.com/exchange/services/2006/messages"[Lit][GblCplx] }
SetUserOofSettingsRequest2 = class; { "http://schemas.microsoft.com/exchange/services/2006/messages"[Lit][GblCplx] }
BaseDelegateType = class; { "http://schemas.microsoft.com/exchange/services/2006/messages"[GblCplx] }
DeleteUserConfigurationType = class; { "http://schemas.microsoft.com/exchange/services/2006/messages"[Lit][GblCplx] }
CreateUserConfigurationType = class; { "http://schemas.microsoft.com/exchange/services/2006/messages"[Lit][GblCplx] }
UpdateUserConfigurationType = class; { "http://schemas.microsoft.com/exchange/services/2006/messages"[Lit][GblCplx] }
[snip]
implementation
uses SysUtils;
constructor GetUserAvailabilityResponseType.Create;
begin
inherited Create;
FSerializationOptions := [xoLiteralParam];
end;
destructor GetUserAvailabilityResponseType.Destroy;
var
I: Integer;
begin
for I := 0 to System.Length(FFreeBusyResponseArray)-1 do
SysUtils.FreeAndNil(FFreeBusyResponseArray[I]);
System.SetLength(FFreeBusyResponseArray, 0);
SysUtils.FreeAndNil(FSuggestionsResponse);
inherited Destroy;
end;