Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Este el código del unit generado, tras la importación:
- [DELPHI]// ************************************************************************ //
- // The types declared in this file were generated from data read from the
- // WSDL File described below:
- // WSDL : http://localhost/sugarCRM/service/v4/soap.php?wsdl
- // >Import : http://localhost/sugarCRM/service/v4/soap.php?wsdl>0
- // >Import : http://schemas.xmlsoap.org/soap/encoding/
- // >Import : http://schemas.xmlsoap.org/wsdl/
- // Encoding : ISO-8859-1
- // Version : 1.0
- // (1/27/2017 3:13:47 PM - - $Rev: 86412 $)
- // ************************************************************************ //
- unit soap;
- interface
- uses Soap.InvokeRegistry, Soap.SOAPHTTPClient, System.Types, Soap.XSBuiltIns;
- const
- IS_OPTN = $0001;
- IS_UNBD = $0002;
- IS_ATTR = $0010;
- 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 Embarcadero types; however, they could also
- // indicate incorrect WSDL documents that failed to declare or import a schema type.
- // ************************************************************************ //
- // !:ID - "http://www.w3.org/2001/XMLSchema"[Gbl]
- // !:anyURI - "http://www.w3.org/2001/XMLSchema"[Gbl]
- // !:int - "http://www.w3.org/2001/XMLSchema"[Gbl]
- // !:string - "http://www.w3.org/2001/XMLSchema"[Gbl]
- // !:boolean - "http://www.w3.org/2001/XMLSchema"[Gbl]
- new_return_document_revision = class; { "http://www.sugarcrm.com/sugarcrm"[GblCplx] }
- return_search_result = class; { "http://www.sugarcrm.com/sugarcrm"[GblCplx] }
- module_list = class; { "http://www.sugarcrm.com/sugarcrm"[GblCplx] }
- int2 = class; { "http://schemas.xmlsoap.org/soap/encoding/"[GblCplx] }
- get_entries_count_result = class; { "http://www.sugarcrm.com/sugarcrm"[GblCplx] }
- new_set_relationship_list_result = class; { "http://www.sugarcrm.com/sugarcrm"[GblCplx] }
- new_return_note_attachment = class; { "http://www.sugarcrm.com/sugarcrm"[GblCplx] }
- new_note_attachment = class; { "http://www.sugarcrm.com/sugarcrm"[GblCplx] }
- user_auth = class; { "http://www.sugarcrm.com/sugarcrm"[GblCplx] }
- upcoming_activity_entry = class; { "http://www.sugarcrm.com/sugarcrm"[GblCplx] }
- last_viewed_entry = class; { "http://www.sugarcrm.com/sugarcrm"[GblCplx] }
- acl_list_entry = class; { "http://www.sugarcrm.com/sugarcrm"[GblCplx] }
- get_server_info_result = class; { "http://www.sugarcrm.com/sugarcrm"[GblCplx] }
- new_set_entry_result = class; { "http://www.sugarcrm.com/sugarcrm"[GblCplx] }
- document_revision = class; { "http://www.sugarcrm.com/sugarcrm"[GblCplx] }
- string_2 = class; { "http://schemas.xmlsoap.org/soap/encoding/"[GblCplx] }
- int = class; { "http://schemas.xmlsoap.org/soap/encoding/"[GblElm] }
- string_ = class; { "http://schemas.xmlsoap.org/soap/encoding/"[GblElm] }
- boolean_2 = class; { "http://schemas.xmlsoap.org/soap/encoding/"[GblCplx] }
- boolean_ = class; { "http://schemas.xmlsoap.org/soap/encoding/"[GblElm] }
- module_list_entry = class; { "http://www.sugarcrm.com/sugarcrm"[GblCplx] }
- anyURI2 = class; { "http://schemas.xmlsoap.org/soap/encoding/"[GblCplx] }
- anyURI = class; { "http://schemas.xmlsoap.org/soap/encoding/"[GblElm] }
- ID2 = class; { "http://schemas.xmlsoap.org/soap/encoding/"[GblCplx] }
- ID = class; { "http://schemas.xmlsoap.org/soap/encoding/"[GblElm] }
- field = class; { "http://www.sugarcrm.com/sugarcrm"[GblCplx] }
- search_link_name_value = class; { "http://www.sugarcrm.com/sugarcrm"[GblCplx] }
- get_entry_list_result_version2 = class; { "http://www.sugarcrm.com/sugarcrm"[GblCplx] }
- get_entry_result_version2 = class; { "http://www.sugarcrm.com/sugarcrm"[GblCplx] }
- link_list2 = class; { "http://www.sugarcrm.com/sugarcrm"[GblCplx] }
- link_name_value = class; { "http://www.sugarcrm.com/sugarcrm"[GblCplx] }
- link_value2 = class; { "http://www.sugarcrm.com/sugarcrm"[GblCplx] }
- entry_value = class; { "http://www.sugarcrm.com/sugarcrm"[GblCplx] }
- name_value = class; { "http://www.sugarcrm.com/sugarcrm"[GblCplx] }
- link_field = class; { "http://www.sugarcrm.com/sugarcrm"[GblCplx] }
- new_module_fields = class; { "http://www.sugarcrm.com/sugarcrm"[GblCplx] }
- link_name_to_fields_array = class; { "http://www.sugarcrm.com/sugarcrm"[GblCplx] }
- new_set_entries_result = class; { "http://www.sugarcrm.com/sugarcrm"[GblCplx] }
- // ************************************************************************ //
- // XML : new_return_document_revision, global, <complexType>
- // Namespace : http://www.sugarcrm.com/sugarcrm
- // ************************************************************************ //
- new_return_document_revision = class(TRemotable)
- private
- Fdocument_revision: document_revision;
- public
- destructor Destroy; override;
- published
- property document_revision: document_revision read Fdocument_revision write Fdocument_revision;
- end;
- search_link_list = array of search_link_name_value; { "http://www.sugarcrm.com/sugarcrm"[GblCplx] }
- // ************************************************************************ //
- // XML : return_search_result, global, <complexType>
- // Namespace : http://www.sugarcrm.com/sugarcrm
- // ************************************************************************ //
- return_search_result = class(TRemotable)
- private
- Fentry_list: search_link_list;
- public
- destructor Destroy; override;
- published
- property entry_list: search_link_list read Fentry_list write Fentry_list;
- end;
- module_list_array = array of module_list_entry; { "http://www.sugarcrm.com/sugarcrm"[GblCplx] }
- // ************************************************************************ //
- // XML : module_list, global, <complexType>
- // Namespace : http://www.sugarcrm.com/sugarcrm
- // ************************************************************************ //
- module_list = class(TRemotable)
- private
- Fmodules: module_list_array;
- public
- destructor Destroy; override;
- published
- property modules: module_list_array read Fmodules write Fmodules;
- end;
- acl_list = array of acl_list_entry; { "http://www.sugarcrm.com/sugarcrm"[GblCplx] }
- upcoming_activities_list = array of upcoming_activity_entry; { "http://www.sugarcrm.com/sugarcrm"[GblCplx] }
- last_viewed_list = array of last_viewed_entry; { "http://www.sugarcrm.com/sugarcrm"[GblCplx] }
- link_lists = array of link_list2; { "http://www.sugarcrm.com/sugarcrm"[GblCplx] }
- // ************************************************************************ //
- // XML : int, global, <complexType>
- // Namespace : http://schemas.xmlsoap.org/soap/encoding/
- // ************************************************************************ //
- int2 = class(TRemotable)
- private
- FText: Integer;
- Fid: string;
- Fid_Specified: boolean;
- Fhref: string;
- Fhref_Specified: boolean;
- procedure Setid(Index: Integer; const Astring: string);
- function id_Specified(Index: Integer): boolean;
- procedure Sethref(Index: Integer; const Astring: string);
- function href_Specified(Index: Integer): boolean;
- published
- property Text: Integer read FText write FText;
- property id: string Index (IS_ATTR or IS_OPTN) read Fid write Setid stored id_Specified;
- property href: string Index (IS_ATTR or IS_OPTN) read Fhref write Sethref stored href_Specified;
- end;
- // ************************************************************************ //
- // XML : get_entries_count_result, global, <complexType>
- // Namespace : http://www.sugarcrm.com/sugarcrm
- // ************************************************************************ //
- get_entries_count_result = class(TRemotable)
- private
- Fresult_count: Integer;
- published
- property result_count: Integer read Fresult_count write Fresult_count;
- end;
- // ************************************************************************ //
- // XML : new_set_relationship_list_result, global, <complexType>
- // Namespace : http://www.sugarcrm.com/sugarcrm
- // ************************************************************************ //
- new_set_relationship_list_result = class(TRemotable)
- private
- Fcreated: Integer;
- Ffailed: Integer;
- Fdeleted: Integer;
- published
- property created: Integer read Fcreated write Fcreated;
- property failed: Integer read Ffailed write Ffailed;
- property deleted: Integer read Fdeleted write Fdeleted;
- end;
- // ************************************************************************ //
- // XML : new_return_note_attachment, global, <complexType>
- // Namespace : http://www.sugarcrm.com/sugarcrm
- // ************************************************************************ //
- new_return_note_attachment = class(TRemotable)
- private
- Fnote_attachment: new_note_attachment;
- public
- destructor Destroy; override;
- published
- property note_attachment: new_note_attachment read Fnote_attachment write Fnote_attachment;
- end;
- // ************************************************************************ //
- // XML : new_note_attachment, global, <complexType>
- // Namespace : http://www.sugarcrm.com/sugarcrm
- // ************************************************************************ //
- new_note_attachment = class(TRemotable)
- private
- Fid: string;
- Ffilename: string;
- Ffile_: string;
- Frelated_module_id: string;
- Frelated_module_name: string;
- published
- property id: string read Fid write Fid;
- property filename: string read Ffilename write Ffilename;
- property file_: string read Ffile_ write Ffile_;
- property related_module_id: string read Frelated_module_id write Frelated_module_id;
- property related_module_name: string read Frelated_module_name write Frelated_module_name;
- end;
- // ************************************************************************ //
- // XML : user_auth, global, <complexType>
- // Namespace : http://www.sugarcrm.com/sugarcrm
- // ************************************************************************ //
- user_auth = class(TRemotable)
- private
- Fuser_name: string;
- Fpassword: string;
- published
- property user_name: string read Fuser_name write Fuser_name;
- property password: string read Fpassword write Fpassword;
- end;
- // ************************************************************************ //
- // XML : upcoming_activity_entry, global, <complexType>
- // Namespace : http://www.sugarcrm.com/sugarcrm
- // ************************************************************************ //
- upcoming_activity_entry = class(TRemotable)
- private
- Fid: string;
- Fmodule: string;
- Fdate_due: string;
- Fsummary: string;
- published
- property id: string read Fid write Fid;
- property module: string read Fmodule write Fmodule;
- property date_due: string read Fdate_due write Fdate_due;
- property summary: string read Fsummary write Fsummary;
- end;
- // ************************************************************************ //
- // XML : last_viewed_entry, global, <complexType>
- // Namespace : http://www.sugarcrm.com/sugarcrm
- // ************************************************************************ //
- last_viewed_entry = class(TRemotable)
- private
- Fid: string;
- Fitem_id: string;
- Fitem_summary: string;
- Fmodule_name: string;
- Fmonitor_id: string;
- Fdate_modified: string;
- published
- property id: string read Fid write Fid;
- property item_id: string read Fitem_id write Fitem_id;
- property item_summary: string read Fitem_summary write Fitem_summary;
- property module_name: string read Fmodule_name write Fmodule_name;
- property monitor_id: string read Fmonitor_id write Fmonitor_id;
- property date_modified: string read Fdate_modified write Fdate_modified;
- end;
- md5_results = array of string; { "http://www.sugarcrm.com/sugarcrm"[GblCplx] }
- module_names = array of string; { "http://www.sugarcrm.com/sugarcrm"[GblCplx] }
- // ************************************************************************ //
- // XML : acl_list_entry, global, <complexType>
- // Namespace : http://www.sugarcrm.com/sugarcrm
- // ************************************************************************ //
- acl_list_entry = class(TRemotable)
- private
- Faction: string;
- Faccess: string;
- published
- property action: string read Faction write Faction;
- property access: string read Faccess write Faccess;
- end;
- // ************************************************************************ //
- // XML : get_server_info_result, global, <complexType>
- // Namespace : http://www.sugarcrm.com/sugarcrm
- // ************************************************************************ //
- get_server_info_result = class(TRemotable)
- private
- Fflavor: string;
- Fversion: string;
- Fgmt_time: string;
- published
- property flavor: string read Fflavor write Fflavor;
- property version: string read Fversion write Fversion;
- property gmt_time: string read Fgmt_time write Fgmt_time;
- end;
- // ************************************************************************ //
- // XML : new_set_entry_result, global, <complexType>
- // Namespace : http://www.sugarcrm.com/sugarcrm
- // ************************************************************************ //
- new_set_entry_result = class(TRemotable)
- private
- Fid: string;
- published
- property id: string read Fid write Fid;
- end;
- // ************************************************************************ //
- // XML : document_revision, global, <complexType>
- // Namespace : http://www.sugarcrm.com/sugarcrm
- // ************************************************************************ //
- document_revision = class(TRemotable)
- private
- Fid: string;
- Fdocument_name: string;
- Frevision: string;
- Ffilename: string;
- Ffile_: string;
- published
- property id: string read Fid write Fid;
- property document_name: string read Fdocument_name write Fdocument_name;
- property revision: string read Frevision write Frevision;
- property filename: string read Ffilename write Ffilename;
- property file_: string read Ffile_ write Ffile_;
- end;
- // ************************************************************************ //
- // XML : string, global, <complexType>
- // Namespace : http://schemas.xmlsoap.org/soap/encoding/
- // ************************************************************************ //
- string_2 = class(TRemotable)
- private
- FText: string;
- Fid: string;
- Fid_Specified: boolean;
- Fhref: string;
- Fhref_Specified: boolean;
- procedure Setid(Index: Integer; const Astring: string);
- function id_Specified(Index: Integer): boolean;
- procedure Sethref(Index: Integer; const Astring: string);
- function href_Specified(Index: Integer): boolean;
- published
- property Text: string read FText write FText;
- property id: string Index (IS_ATTR or IS_OPTN) read Fid write Setid stored id_Specified;
- property href: string Index (IS_ATTR or IS_OPTN) read Fhref write Sethref stored href_Specified;
- end;
- // ************************************************************************ //
- // XML : int, global, <element>
- // Namespace : http://schemas.xmlsoap.org/soap/encoding/
- // ************************************************************************ //
- int = class(int2)
- private
- published
- end;
- // ************************************************************************ //
- // XML : string, global, <element>
- // Namespace : http://schemas.xmlsoap.org/soap/encoding/
- // ************************************************************************ //
- string_ = class(string_2)
- private
- published
- end;
- // ************************************************************************ //
- // XML : boolean, global, <complexType>
- // Namespace : http://schemas.xmlsoap.org/soap/encoding/
- // ************************************************************************ //
- boolean_2 = class(TRemotable)
- private
- FText: Boolean;
- Fid: string;
- Fid_Specified: boolean;
- Fhref: string;
- Fhref_Specified: boolean;
- procedure Setid(Index: Integer; const Astring: string);
- function id_Specified(Index: Integer): boolean;
- procedure Sethref(Index: Integer; const Astring: string);
- function href_Specified(Index: Integer): boolean;
- published
- property Text: Boolean read FText write FText;
- property id: string Index (IS_ATTR or IS_OPTN) read Fid write Setid stored id_Specified;
- property href: string Index (IS_ATTR or IS_OPTN) read Fhref write Sethref stored href_Specified;
- end;
- // ************************************************************************ //
- // XML : boolean, global, <element>
- // Namespace : http://schemas.xmlsoap.org/soap/encoding/
- // ************************************************************************ //
- boolean_ = class(boolean_2)
- private
- published
- end;
- // ************************************************************************ //
- // XML : module_list_entry, global, <complexType>
- // Namespace : http://www.sugarcrm.com/sugarcrm
- // ************************************************************************ //
- module_list_entry = class(TRemotable)
- private
- Fmodule_key: string;
- Fmodule_label: string;
- Ffavorite_enabled: Boolean;
- Facls: acl_list;
- public
- destructor Destroy; override;
- published
- property module_key: string read Fmodule_key write Fmodule_key;
- property module_label: string read Fmodule_label write Fmodule_label;
- property favorite_enabled: Boolean read Ffavorite_enabled write Ffavorite_enabled;
- property acls: acl_list read Facls write Facls;
- end;
- // ************************************************************************ //
- // XML : anyURI, global, <complexType>
- // Namespace : http://schemas.xmlsoap.org/soap/encoding/
- // ************************************************************************ //
- anyURI2 = class(TRemotable)
- private
- FText: string;
- Fid: string;
- Fid_Specified: boolean;
- Fhref: string;
- Fhref_Specified: boolean;
- procedure Setid(Index: Integer; const Astring: string);
- function id_Specified(Index: Integer): boolean;
- procedure Sethref(Index: Integer; const Astring: string);
- function href_Specified(Index: Integer): boolean;
- published
- property Text: string read FText write FText;
- property id: string Index (IS_ATTR or IS_OPTN) read Fid write Setid stored id_Specified;
- property href: string Index (IS_ATTR or IS_OPTN) read Fhref write Sethref stored href_Specified;
- end;
- // ************************************************************************ //
- // XML : anyURI, global, <element>
- // Namespace : http://schemas.xmlsoap.org/soap/encoding/
- // ************************************************************************ //
- anyURI = class(anyURI2)
- private
- published
- end;
- // ************************************************************************ //
- // XML : ID, global, <complexType>
- // Namespace : http://schemas.xmlsoap.org/soap/encoding/
- // ************************************************************************ //
- ID2 = class(TRemotable)
- private
- FText: string;
- Fid: string;
- Fid_Specified: boolean;
- Fhref: string;
- Fhref_Specified: boolean;
- procedure Setid(Index: Integer; const Astring: string);
- function id_Specified(Index: Integer): boolean;
- procedure Sethref(Index: Integer; const Astring: string);
- function href_Specified(Index: Integer): boolean;
- published
- property Text: string read FText write FText;
- property id: string Index (IS_ATTR or IS_OPTN) read Fid write Setid stored id_Specified;
- property href: string Index (IS_ATTR or IS_OPTN) read Fhref write Sethref stored href_Specified;
- end;
- // ************************************************************************ //
- // XML : ID, global, <element>
- // Namespace : http://schemas.xmlsoap.org/soap/encoding/
- // ************************************************************************ //
- ID = class(ID2)
- private
- published
- end;
- name_value_list = array of name_value; { "http://www.sugarcrm.com/sugarcrm"[GblCplx] }
- // ************************************************************************ //
- // XML : field, global, <complexType>
- // Namespace : http://www.sugarcrm.com/sugarcrm
- // ************************************************************************ //
- field = class(TRemotable)
- private
- Fname_: string;
- Ftype_: string;
- Fgroup: string;
- Flabel_: string;
- Frequired: Integer;
- Foptions: name_value_list;
- Fdefault_value: string;
- public
- destructor Destroy; override;
- published
- property name_: string read Fname_ write Fname_;
- property type_: string read Ftype_ write Ftype_;
- property group: string read Fgroup write Fgroup;
- property label_: string read Flabel_ write Flabel_;
- property required: Integer read Frequired write Frequired;
- property options: name_value_list read Foptions write Foptions;
- property default_value: string read Fdefault_value write Fdefault_value;
- end;
- link_value = array of name_value; { "http://www.sugarcrm.com/sugarcrm"[GblCplx] }
- search_link_array_list = array of link_value; { "http://www.sugarcrm.com/sugarcrm"[GblCplx] }
- // ************************************************************************ //
- // XML : search_link_name_value, global, <complexType>
- // Namespace : http://www.sugarcrm.com/sugarcrm
- // ************************************************************************ //
- search_link_name_value = class(TRemotable)
- private
- Fname_: string;
- Frecords: search_link_array_list;
- published
- property name_: string read Fname_ write Fname_;
- property records: search_link_array_list read Frecords write Frecords;
- end;
- entry_list = array of entry_value; { "http://www.sugarcrm.com/sugarcrm"[GblCplx] }
- // ************************************************************************ //
- // XML : get_entry_list_result_version2, global, <complexType>
- // Namespace : http://www.sugarcrm.com/sugarcrm
- // ************************************************************************ //
- get_entry_list_result_version2 = class(TRemotable)
- private
- Fresult_count: Integer;
- Ftotal_count: Integer;
- Fnext_offset: Integer;
- Fentry_list: entry_list;
- Frelationship_list: link_lists;
- public
- destructor Destroy; override;
- published
- property result_count: Integer read Fresult_count write Fresult_count;
- property total_count: Integer read Ftotal_count write Ftotal_count;
- property next_offset: Integer read Fnext_offset write Fnext_offset;
- property entry_list: entry_list read Fentry_list write Fentry_list;
- property relationship_list: link_lists read Frelationship_list write Frelationship_list;
- end;
- // ************************************************************************ //
- // XML : get_entry_result_version2, global, <complexType>
- // Namespace : http://www.sugarcrm.com/sugarcrm
- // ************************************************************************ //
- get_entry_result_version2 = class(TRemotable)
- private
- Fentry_list: entry_list;
- Frelationship_list: link_lists;
- public
- destructor Destroy; override;
- published
- property entry_list: entry_list read Fentry_list write Fentry_list;
- property relationship_list: link_lists read Frelationship_list write Frelationship_list;
- end;
- link_names_to_fields_array = array of link_name_to_fields_array; { "http://www.sugarcrm.com/sugarcrm"[GblCplx] }
- link_list = array of link_name_value; { "http://www.sugarcrm.com/sugarcrm"[GblCplx] }
- // ************************************************************************ //
- // XML : link_list2, global, <complexType>
- // Namespace : http://www.sugarcrm.com/sugarcrm
- // ************************************************************************ //
- link_list2 = class(TRemotable)
- private
- Flink_list: link_list;
- public
- destructor Destroy; override;
- published
- property link_list: link_list read Flink_list write Flink_list;
- end;
- link_array_list = array of link_value2; { "http://www.sugarcrm.com/sugarcrm"[GblCplx] }
- // ************************************************************************ //
- // XML : link_name_value, global, <complexType>
- // Namespace : http://www.sugarcrm.com/sugarcrm
- // ************************************************************************ //
- link_name_value = class(TRemotable)
- private
- Fname_: string;
- Frecords: link_array_list;
- public
- destructor Destroy; override;
- published
- property name_: string read Fname_ write Fname_;
- property records: link_array_list read Frecords write Frecords;
- end;
- // ************************************************************************ //
- // XML : link_value2, global, <complexType>
- // Namespace : http://www.sugarcrm.com/sugarcrm
- // ************************************************************************ //
- link_value2 = class(TRemotable)
- private
- Flink_value: link_value;
- public
- destructor Destroy; override;
- published
- property link_value: link_value read Flink_value write Flink_value;
- end;
- // ************************************************************************ //
- // XML : entry_value, global, <complexType>
- // Namespace : http://www.sugarcrm.com/sugarcrm
- // ************************************************************************ //
- entry_value = class(TRemotable)
- private
- Fid: string;
- Fmodule_name: string;
- Fname_value_list: name_value_list;
- public
- destructor Destroy; override;
- published
- property id: string read Fid write Fid;
- property module_name: string read Fmodule_name write Fmodule_name;
- property name_value_list: name_value_list read Fname_value_list write Fname_value_list;
- end;
- link_field_list = array of link_field; { "http://www.sugarcrm.com/sugarcrm"[GblCplx] }
- // ************************************************************************ //
- // XML : name_value, global, <complexType>
- // Namespace : http://www.sugarcrm.com/sugarcrm
- // ************************************************************************ //
- name_value = class(TRemotable)
- private
- Fname_: string;
- Fvalue: string;
- published
- property name_: string read Fname_ write Fname_;
- property value: string read Fvalue write Fvalue;
- end;
- field_list = array of field; { "http://www.sugarcrm.com/sugarcrm"[GblCplx] }
- // ************************************************************************ //
- // XML : link_field, global, <complexType>
- // Namespace : http://www.sugarcrm.com/sugarcrm
- // ************************************************************************ //
- link_field = class(TRemotable)
- private
- Fname_: string;
- Ftype_: string;
- Frelationship: string;
- Fmodule: string;
- Fbean_name: string;
- published
- property name_: string read Fname_ write Fname_;
- property type_: string read Ftype_ write Ftype_;
- property relationship: string read Frelationship write Frelationship;
- property module: string read Fmodule write Fmodule;
- property bean_name: string read Fbean_name write Fbean_name;
- end;
- deleted_array = array of Integer; { "http://www.sugarcrm.com/sugarcrm"[GblCplx] }
- // ************************************************************************ //
- // XML : new_module_fields, global, <complexType>
- // Namespace : http://www.sugarcrm.com/sugarcrm
- // ************************************************************************ //
- new_module_fields = class(TRemotable)
- private
- Fmodule_name: string;
- Ftable_name: string;
- Fmodule_fields: field_list;
- Flink_fields: link_field_list;
- public
- destructor Destroy; override;
- published
- property module_name: string read Fmodule_name write Fmodule_name;
- property table_name: string read Ftable_name write Ftable_name;
- property module_fields: field_list read Fmodule_fields write Fmodule_fields;
- property link_fields: link_field_list read Flink_fields write Flink_fields;
- end;
- name_value_lists = array of name_value_list; { "http://www.sugarcrm.com/sugarcrm"[GblCplx] }
- select_fields = array of string; { "http://www.sugarcrm.com/sugarcrm"[GblCplx] }
- // ************************************************************************ //
- // XML : link_name_to_fields_array, global, <complexType>
- // Namespace : http://www.sugarcrm.com/sugarcrm
- // ************************************************************************ //
- link_name_to_fields_array = class(TRemotable)
- private
- Fname_: string;
- Fvalue: select_fields;
- published
- property name_: string read Fname_ write Fname_;
- property value: select_fields read Fvalue write Fvalue;
- end;
- new_set_relationhip_ids = array of select_fields; { "http://www.sugarcrm.com/sugarcrm"[GblCplx] }
- // ************************************************************************ //
- // XML : new_set_entries_result, global, <complexType>
- // Namespace : http://www.sugarcrm.com/sugarcrm
- // ************************************************************************ //
- new_set_entries_result = class(TRemotable)
- private
- Fids: select_fields;
- published
- property ids: select_fields read Fids write Fids;
- end;
- // ************************************************************************ //
- // Namespace : http://www.sugarcrm.com/sugarcrm
- // soapAction: http://localhost/sugarCRM/service/v4/soap.php/%operationName%
- // transport : http://schemas.xmlsoap.org/soap/http
- // style : rpc
- // use : encoded
- // binding : sugarsoapBinding
- // service : sugarsoap
- // port : sugarsoapPort
- // URL : http://localhost/sugarCRM/service/v4/soap.php
- // ************************************************************************ //
- sugarsoapPortType = interface(IInvokable)
- ['{DF5598C1-4D60-1EB4-1DAB-7CCCBEBB87DC}']
- function login(const user_auth: user_auth; const application_name: string; const name_value_list: name_value_list): entry_value; stdcall;
- procedure logout(const session: string); stdcall;
- function get_entry(const session: string; const module_name: string; const id: string; const select_fields: select_fields; const link_name_to_fields_array: link_names_to_fields_array; const track_view: Boolean
- ): get_entry_result_version2; stdcall;
- function get_entries(const session: string; const module_name: string; const ids: select_fields; const select_fields: select_fields; const link_name_to_fields_array: link_names_to_fields_array; const track_view: Boolean
- ): get_entry_result_version2; stdcall;
- function get_entry_list(const session: string; const module_name: string; const query: string; const order_by: string; const offset: Integer; const select_fields: select_fields;
- const link_name_to_fields_array: link_names_to_fields_array; const max_results: Integer; const deleted: Integer; const favorites: Boolean): get_entry_list_result_version2; stdcall;
- function set_relationship(const session: string; const module_name: string; const module_id: string; const link_field_name: string; const related_ids: select_fields; const name_value_list: name_value_list;
- const delete: Integer): new_set_relationship_list_result; stdcall;
- function set_relationships(const session: string; const module_names: select_fields; const module_ids: select_fields; const link_field_names: select_fields; const related_ids: new_set_relationhip_ids; const name_value_lists: name_value_lists;
- const delete_array: deleted_array): new_set_relationship_list_result; stdcall;
- function get_relationships(const session: string; const module_name: string; const module_id: string; const link_field_name: string; const related_module_query: string; const related_fields: select_fields;
- const related_module_link_name_to_fields_array: link_names_to_fields_array; const deleted: Integer; const order_by: string): get_entry_result_version2; stdcall;
- function set_entry(const session: string; const module_name: string; const name_value_list: name_value_list): new_set_entry_result; stdcall;
- function set_entries(const session: string; const module_name: string; const name_value_lists: name_value_lists): new_set_entries_result; stdcall;
- function get_server_info: get_server_info_result; stdcall;
- function get_user_id(const session: string): string; stdcall;
- function get_module_fields(const session: string; const module_name: string; const fields: select_fields): new_module_fields; stdcall;
- function seamless_login(const session: string): Integer; stdcall;
- function set_note_attachment(const session: string; const note: new_note_attachment): new_set_entry_result; stdcall;
- function get_note_attachment(const session: string; const id: string): new_return_note_attachment; stdcall;
- function set_document_revision(const session: string; const note: document_revision): new_set_entry_result; stdcall;
- function get_document_revision(const session: string; const i: string): new_return_document_revision; stdcall;
- function search_by_module(const session: string; const search_string: string; const modules: select_fields; const offset: Integer; const max_results: Integer; const assigned_user_id: string;
- const select_fields: select_fields; const unified_search_only: Boolean; const favorites: Boolean): return_search_result; stdcall;
- function get_available_modules(const session: string; const filter: string): module_list; stdcall;
- function get_user_team_id(const session: string): string; stdcall;
- procedure set_campaign_merge(const session: string; const targets: select_fields; const campaign_id: string); stdcall;
- function get_entries_count(const session: string; const module_name: string; const query: string; const deleted: Integer): get_entries_count_result; stdcall;
- function get_module_fields_md5(const session: string; const module_names: select_fields): md5_results; stdcall;
- function get_last_viewed(const session: string; const module_names: module_names): last_viewed_list; stdcall;
- function get_upcoming_activities(const session: string): upcoming_activities_list; stdcall;
- end;
- function GetsugarsoapPortType(UseWSDL: Boolean=System.False; Addr: string=''; HTTPRIO: THTTPRIO = nil): sugarsoapPortType;
- implementation
- uses System.SysUtils;
- function GetsugarsoapPortType(UseWSDL: Boolean; Addr: string; HTTPRIO: THTTPRIO): sugarsoapPortType;
- const
- defWSDL = 'http://localhost/sugarCRM/service/v4/soap.php?wsdl';
- defURL = 'http://localhost/sugarCRM/service/v4/soap.php';
- defSvc = 'sugarsoap';
- defPrt = 'sugarsoapPort';
- 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 sugarsoapPortType);
- if UseWSDL then
- begin
- RIO.WSDLLocation := Addr;
- RIO.Service := defSvc;
- RIO.Port := defPrt;
- end else
- RIO.URL := Addr;
- finally
- if (Result = nil) and (HTTPRIO = nil) then
- RIO.Free;
- end;
- end;
- destructor new_return_document_revision.Destroy;
- begin
- System.SysUtils.FreeAndNil(Fdocument_revision);
- inherited Destroy;
- end;
- destructor return_search_result.Destroy;
- var
- I: Integer;
- begin
- for I := 0 to System.Length(Fentry_list)-1 do
- System.SysUtils.FreeAndNil(Fentry_list[I]);
- System.SetLength(Fentry_list, 0);
- inherited Destroy;
- end;
- destructor module_list.Destroy;
- var
- I: Integer;
- begin
- for I := 0 to System.Length(Fmodules)-1 do
- System.SysUtils.FreeAndNil(Fmodules[I]);
- System.SetLength(Fmodules, 0);
- inherited Destroy;
- end;
- procedure int2.Setid(Index: Integer; const Astring: string);
- begin
- Fid := Astring;
- Fid_Specified := True;
- end;
- function int2.id_Specified(Index: Integer): boolean;
- begin
- Result := Fid_Specified;
- end;
- procedure int2.Sethref(Index: Integer; const Astring: string);
- begin
- Fhref := Astring;
- Fhref_Specified := True;
- end;
- function int2.href_Specified(Index: Integer): boolean;
- begin
- Result := Fhref_Specified;
- end;
- destructor new_return_note_attachment.Destroy;
- begin
- System.SysUtils.FreeAndNil(Fnote_attachment);
- inherited Destroy;
- end;
- procedure string_2.Setid(Index: Integer; const Astring: string);
- begin
- Fid := Astring;
- Fid_Specified := True;
- end;
- function string_2.id_Specified(Index: Integer): boolean;
- begin
- Result := Fid_Specified;
- end;
- procedure string_2.Sethref(Index: Integer; const Astring: string);
- begin
- Fhref := Astring;
- Fhref_Specified := True;
- end;
- function string_2.href_Specified(Index: Integer): boolean;
- begin
- Result := Fhref_Specified;
- end;
- procedure boolean_2.Setid(Index: Integer; const Astring: string);
- begin
- Fid := Astring;
- Fid_Specified := True;
- end;
- function boolean_2.id_Specified(Index: Integer): boolean;
- begin
- Result := Fid_Specified;
- end;
- procedure boolean_2.Sethref(Index: Integer; const Astring: string);
- begin
- Fhref := Astring;
- Fhref_Specified := True;
- end;
- function boolean_2.href_Specified(Index: Integer): boolean;
- begin
- Result := Fhref_Specified;
- end;
- destructor module_list_entry.Destroy;
- var
- I: Integer;
- begin
- for I := 0 to System.Length(Facls)-1 do
- System.SysUtils.FreeAndNil(Facls[I]);
- System.SetLength(Facls, 0);
- inherited Destroy;
- end;
- procedure anyURI2.Setid(Index: Integer; const Astring: string);
- begin
- Fid := Astring;
- Fid_Specified := True;
- end;
- function anyURI2.id_Specified(Index: Integer): boolean;
- begin
- Result := Fid_Specified;
- end;
- procedure anyURI2.Sethref(Index: Integer; const Astring: string);
- begin
- Fhref := Astring;
- Fhref_Specified := True;
- end;
- function anyURI2.href_Specified(Index: Integer): boolean;
- begin
- Result := Fhref_Specified;
- end;
- procedure ID2.Setid(Index: Integer; const Astring: string);
- begin
- Fid := Astring;
- Fid_Specified := True;
- end;
- function ID2.id_Specified(Index: Integer): boolean;
- begin
- Result := Fid_Specified;
- end;
- procedure ID2.Sethref(Index: Integer; const Astring: string);
- begin
- Fhref := Astring;
- Fhref_Specified := True;
- end;
- function ID2.href_Specified(Index: Integer): boolean;
- begin
- Result := Fhref_Specified;
- end;
- destructor field.Destroy;
- var
- I: Integer;
- begin
- for I := 0 to System.Length(Foptions)-1 do
- System.SysUtils.FreeAndNil(Foptions[I]);
- System.SetLength(Foptions, 0);
- inherited Destroy;
- end;
- destructor get_entry_list_result_version2.Destroy;
- var
- I: Integer;
- begin
- for I := 0 to System.Length(Fentry_list)-1 do
- System.SysUtils.FreeAndNil(Fentry_list[I]);
- System.SetLength(Fentry_list, 0);
- for I := 0 to System.Length(Frelationship_list)-1 do
- System.SysUtils.FreeAndNil(Frelationship_list[I]);
- System.SetLength(Frelationship_list, 0);
- inherited Destroy;
- end;
- destructor get_entry_result_version2.Destroy;
- var
- I: Integer;
- begin
- for I := 0 to System.Length(Fentry_list)-1 do
- System.SysUtils.FreeAndNil(Fentry_list[I]);
- System.SetLength(Fentry_list, 0);
- for I := 0 to System.Length(Frelationship_list)-1 do
- System.SysUtils.FreeAndNil(Frelationship_list[I]);
- System.SetLength(Frelationship_list, 0);
- inherited Destroy;
- end;
- destructor link_list2.Destroy;
- var
- I: Integer;
- begin
- for I := 0 to System.Length(Flink_list)-1 do
- System.SysUtils.FreeAndNil(Flink_list[I]);
- System.SetLength(Flink_list, 0);
- inherited Destroy;
- end;
- destructor link_name_value.Destroy;
- var
- I: Integer;
- begin
- for I := 0 to System.Length(Frecords)-1 do
- System.SysUtils.FreeAndNil(Frecords[I]);
- System.SetLength(Frecords, 0);
- inherited Destroy;
- end;
- destructor link_value2.Destroy;
- var
- I: Integer;
- begin
- for I := 0 to System.Length(Flink_value)-1 do
- System.SysUtils.FreeAndNil(Flink_value[I]);
- System.SetLength(Flink_value, 0);
- inherited Destroy;
- end;
- destructor entry_value.Destroy;
- var
- I: Integer;
- begin
- for I := 0 to System.Length(Fname_value_list)-1 do
- System.SysUtils.FreeAndNil(Fname_value_list[I]);
- System.SetLength(Fname_value_list, 0);
- inherited Destroy;
- end;
- destructor new_module_fields.Destroy;
- var
- I: Integer;
- begin
- for I := 0 to System.Length(Fmodule_fields)-1 do
- System.SysUtils.FreeAndNil(Fmodule_fields[I]);
- System.SetLength(Fmodule_fields, 0);
- for I := 0 to System.Length(Flink_fields)-1 do
- System.SysUtils.FreeAndNil(Flink_fields[I]);
- System.SetLength(Flink_fields, 0);
- inherited Destroy;
- end;
- initialization
- { sugarsoapPortType }
- InvRegistry.RegisterInterface(TypeInfo(sugarsoapPortType), 'http://www.sugarcrm.com/sugarcrm', 'ISO-8859-1');
- InvRegistry.RegisterDefaultSOAPAction(TypeInfo(sugarsoapPortType), 'http://192.1.2.118/sugarCRM/service/v4/soap.php/%operationName%');
- RemClassRegistry.RegisterXSClass(new_return_document_revision, 'http://www.sugarcrm.com/sugarcrm', 'new_return_document_revision');
- RemClassRegistry.RegisterXSInfo(TypeInfo(search_link_list), 'http://www.sugarcrm.com/sugarcrm', 'search_link_list');
- RemClassRegistry.RegisterXSClass(return_search_result, 'http://www.sugarcrm.com/sugarcrm', 'return_search_result');
- RemClassRegistry.RegisterXSInfo(TypeInfo(module_list_array), 'http://www.sugarcrm.com/sugarcrm', 'module_list_array');
- RemClassRegistry.RegisterXSClass(module_list, 'http://www.sugarcrm.com/sugarcrm', 'module_list');
- RemClassRegistry.RegisterXSInfo(TypeInfo(acl_list), 'http://www.sugarcrm.com/sugarcrm', 'acl_list');
- RemClassRegistry.RegisterXSInfo(TypeInfo(upcoming_activities_list), 'http://www.sugarcrm.com/sugarcrm', 'upcoming_activities_list');
- RemClassRegistry.RegisterXSInfo(TypeInfo(last_viewed_list), 'http://www.sugarcrm.com/sugarcrm', 'last_viewed_list');
- RemClassRegistry.RegisterXSInfo(TypeInfo(link_lists), 'http://www.sugarcrm.com/sugarcrm', 'link_lists');
- RemClassRegistry.RegisterXSClass(int2, 'http://schemas.xmlsoap.org/soap/encoding/', 'int2', 'int');
- RemClassRegistry.RegisterXSClass(get_entries_count_result, 'http://www.sugarcrm.com/sugarcrm', 'get_entries_count_result');
- RemClassRegistry.RegisterXSClass(new_set_relationship_list_result, 'http://www.sugarcrm.com/sugarcrm', 'new_set_relationship_list_result');
- RemClassRegistry.RegisterXSClass(new_return_note_attachment, 'http://www.sugarcrm.com/sugarcrm', 'new_return_note_attachment');
- RemClassRegistry.RegisterXSClass(new_note_attachment, 'http://www.sugarcrm.com/sugarcrm', 'new_note_attachment');
- RemClassRegistry.RegisterExternalPropName(TypeInfo(new_note_attachment), 'file_', '[ExtName="file"]');
- RemClassRegistry.RegisterXSClass(user_auth, 'http://www.sugarcrm.com/sugarcrm', 'user_auth');
- RemClassRegistry.RegisterXSClass(upcoming_activity_entry, 'http://www.sugarcrm.com/sugarcrm', 'upcoming_activity_entry');
- RemClassRegistry.RegisterXSClass(last_viewed_entry, 'http://www.sugarcrm.com/sugarcrm', 'last_viewed_entry');
- RemClassRegistry.RegisterXSInfo(TypeInfo(md5_results), 'http://www.sugarcrm.com/sugarcrm', 'md5_results');
- RemClassRegistry.RegisterXSInfo(TypeInfo(module_names), 'http://www.sugarcrm.com/sugarcrm', 'module_names');
- RemClassRegistry.RegisterXSClass(acl_list_entry, 'http://www.sugarcrm.com/sugarcrm', 'acl_list_entry');
- RemClassRegistry.RegisterXSClass(get_server_info_result, 'http://www.sugarcrm.com/sugarcrm', 'get_server_info_result');
- RemClassRegistry.RegisterXSClass(new_set_entry_result, 'http://www.sugarcrm.com/sugarcrm', 'new_set_entry_result');
- RemClassRegistry.RegisterXSClass(document_revision, 'http://www.sugarcrm.com/sugarcrm', 'document_revision');
- RemClassRegistry.RegisterExternalPropName(TypeInfo(document_revision), 'file_', '[ExtName="file"]');
- RemClassRegistry.RegisterXSClass(string_2, 'http://schemas.xmlsoap.org/soap/encoding/', 'string_2', 'string');
- RemClassRegistry.RegisterXSClass(int, 'http://schemas.xmlsoap.org/soap/encoding/', 'int');
- RemClassRegistry.RegisterXSClass(string_, 'http://schemas.xmlsoap.org/soap/encoding/', 'string_', 'string');
- RemClassRegistry.RegisterXSClass(boolean_2, 'http://schemas.xmlsoap.org/soap/encoding/', 'boolean_2', 'boolean');
- RemClassRegistry.RegisterXSClass(boolean_, 'http://schemas.xmlsoap.org/soap/encoding/', 'boolean_', 'boolean');
- RemClassRegistry.RegisterXSClass(module_list_entry, 'http://www.sugarcrm.com/sugarcrm', 'module_list_entry');
- RemClassRegistry.RegisterXSClass(anyURI2, 'http://schemas.xmlsoap.org/soap/encoding/', 'anyURI2', 'anyURI');
- RemClassRegistry.RegisterXSClass(anyURI, 'http://schemas.xmlsoap.org/soap/encoding/', 'anyURI');
- RemClassRegistry.RegisterXSClass(ID2, 'http://schemas.xmlsoap.org/soap/encoding/', 'ID2', 'ID');
- RemClassRegistry.RegisterXSClass(ID, 'http://schemas.xmlsoap.org/soap/encoding/', 'ID');
- RemClassRegistry.RegisterXSInfo(TypeInfo(name_value_list), 'http://www.sugarcrm.com/sugarcrm', 'name_value_list');
- RemClassRegistry.RegisterXSClass(field, 'http://www.sugarcrm.com/sugarcrm', 'field');
- RemClassRegistry.RegisterExternalPropName(TypeInfo(field), 'name_', '[ExtName="name"]');
- RemClassRegistry.RegisterExternalPropName(TypeInfo(field), 'type_', '[ExtName="type"]');
- RemClassRegistry.RegisterExternalPropName(TypeInfo(field), 'label_', '[ExtName="label"]');
- RemClassRegistry.RegisterXSInfo(TypeInfo(link_value), 'http://www.sugarcrm.com/sugarcrm', 'link_value');
- RemClassRegistry.RegisterXSInfo(TypeInfo(search_link_array_list), 'http://www.sugarcrm.com/sugarcrm', 'search_link_array_list');
- RemClassRegistry.RegisterXSClass(search_link_name_value, 'http://www.sugarcrm.com/sugarcrm', 'search_link_name_value');
- RemClassRegistry.RegisterExternalPropName(TypeInfo(search_link_name_value), 'name_', '[ExtName="name"]');
- RemClassRegistry.RegisterXSInfo(TypeInfo(entry_list), 'http://www.sugarcrm.com/sugarcrm', 'entry_list');
- RemClassRegistry.RegisterXSClass(get_entry_list_result_version2, 'http://www.sugarcrm.com/sugarcrm', 'get_entry_list_result_version2');
- RemClassRegistry.RegisterXSClass(get_entry_result_version2, 'http://www.sugarcrm.com/sugarcrm', 'get_entry_result_version2');
- RemClassRegistry.RegisterXSInfo(TypeInfo(link_names_to_fields_array), 'http://www.sugarcrm.com/sugarcrm', 'link_names_to_fields_array');
- RemClassRegistry.RegisterXSInfo(TypeInfo(link_list), 'http://www.sugarcrm.com/sugarcrm', 'link_list');
- RemClassRegistry.RegisterXSClass(link_list2, 'http://www.sugarcrm.com/sugarcrm', 'link_list2');
- RemClassRegistry.RegisterXSInfo(TypeInfo(link_array_list), 'http://www.sugarcrm.com/sugarcrm', 'link_array_list');
- RemClassRegistry.RegisterXSClass(link_name_value, 'http://www.sugarcrm.com/sugarcrm', 'link_name_value');
- RemClassRegistry.RegisterExternalPropName(TypeInfo(link_name_value), 'name_', '[ExtName="name"]');
- RemClassRegistry.RegisterXSClass(link_value2, 'http://www.sugarcrm.com/sugarcrm', 'link_value2');
- RemClassRegistry.RegisterXSClass(entry_value, 'http://www.sugarcrm.com/sugarcrm', 'entry_value');
- RemClassRegistry.RegisterXSInfo(TypeInfo(link_field_list), 'http://www.sugarcrm.com/sugarcrm', 'link_field_list');
- RemClassRegistry.RegisterXSClass(name_value, 'http://www.sugarcrm.com/sugarcrm', 'name_value');
- RemClassRegistry.RegisterExternalPropName(TypeInfo(name_value), 'name_', '[ExtName="name"]');
- RemClassRegistry.RegisterXSInfo(TypeInfo(field_list), 'http://www.sugarcrm.com/sugarcrm', 'field_list');
- RemClassRegistry.RegisterXSClass(link_field, 'http://www.sugarcrm.com/sugarcrm', 'link_field');
- RemClassRegistry.RegisterExternalPropName(TypeInfo(link_field), 'name_', '[ExtName="name"]');
- RemClassRegistry.RegisterExternalPropName(TypeInfo(link_field), 'type_', '[ExtName="type"]');
- RemClassRegistry.RegisterXSInfo(TypeInfo(deleted_array), 'http://www.sugarcrm.com/sugarcrm', 'deleted_array');
- RemClassRegistry.RegisterXSClass(new_module_fields, 'http://www.sugarcrm.com/sugarcrm', 'new_module_fields');
- RemClassRegistry.RegisterXSInfo(TypeInfo(name_value_lists), 'http://www.sugarcrm.com/sugarcrm', 'name_value_lists');
- RemClassRegistry.RegisterXSInfo(TypeInfo(select_fields), 'http://www.sugarcrm.com/sugarcrm', 'select_fields');
- RemClassRegistry.RegisterXSClass(link_name_to_fields_array, 'http://www.sugarcrm.com/sugarcrm', 'link_name_to_fields_array');
- RemClassRegistry.RegisterExternalPropName(TypeInfo(link_name_to_fields_array), 'name_', '[ExtName="name"]');
- RemClassRegistry.RegisterXSInfo(TypeInfo(new_set_relationhip_ids), 'http://www.sugarcrm.com/sugarcrm', 'new_set_relationhip_ids');
- RemClassRegistry.RegisterXSClass(new_set_entries_result, 'http://www.sugarcrm.com/sugarcrm', 'new_set_entries_result');
- end.
- [/DELPHI]
- Toda ayuda es bienvenida.
- Saludos.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement