OrganisationServiceBasicHttpEndpoint / Add
ASP AutoIt C C (Unicode) C++ C++ (Unicode) C# DataFlex Delphi Foxpro Go Java Node.js Objective-C Perl PHP Extension PowerBuilder Powershell PureBasic Python CkPython Ruby SQL Server Swift TCL VB.NET VB6 VBScript Xojo
var
xml: HCkXml;
soapRequestBody: PWideChar;
endpoint: PWideChar;
soapAction: PWideChar;
contentType: PWideChar;
http: HCkHttp;
resp: HCkHttpResponse;
responseXml: HCkXml;
statusCode: Integer;
begin
xml := CkXml_Create();
CkXml_putTag(xml,'soapenv:Envelope');
CkXml_AddAttribute(xml,'xmlns:soapenv','http://schemas.xmlsoap.org/soap/envelope/');
CkXml_AddAttribute(xml,'xmlns:tra','http://training.gov.au/services/12/');
CkXml_AddAttribute(xml,'xmlns:sys','http://schemas.datacontract.org/2004/07/System');
CkXml_AddAttribute(xml,'xmlns:arr','http://schemas.microsoft.com/2003/10/Serialization/Arrays');
CkXml_UpdateChildContent(xml,'soapenv:Header','');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:Codes|tra:OrganisationCode|tra:ActionOnEntity','None');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:Codes|tra:OrganisationCode|tra:EndDate','date');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:Codes|tra:OrganisationCode|tra:StartDate','date');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:Codes|tra:OrganisationCode|tra:Code','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:Contacts|tra:Contact|tra:ActionOnEntity','None');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:Contacts|tra:Contact|tra:EndDate','date');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:Contacts|tra:Contact|tra:StartDate','date');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:Contacts|tra:Contact|tra:Email','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:Contacts|tra:Contact|tra:Fax','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:Contacts|tra:Contact|tra:FirstName','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:Contacts|tra:Contact|tra:GroupName','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:Contacts|tra:Contact|tra:JobTitle','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:Contacts|tra:Contact|tra:LastName','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:Contacts|tra:Contact|tra:Mobile','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:Contacts|tra:Contact|tra:OrganisationName','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:Contacts|tra:Contact|tra:Phone','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:Contacts|tra:Contact|tra:PostalAddress|tra:CountryCode','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:Contacts|tra:Contact|tra:PostalAddress|tra:Latitude','99.0');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:Contacts|tra:Contact|tra:PostalAddress|tra:Line1','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:Contacts|tra:Contact|tra:PostalAddress|tra:Line2','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:Contacts|tra:Contact|tra:PostalAddress|tra:Longitude','99.0');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:Contacts|tra:Contact|tra:PostalAddress|tra:Postcode','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:Contacts|tra:Contact|tra:PostalAddress|tra:StateCode','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:Contacts|tra:Contact|tra:PostalAddress|tra:StateOverseas','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:Contacts|tra:Contact|tra:PostalAddress|tra:Suburb','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:Contacts|tra:Contact|tra:RoleCode','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:Contacts|tra:Contact|tra:Title','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:Contacts|tra:Contact|tra:TypeCode','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:CreatedDate|sys:DateTime','dateTime');
CkXml_UpdateChildContentInt(xml,'soapenv:Body|tra:Add|tra:rto|tra:CreatedDate|sys:OffsetMinutes',442);
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:DataManagers|tra:DataManagerAssignment|tra:ActionOnEntity','None');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:DataManagers|tra:DataManagerAssignment|tra:EndDate','date');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:DataManagers|tra:DataManagerAssignment|tra:StartDate','date');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:DataManagers|tra:DataManagerAssignment|tra:Code','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:IsLegacyData','true');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:Locations|tra:OrganisationLocation|tra:ActionOnEntity','None');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:Locations|tra:OrganisationLocation|tra:EndDate','date');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:Locations|tra:OrganisationLocation|tra:StartDate','date');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:Locations|tra:OrganisationLocation|tra:Address|tra:CountryCode','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:Locations|tra:OrganisationLocation|tra:Address|tra:Latitude','99.0');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:Locations|tra:OrganisationLocation|tra:Address|tra:Line1','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:Locations|tra:OrganisationLocation|tra:Address|tra:Line2','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:Locations|tra:OrganisationLocation|tra:Address|tra:Longitude','99.0');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:Locations|tra:OrganisationLocation|tra:Address|tra:Postcode','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:Locations|tra:OrganisationLocation|tra:Address|tra:StateCode','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:Locations|tra:OrganisationLocation|tra:Address|tra:StateOverseas','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:Locations|tra:OrganisationLocation|tra:Address|tra:Suburb','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:Locations|tra:OrganisationLocation|tra:OrganisationLocationId','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:PostalAddresses|tra:OrganisationPostalAddress|tra:ActionOnEntity','None');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:PostalAddresses|tra:OrganisationPostalAddress|tra:EndDate','date');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:PostalAddresses|tra:OrganisationPostalAddress|tra:StartDate','date');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:PostalAddresses|tra:OrganisationPostalAddress|tra:Address|tra:CountryCode','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:PostalAddresses|tra:OrganisationPostalAddress|tra:Address|tra:Latitude','99.0');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:PostalAddresses|tra:OrganisationPostalAddress|tra:Address|tra:Line1','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:PostalAddresses|tra:OrganisationPostalAddress|tra:Address|tra:Line2','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:PostalAddresses|tra:OrganisationPostalAddress|tra:Address|tra:Longitude','99.0');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:PostalAddresses|tra:OrganisationPostalAddress|tra:Address|tra:Postcode','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:PostalAddresses|tra:OrganisationPostalAddress|tra:Address|tra:StateCode','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:PostalAddresses|tra:OrganisationPostalAddress|tra:Address|tra:StateOverseas','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:PostalAddresses|tra:OrganisationPostalAddress|tra:Address|tra:Suburb','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:PostalAddresses|tra:OrganisationPostalAddress|tra:OrganisationPostalAddressId','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:PrincipalAddresses|tra:OrganisationPrincipalAddress|tra:ActionOnEntity','None');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:PrincipalAddresses|tra:OrganisationPrincipalAddress|tra:EndDate','date');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:PrincipalAddresses|tra:OrganisationPrincipalAddress|tra:StartDate','date');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:PrincipalAddresses|tra:OrganisationPrincipalAddress|tra:Address|tra:CountryCode','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:PrincipalAddresses|tra:OrganisationPrincipalAddress|tra:Address|tra:Latitude','99.0');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:PrincipalAddresses|tra:OrganisationPrincipalAddress|tra:Address|tra:Line1','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:PrincipalAddresses|tra:OrganisationPrincipalAddress|tra:Address|tra:Line2','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:PrincipalAddresses|tra:OrganisationPrincipalAddress|tra:Address|tra:Longitude','99.0');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:PrincipalAddresses|tra:OrganisationPrincipalAddress|tra:Address|tra:Postcode','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:PrincipalAddresses|tra:OrganisationPrincipalAddress|tra:Address|tra:StateCode','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:PrincipalAddresses|tra:OrganisationPrincipalAddress|tra:Address|tra:StateOverseas','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:PrincipalAddresses|tra:OrganisationPrincipalAddress|tra:Address|tra:Suburb','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:PrincipalAddresses|tra:OrganisationPrincipalAddress|tra:OrganisationPrincipalAddressId','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:ResponsibleLegalPersons|tra:ResponsibleLegalPerson|tra:ActionOnEntity','None');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:ResponsibleLegalPersons|tra:ResponsibleLegalPerson|tra:EndDate','date');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:ResponsibleLegalPersons|tra:ResponsibleLegalPerson|tra:StartDate','date');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:ResponsibleLegalPersons|tra:ResponsibleLegalPerson|tra:Abns|arr:string','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:ResponsibleLegalPersons|tra:ResponsibleLegalPerson|tra:Acn','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:ResponsibleLegalPersons|tra:ResponsibleLegalPerson|tra:Name','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:Roles|tra:Role|tra:ActionOnEntity','None');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:Roles|tra:Role|tra:EndDate','date');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:Roles|tra:Role|tra:StartDate','date');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:Roles|tra:Role|tra:Abbreviation','string');
CkXml_UpdateChildContentInt(xml,'soapenv:Body|tra:Add|tra:rto|tra:Roles|tra:Role|tra:Code',1042);
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:Roles|tra:Role|tra:Description','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:TradingNames|tra:TradingName|tra:ActionOnEntity','None');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:TradingNames|tra:TradingName|tra:EndDate','date');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:TradingNames|tra:TradingName|tra:StartDate','date');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:TradingNames|tra:TradingName|tra:Name','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:UpdatedDate|sys:DateTime','dateTime');
CkXml_UpdateChildContentInt(xml,'soapenv:Body|tra:Add|tra:rto|tra:UpdatedDate|sys:OffsetMinutes',442);
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:Urls|tra:Url|tra:ActionOnEntity','None');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:Urls|tra:Url|tra:EndDate','date');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:Urls|tra:Url|tra:StartDate','date');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:Urls|tra:Url|tra:Link','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:Classifications|tra:Classification|tra:ActionOnEntity','None');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:Classifications|tra:Classification|tra:EndDate','date');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:Classifications|tra:Classification|tra:StartDate','date');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:Classifications|tra:Classification|tra:PurposeCode','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:Classifications|tra:Classification|tra:SchemeCode','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:Classifications|tra:Classification|tra:ValueCode','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:CricosCodes|tra:RtoCricosCode|tra:ActionOnEntity','None');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:CricosCodes|tra:RtoCricosCode|tra:EndDate','date');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:CricosCodes|tra:RtoCricosCode|tra:StartDate','date');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:CricosCodes|tra:RtoCricosCode|tra:Cricos_x0020_Code','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:DeliveryLocations|tra:RtoDeliveryLocation|tra:ActionOnEntity','None');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:DeliveryLocations|tra:RtoDeliveryLocation|tra:EndDate','date');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:DeliveryLocations|tra:RtoDeliveryLocation|tra:StartDate','date');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:DeliveryLocations|tra:RtoDeliveryLocation|tra:Address|tra:CountryCode','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:DeliveryLocations|tra:RtoDeliveryLocation|tra:Address|tra:Latitude','99.0');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:DeliveryLocations|tra:RtoDeliveryLocation|tra:Address|tra:Line1','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:DeliveryLocations|tra:RtoDeliveryLocation|tra:Address|tra:Line2','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:DeliveryLocations|tra:RtoDeliveryLocation|tra:Address|tra:Longitude','99.0');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:DeliveryLocations|tra:RtoDeliveryLocation|tra:Address|tra:Postcode','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:DeliveryLocations|tra:RtoDeliveryLocation|tra:Address|tra:StateCode','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:DeliveryLocations|tra:RtoDeliveryLocation|tra:Address|tra:StateOverseas','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:DeliveryLocations|tra:RtoDeliveryLocation|tra:Address|tra:Suburb','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:DeliveryLocations|tra:RtoDeliveryLocation|tra:DeliveryLocationName','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:DeliveryLocations|tra:RtoDeliveryLocation|tra:RtoDeliveryLocationId','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:DeliveryNotifications|tra:DeliveryNotification|tra:ActionOnEntity','None');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:DeliveryNotifications|tra:DeliveryNotification|tra:DateOfChange','date');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:DeliveryNotifications|tra:DeliveryNotification|tra:GeographicAreas|tra:DeliveryNotificationGeographicArea|tra:CountryCode','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:DeliveryNotifications|tra:DeliveryNotification|tra:GeographicAreas|tra:DeliveryNotificationGeographicArea|tra:StateCode','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:DeliveryNotifications|tra:DeliveryNotification|tra:IsCessation','true');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:DeliveryNotifications|tra:DeliveryNotification|tra:NotificationDate','date');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:DeliveryNotifications|tra:DeliveryNotification|tra:Scopes|tra:DeliveryNotificationScope|tra:Code','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:DeliveryNotifications|tra:DeliveryNotification|tra:Scopes|tra:DeliveryNotificationScope|tra:TrainingComponentType','list of enumerated string values');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:RegistrationManagers|tra:RegistrationManagerAssignment|tra:ActionOnEntity','None');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:RegistrationManagers|tra:RegistrationManagerAssignment|tra:EndDate','date');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:RegistrationManagers|tra:RegistrationManagerAssignment|tra:StartDate','date');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:RegistrationManagers|tra:RegistrationManagerAssignment|tra:Code','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:RegistrationPeriods|tra:RegistrationPeriod|tra:ActionOnEntity','None');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:RegistrationPeriods|tra:RegistrationPeriod|tra:EndDate','date');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:RegistrationPeriods|tra:RegistrationPeriod|tra:StartDate','date');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:RegistrationPeriods|tra:RegistrationPeriod|tra:EndReasonCode','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:RegistrationPeriods|tra:RegistrationPeriod|tra:EndReasonComments','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:RegistrationPeriods|tra:RegistrationPeriod|tra:Exerciser','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:RegistrationPeriods|tra:RegistrationPeriod|tra:LegalAuthority','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:RegistrationPeriods|tra:RegistrationPeriod|tra:RegistrationApplicationRenew|tra:DateOfRejection','date');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:RegistrationPeriods|tra:RegistrationPeriod|tra:RegistrationApplicationRenew|tra:IsApplicationToRenew','true');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:RegistrationPeriods|tra:RegistrationPeriod|tra:RegistrationApplicationRenew|tra:RtoRegistrationOutcomeOfApplication','UnderConsideration');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:RegistrationStatus','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:RegulatoryDecisions|tra:RtoRegulatoryDecision|tra:ActionOnEntity','None');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:RegulatoryDecisions|tra:RtoRegulatoryDecision|tra:EndDate','date');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:RegulatoryDecisions|tra:RtoRegulatoryDecision|tra:StartDate','date');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:RegulatoryDecisions|tra:RtoRegulatoryDecision|tra:AdditionalDetails','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:RegulatoryDecisions|tra:RtoRegulatoryDecision|tra:Code','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:RegulatoryDecisions|tra:RtoRegulatoryDecision|tra:DecisionDetails','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:RegulatoryDecisions|tra:RtoRegulatoryDecision|tra:DecisionDetailsMarkedUp','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:RegulatoryDecisions|tra:RtoRegulatoryDecision|tra:DecisionLevelCode','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:RegulatoryDecisions|tra:RtoRegulatoryDecision|tra:DecisionMadeUnder','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:RegulatoryDecisions|tra:RtoRegulatoryDecision|tra:DecisionMadeUnderUrl','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:RegulatoryDecisions|tra:RtoRegulatoryDecision|tra:DecisionMadeUnderUrlText','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:RegulatoryDecisions|tra:RtoRegulatoryDecision|tra:DecisionMakerCode','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:RegulatoryDecisions|tra:RtoRegulatoryDecision|tra:DecisionStatusCode','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:RegulatoryDecisions|tra:RtoRegulatoryDecision|tra:DecisionTypeCode','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:RegulatoryDecisions|tra:RtoRegulatoryDecision|tra:EffectiveDate','date');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:RegulatoryDecisions|tra:RtoRegulatoryDecision|tra:IsHistoric','true');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:RegulatoryDecisions|tra:RtoRegulatoryDecision|tra:Reference','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:RegulatoryDecisions|tra:RtoRegulatoryDecision|tra:RegulatoryDecision','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:RegulatoryDecisions|tra:RtoRegulatoryDecision|tra:RegulatoryDecisionEvents|tra:RtoRegulatoryDecisionEvent|tra:AttachmentUrl','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:RegulatoryDecisions|tra:RtoRegulatoryDecision|tra:RegulatoryDecisionEvents|tra:RtoRegulatoryDecisionEvent|tra:AttachmentUrlText','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:RegulatoryDecisions|tra:RtoRegulatoryDecision|tra:RegulatoryDecisionEvents|tra:RtoRegulatoryDecisionEvent|tra:DecisionMakerCode','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:RegulatoryDecisions|tra:RtoRegulatoryDecision|tra:RegulatoryDecisionEvents|tra:RtoRegulatoryDecisionEvent|tra:EventDate','date');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:RegulatoryDecisions|tra:RtoRegulatoryDecision|tra:RegulatoryDecisionEvents|tra:RtoRegulatoryDecisionEvent|tra:EventDetails','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:RegulatoryDecisions|tra:RtoRegulatoryDecision|tra:RegulatoryDecisionEvents|tra:RtoRegulatoryDecisionEvent|tra:EventStatusCode','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:RegulatoryDecisions|tra:RtoRegulatoryDecision|tra:RegulatoryDecisionEvents|tra:RtoRegulatoryDecisionEvent|tra:IsHistoric','true');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:RegulatoryDecisions|tra:RtoRegulatoryDecision|tra:RegulatoryDecisionMapping|tra:RtoRegulatoryDecisionMapping|tra:Code','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:RegulatoryDecisions|tra:RtoRegulatoryDecision|tra:RegulatoryDecisionMapping|tra:RtoRegulatoryDecisionMapping|tra:Description','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:RegulatoryDecisions|tra:RtoRegulatoryDecision|tra:RegulatoryDecisionMapping|tra:RtoRegulatoryDecisionMapping|tra:MapFromRelationshipCode','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:RegulatoryDecisions|tra:RtoRegulatoryDecision|tra:RegulatoryDecisionMapping|tra:RtoRegulatoryDecisionMapping|tra:MapToRelationshipCode','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:RegulatoryDecisions|tra:RtoRegulatoryDecision|tra:RegulatoryDecisionMapping|tra:RtoRegulatoryDecisionMapping|tra:MapsToCode','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:RegulatoryDecisions|tra:RtoRegulatoryDecision|tra:ReverseRegulatoryDecisionMapping|tra:RtoRegulatoryDecisionMapping|tra:Code','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:RegulatoryDecisions|tra:RtoRegulatoryDecision|tra:ReverseRegulatoryDecisionMapping|tra:RtoRegulatoryDecisionMapping|tra:Description','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:RegulatoryDecisions|tra:RtoRegulatoryDecision|tra:ReverseRegulatoryDecisionMapping|tra:RtoRegulatoryDecisionMapping|tra:MapFromRelationshipCode','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:RegulatoryDecisions|tra:RtoRegulatoryDecision|tra:ReverseRegulatoryDecisionMapping|tra:RtoRegulatoryDecisionMapping|tra:MapToRelationshipCode','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:RegulatoryDecisions|tra:RtoRegulatoryDecision|tra:ReverseRegulatoryDecisionMapping|tra:RtoRegulatoryDecisionMapping|tra:MapsToCode','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:RegulatoryDecisions|tra:RtoRegulatoryDecision|tra:ReviewStatusCode','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:Restrictions|tra:RtoRestriction|tra:ActionOnEntity','None');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:Restrictions|tra:RtoRestriction|tra:EndDate','date');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:Restrictions|tra:RtoRestriction|tra:StartDate','date');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:Restrictions|tra:RtoRestriction|tra:Code','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:Restrictions|tra:RtoRestriction|tra:Restriction','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:Restrictions|tra:RtoRestriction|tra:RestrictionTypeCode','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:Restrictions|tra:RtoRestriction|tra:ShowRestriction','true');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:RtoHigherEducations|tra:RtoHigherEducation|tra:ActionOnEntity','None');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:RtoHigherEducations|tra:RtoHigherEducation|tra:EndDate','date');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:RtoHigherEducations|tra:RtoHigherEducation|tra:StartDate','date');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:RtoHigherEducations|tra:RtoHigherEducation|tra:IsHigherEducation','true');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:RtoSchoolProviders|tra:RtoSchoolProvider|tra:ActionOnEntity','None');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:RtoSchoolProviders|tra:RtoSchoolProvider|tra:EndDate','date');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:RtoSchoolProviders|tra:RtoSchoolProvider|tra:StartDate','date');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:RtoSchoolProviders|tra:RtoSchoolProvider|tra:IsSchoolProvider','true');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:Scopes|tra:Scope|tra:ActionOnEntity','None');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:Scopes|tra:Scope|tra:EndDate','date');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:Scopes|tra:Scope|tra:StartDate','date');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:Scopes|tra:Scope|tra:ExtentCode','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:Scopes|tra:Scope|tra:IsImplicit','true');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:Scopes|tra:Scope|tra:IsRefused','true');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:Scopes|tra:Scope|tra:NrtCode','string');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:Scopes|tra:Scope|tra:ScopeDecisionType','Granted');
CkXml_UpdateChildContent(xml,'soapenv:Body|tra:Add|tra:rto|tra:Scopes|tra:Scope|tra:TrainingComponentType','list of enumerated string values');
// In a SOAP HTTP request, including the XML declaration (<?xml version="1.0" encoding="UTF-8"?>) in the XML body is generally not required.
CkXml_putEmitXmlDecl(xml,False);
soapRequestBody := CkXml__getXml(xml);
endpoint := 'https://ws.staging.training.gov.au/Deewr.Tga.WebServices/OrganisationServiceV12.svc/Organisation';
soapAction := 'http://training.gov.au/services/12/IOrganisationService/Add';
// For SOAP requests, the standard Content-Type is usually set to "text/xml" or "application/soap+xml"
contentType := 'text/xml';
http := CkHttp_Create();
CkHttp_ClearHeaders(http);
CkHttp_SetRequestHeader(http,'Content-Type',contentType);
CkHttp_SetRequestHeader(http,'SOAPAction',soapAction);
resp := CkHttp_PostXml(http,endpoint,soapRequestBody,'utf-8');
if (CkHttp_getLastMethodSuccess(http) = False) then
begin
Memo1.Lines.Add(CkHttp__lastErrorText(http));
Memo1.Lines.Add('Failed to send SOAP request.');
Exit;
end;
// Get the XML response body.
responseXml := CkXml_Create();
CkHttpResponse_GetBodyXml(resp,responseXml);
statusCode := CkHttpResponse_getStatusCode(resp);
Memo1.Lines.Add('response status code: ' + IntToStr(statusCode));
CkHttpResponse_Dispose(resp);
// If the status code does not indicate succcess, then show the response XML,
// which probably contains error information.
if (statusCode <> 200) then
begin
Memo1.Lines.Add(CkXml__getXml(responseXml));
Exit;
end;
Memo1.Lines.Add(CkXml__getXml(responseXml));
// Parse the successful SOAP response XML.
// This is a sample of the response XML, but the namespace prefixes will be different.
// We can parse the result using "*" for the namespace prefixes (see below).
CkXml_Dispose(xml);
CkHttp_Dispose(http);
CkXml_Dispose(responseXml);