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
integer li_rc
oleobject loo_Xml
string ls_SoapRequestBody
string ls_Endpoint
string ls_SoapAction
string ls_ContentType
oleobject loo_Http
oleobject loo_Resp
oleobject loo_ResponseXml
integer li_StatusCode
loo_Xml = create oleobject
li_rc = loo_Xml.ConnectToNewObject("Chilkat_9_5_0.Xml")
if li_rc < 0 then
destroy loo_Xml
MessageBox("Error","Connecting to COM object failed")
return
end if
loo_Xml.Tag = "soapenv:Envelope"
loo_Xml.AddAttribute("xmlns:soapenv","http://schemas.xmlsoap.org/soap/envelope/")
loo_Xml.AddAttribute("xmlns:tra","http://training.gov.au/services/12/")
loo_Xml.AddAttribute("xmlns:sys","http://schemas.datacontract.org/2004/07/System")
loo_Xml.AddAttribute("xmlns:arr","http://schemas.microsoft.com/2003/10/Serialization/Arrays")
loo_Xml.UpdateChildContent("soapenv:Header","")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:Codes|tra:OrganisationCode|tra:ActionOnEntity","None")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:Codes|tra:OrganisationCode|tra:EndDate","date")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:Codes|tra:OrganisationCode|tra:StartDate","date")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:Codes|tra:OrganisationCode|tra:Code","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:Contacts|tra:Contact|tra:ActionOnEntity","None")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:Contacts|tra:Contact|tra:EndDate","date")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:Contacts|tra:Contact|tra:StartDate","date")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:Contacts|tra:Contact|tra:Email","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:Contacts|tra:Contact|tra:Fax","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:Contacts|tra:Contact|tra:FirstName","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:Contacts|tra:Contact|tra:GroupName","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:Contacts|tra:Contact|tra:JobTitle","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:Contacts|tra:Contact|tra:LastName","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:Contacts|tra:Contact|tra:Mobile","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:Contacts|tra:Contact|tra:OrganisationName","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:Contacts|tra:Contact|tra:Phone","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:Contacts|tra:Contact|tra:PostalAddress|tra:CountryCode","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:Contacts|tra:Contact|tra:PostalAddress|tra:Latitude","99.0")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:Contacts|tra:Contact|tra:PostalAddress|tra:Line1","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:Contacts|tra:Contact|tra:PostalAddress|tra:Line2","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:Contacts|tra:Contact|tra:PostalAddress|tra:Longitude","99.0")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:Contacts|tra:Contact|tra:PostalAddress|tra:Postcode","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:Contacts|tra:Contact|tra:PostalAddress|tra:StateCode","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:Contacts|tra:Contact|tra:PostalAddress|tra:StateOverseas","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:Contacts|tra:Contact|tra:PostalAddress|tra:Suburb","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:Contacts|tra:Contact|tra:RoleCode","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:Contacts|tra:Contact|tra:Title","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:Contacts|tra:Contact|tra:TypeCode","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:CreatedDate|sys:DateTime","dateTime")
loo_Xml.UpdateChildContentInt("soapenv:Body|tra:Add|tra:rto|tra:CreatedDate|sys:OffsetMinutes",442)
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:DataManagers|tra:DataManagerAssignment|tra:ActionOnEntity","None")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:DataManagers|tra:DataManagerAssignment|tra:EndDate","date")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:DataManagers|tra:DataManagerAssignment|tra:StartDate","date")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:DataManagers|tra:DataManagerAssignment|tra:Code","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:IsLegacyData","true")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:Locations|tra:OrganisationLocation|tra:ActionOnEntity","None")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:Locations|tra:OrganisationLocation|tra:EndDate","date")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:Locations|tra:OrganisationLocation|tra:StartDate","date")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:Locations|tra:OrganisationLocation|tra:Address|tra:CountryCode","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:Locations|tra:OrganisationLocation|tra:Address|tra:Latitude","99.0")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:Locations|tra:OrganisationLocation|tra:Address|tra:Line1","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:Locations|tra:OrganisationLocation|tra:Address|tra:Line2","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:Locations|tra:OrganisationLocation|tra:Address|tra:Longitude","99.0")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:Locations|tra:OrganisationLocation|tra:Address|tra:Postcode","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:Locations|tra:OrganisationLocation|tra:Address|tra:StateCode","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:Locations|tra:OrganisationLocation|tra:Address|tra:StateOverseas","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:Locations|tra:OrganisationLocation|tra:Address|tra:Suburb","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:Locations|tra:OrganisationLocation|tra:OrganisationLocationId","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:PostalAddresses|tra:OrganisationPostalAddress|tra:ActionOnEntity","None")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:PostalAddresses|tra:OrganisationPostalAddress|tra:EndDate","date")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:PostalAddresses|tra:OrganisationPostalAddress|tra:StartDate","date")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:PostalAddresses|tra:OrganisationPostalAddress|tra:Address|tra:CountryCode","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:PostalAddresses|tra:OrganisationPostalAddress|tra:Address|tra:Latitude","99.0")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:PostalAddresses|tra:OrganisationPostalAddress|tra:Address|tra:Line1","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:PostalAddresses|tra:OrganisationPostalAddress|tra:Address|tra:Line2","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:PostalAddresses|tra:OrganisationPostalAddress|tra:Address|tra:Longitude","99.0")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:PostalAddresses|tra:OrganisationPostalAddress|tra:Address|tra:Postcode","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:PostalAddresses|tra:OrganisationPostalAddress|tra:Address|tra:StateCode","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:PostalAddresses|tra:OrganisationPostalAddress|tra:Address|tra:StateOverseas","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:PostalAddresses|tra:OrganisationPostalAddress|tra:Address|tra:Suburb","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:PostalAddresses|tra:OrganisationPostalAddress|tra:OrganisationPostalAddressId","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:PrincipalAddresses|tra:OrganisationPrincipalAddress|tra:ActionOnEntity","None")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:PrincipalAddresses|tra:OrganisationPrincipalAddress|tra:EndDate","date")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:PrincipalAddresses|tra:OrganisationPrincipalAddress|tra:StartDate","date")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:PrincipalAddresses|tra:OrganisationPrincipalAddress|tra:Address|tra:CountryCode","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:PrincipalAddresses|tra:OrganisationPrincipalAddress|tra:Address|tra:Latitude","99.0")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:PrincipalAddresses|tra:OrganisationPrincipalAddress|tra:Address|tra:Line1","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:PrincipalAddresses|tra:OrganisationPrincipalAddress|tra:Address|tra:Line2","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:PrincipalAddresses|tra:OrganisationPrincipalAddress|tra:Address|tra:Longitude","99.0")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:PrincipalAddresses|tra:OrganisationPrincipalAddress|tra:Address|tra:Postcode","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:PrincipalAddresses|tra:OrganisationPrincipalAddress|tra:Address|tra:StateCode","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:PrincipalAddresses|tra:OrganisationPrincipalAddress|tra:Address|tra:StateOverseas","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:PrincipalAddresses|tra:OrganisationPrincipalAddress|tra:Address|tra:Suburb","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:PrincipalAddresses|tra:OrganisationPrincipalAddress|tra:OrganisationPrincipalAddressId","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:ResponsibleLegalPersons|tra:ResponsibleLegalPerson|tra:ActionOnEntity","None")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:ResponsibleLegalPersons|tra:ResponsibleLegalPerson|tra:EndDate","date")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:ResponsibleLegalPersons|tra:ResponsibleLegalPerson|tra:StartDate","date")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:ResponsibleLegalPersons|tra:ResponsibleLegalPerson|tra:Abns|arr:string","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:ResponsibleLegalPersons|tra:ResponsibleLegalPerson|tra:Acn","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:ResponsibleLegalPersons|tra:ResponsibleLegalPerson|tra:Name","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:Roles|tra:Role|tra:ActionOnEntity","None")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:Roles|tra:Role|tra:EndDate","date")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:Roles|tra:Role|tra:StartDate","date")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:Roles|tra:Role|tra:Abbreviation","string")
loo_Xml.UpdateChildContentInt("soapenv:Body|tra:Add|tra:rto|tra:Roles|tra:Role|tra:Code",1042)
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:Roles|tra:Role|tra:Description","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:TradingNames|tra:TradingName|tra:ActionOnEntity","None")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:TradingNames|tra:TradingName|tra:EndDate","date")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:TradingNames|tra:TradingName|tra:StartDate","date")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:TradingNames|tra:TradingName|tra:Name","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:UpdatedDate|sys:DateTime","dateTime")
loo_Xml.UpdateChildContentInt("soapenv:Body|tra:Add|tra:rto|tra:UpdatedDate|sys:OffsetMinutes",442)
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:Urls|tra:Url|tra:ActionOnEntity","None")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:Urls|tra:Url|tra:EndDate","date")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:Urls|tra:Url|tra:StartDate","date")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:Urls|tra:Url|tra:Link","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:Classifications|tra:Classification|tra:ActionOnEntity","None")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:Classifications|tra:Classification|tra:EndDate","date")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:Classifications|tra:Classification|tra:StartDate","date")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:Classifications|tra:Classification|tra:PurposeCode","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:Classifications|tra:Classification|tra:SchemeCode","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:Classifications|tra:Classification|tra:ValueCode","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:CricosCodes|tra:RtoCricosCode|tra:ActionOnEntity","None")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:CricosCodes|tra:RtoCricosCode|tra:EndDate","date")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:CricosCodes|tra:RtoCricosCode|tra:StartDate","date")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:CricosCodes|tra:RtoCricosCode|tra:Cricos_x0020_Code","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:DeliveryLocations|tra:RtoDeliveryLocation|tra:ActionOnEntity","None")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:DeliveryLocations|tra:RtoDeliveryLocation|tra:EndDate","date")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:DeliveryLocations|tra:RtoDeliveryLocation|tra:StartDate","date")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:DeliveryLocations|tra:RtoDeliveryLocation|tra:Address|tra:CountryCode","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:DeliveryLocations|tra:RtoDeliveryLocation|tra:Address|tra:Latitude","99.0")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:DeliveryLocations|tra:RtoDeliveryLocation|tra:Address|tra:Line1","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:DeliveryLocations|tra:RtoDeliveryLocation|tra:Address|tra:Line2","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:DeliveryLocations|tra:RtoDeliveryLocation|tra:Address|tra:Longitude","99.0")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:DeliveryLocations|tra:RtoDeliveryLocation|tra:Address|tra:Postcode","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:DeliveryLocations|tra:RtoDeliveryLocation|tra:Address|tra:StateCode","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:DeliveryLocations|tra:RtoDeliveryLocation|tra:Address|tra:StateOverseas","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:DeliveryLocations|tra:RtoDeliveryLocation|tra:Address|tra:Suburb","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:DeliveryLocations|tra:RtoDeliveryLocation|tra:DeliveryLocationName","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:DeliveryLocations|tra:RtoDeliveryLocation|tra:RtoDeliveryLocationId","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:DeliveryNotifications|tra:DeliveryNotification|tra:ActionOnEntity","None")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:DeliveryNotifications|tra:DeliveryNotification|tra:DateOfChange","date")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:DeliveryNotifications|tra:DeliveryNotification|tra:GeographicAreas|tra:DeliveryNotificationGeographicArea|tra:CountryCode","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:DeliveryNotifications|tra:DeliveryNotification|tra:GeographicAreas|tra:DeliveryNotificationGeographicArea|tra:StateCode","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:DeliveryNotifications|tra:DeliveryNotification|tra:IsCessation","true")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:DeliveryNotifications|tra:DeliveryNotification|tra:NotificationDate","date")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:DeliveryNotifications|tra:DeliveryNotification|tra:Scopes|tra:DeliveryNotificationScope|tra:Code","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:DeliveryNotifications|tra:DeliveryNotification|tra:Scopes|tra:DeliveryNotificationScope|tra:TrainingComponentType","list of enumerated string values")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:RegistrationManagers|tra:RegistrationManagerAssignment|tra:ActionOnEntity","None")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:RegistrationManagers|tra:RegistrationManagerAssignment|tra:EndDate","date")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:RegistrationManagers|tra:RegistrationManagerAssignment|tra:StartDate","date")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:RegistrationManagers|tra:RegistrationManagerAssignment|tra:Code","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:RegistrationPeriods|tra:RegistrationPeriod|tra:ActionOnEntity","None")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:RegistrationPeriods|tra:RegistrationPeriod|tra:EndDate","date")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:RegistrationPeriods|tra:RegistrationPeriod|tra:StartDate","date")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:RegistrationPeriods|tra:RegistrationPeriod|tra:EndReasonCode","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:RegistrationPeriods|tra:RegistrationPeriod|tra:EndReasonComments","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:RegistrationPeriods|tra:RegistrationPeriod|tra:Exerciser","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:RegistrationPeriods|tra:RegistrationPeriod|tra:LegalAuthority","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:RegistrationPeriods|tra:RegistrationPeriod|tra:RegistrationApplicationRenew|tra:DateOfRejection","date")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:RegistrationPeriods|tra:RegistrationPeriod|tra:RegistrationApplicationRenew|tra:IsApplicationToRenew","true")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:RegistrationPeriods|tra:RegistrationPeriod|tra:RegistrationApplicationRenew|tra:RtoRegistrationOutcomeOfApplication","UnderConsideration")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:RegistrationStatus","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:RegulatoryDecisions|tra:RtoRegulatoryDecision|tra:ActionOnEntity","None")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:RegulatoryDecisions|tra:RtoRegulatoryDecision|tra:EndDate","date")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:RegulatoryDecisions|tra:RtoRegulatoryDecision|tra:StartDate","date")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:RegulatoryDecisions|tra:RtoRegulatoryDecision|tra:AdditionalDetails","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:RegulatoryDecisions|tra:RtoRegulatoryDecision|tra:Code","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:RegulatoryDecisions|tra:RtoRegulatoryDecision|tra:DecisionDetails","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:RegulatoryDecisions|tra:RtoRegulatoryDecision|tra:DecisionDetailsMarkedUp","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:RegulatoryDecisions|tra:RtoRegulatoryDecision|tra:DecisionLevelCode","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:RegulatoryDecisions|tra:RtoRegulatoryDecision|tra:DecisionMadeUnder","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:RegulatoryDecisions|tra:RtoRegulatoryDecision|tra:DecisionMadeUnderUrl","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:RegulatoryDecisions|tra:RtoRegulatoryDecision|tra:DecisionMadeUnderUrlText","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:RegulatoryDecisions|tra:RtoRegulatoryDecision|tra:DecisionMakerCode","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:RegulatoryDecisions|tra:RtoRegulatoryDecision|tra:DecisionStatusCode","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:RegulatoryDecisions|tra:RtoRegulatoryDecision|tra:DecisionTypeCode","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:RegulatoryDecisions|tra:RtoRegulatoryDecision|tra:EffectiveDate","date")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:RegulatoryDecisions|tra:RtoRegulatoryDecision|tra:IsHistoric","true")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:RegulatoryDecisions|tra:RtoRegulatoryDecision|tra:Reference","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:RegulatoryDecisions|tra:RtoRegulatoryDecision|tra:RegulatoryDecision","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:RegulatoryDecisions|tra:RtoRegulatoryDecision|tra:RegulatoryDecisionEvents|tra:RtoRegulatoryDecisionEvent|tra:AttachmentUrl","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:RegulatoryDecisions|tra:RtoRegulatoryDecision|tra:RegulatoryDecisionEvents|tra:RtoRegulatoryDecisionEvent|tra:AttachmentUrlText","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:RegulatoryDecisions|tra:RtoRegulatoryDecision|tra:RegulatoryDecisionEvents|tra:RtoRegulatoryDecisionEvent|tra:DecisionMakerCode","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:RegulatoryDecisions|tra:RtoRegulatoryDecision|tra:RegulatoryDecisionEvents|tra:RtoRegulatoryDecisionEvent|tra:EventDate","date")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:RegulatoryDecisions|tra:RtoRegulatoryDecision|tra:RegulatoryDecisionEvents|tra:RtoRegulatoryDecisionEvent|tra:EventDetails","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:RegulatoryDecisions|tra:RtoRegulatoryDecision|tra:RegulatoryDecisionEvents|tra:RtoRegulatoryDecisionEvent|tra:EventStatusCode","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:RegulatoryDecisions|tra:RtoRegulatoryDecision|tra:RegulatoryDecisionEvents|tra:RtoRegulatoryDecisionEvent|tra:IsHistoric","true")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:RegulatoryDecisions|tra:RtoRegulatoryDecision|tra:RegulatoryDecisionMapping|tra:RtoRegulatoryDecisionMapping|tra:Code","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:RegulatoryDecisions|tra:RtoRegulatoryDecision|tra:RegulatoryDecisionMapping|tra:RtoRegulatoryDecisionMapping|tra:Description","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:RegulatoryDecisions|tra:RtoRegulatoryDecision|tra:RegulatoryDecisionMapping|tra:RtoRegulatoryDecisionMapping|tra:MapFromRelationshipCode","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:RegulatoryDecisions|tra:RtoRegulatoryDecision|tra:RegulatoryDecisionMapping|tra:RtoRegulatoryDecisionMapping|tra:MapToRelationshipCode","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:RegulatoryDecisions|tra:RtoRegulatoryDecision|tra:RegulatoryDecisionMapping|tra:RtoRegulatoryDecisionMapping|tra:MapsToCode","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:RegulatoryDecisions|tra:RtoRegulatoryDecision|tra:ReverseRegulatoryDecisionMapping|tra:RtoRegulatoryDecisionMapping|tra:Code","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:RegulatoryDecisions|tra:RtoRegulatoryDecision|tra:ReverseRegulatoryDecisionMapping|tra:RtoRegulatoryDecisionMapping|tra:Description","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:RegulatoryDecisions|tra:RtoRegulatoryDecision|tra:ReverseRegulatoryDecisionMapping|tra:RtoRegulatoryDecisionMapping|tra:MapFromRelationshipCode","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:RegulatoryDecisions|tra:RtoRegulatoryDecision|tra:ReverseRegulatoryDecisionMapping|tra:RtoRegulatoryDecisionMapping|tra:MapToRelationshipCode","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:RegulatoryDecisions|tra:RtoRegulatoryDecision|tra:ReverseRegulatoryDecisionMapping|tra:RtoRegulatoryDecisionMapping|tra:MapsToCode","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:RegulatoryDecisions|tra:RtoRegulatoryDecision|tra:ReviewStatusCode","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:Restrictions|tra:RtoRestriction|tra:ActionOnEntity","None")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:Restrictions|tra:RtoRestriction|tra:EndDate","date")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:Restrictions|tra:RtoRestriction|tra:StartDate","date")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:Restrictions|tra:RtoRestriction|tra:Code","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:Restrictions|tra:RtoRestriction|tra:Restriction","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:Restrictions|tra:RtoRestriction|tra:RestrictionTypeCode","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:Restrictions|tra:RtoRestriction|tra:ShowRestriction","true")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:RtoHigherEducations|tra:RtoHigherEducation|tra:ActionOnEntity","None")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:RtoHigherEducations|tra:RtoHigherEducation|tra:EndDate","date")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:RtoHigherEducations|tra:RtoHigherEducation|tra:StartDate","date")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:RtoHigherEducations|tra:RtoHigherEducation|tra:IsHigherEducation","true")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:RtoSchoolProviders|tra:RtoSchoolProvider|tra:ActionOnEntity","None")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:RtoSchoolProviders|tra:RtoSchoolProvider|tra:EndDate","date")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:RtoSchoolProviders|tra:RtoSchoolProvider|tra:StartDate","date")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:RtoSchoolProviders|tra:RtoSchoolProvider|tra:IsSchoolProvider","true")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:Scopes|tra:Scope|tra:ActionOnEntity","None")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:Scopes|tra:Scope|tra:EndDate","date")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:Scopes|tra:Scope|tra:StartDate","date")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:Scopes|tra:Scope|tra:ExtentCode","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:Scopes|tra:Scope|tra:IsImplicit","true")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:Scopes|tra:Scope|tra:IsRefused","true")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:Scopes|tra:Scope|tra:NrtCode","string")
loo_Xml.UpdateChildContent("soapenv:Body|tra:Add|tra:rto|tra:Scopes|tra:Scope|tra:ScopeDecisionType","Granted")
loo_Xml.UpdateChildContent("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.
loo_Xml.EmitXmlDecl = 0
ls_SoapRequestBody = loo_Xml.GetXml()
ls_Endpoint = "https://ws.staging.training.gov.au/Deewr.Tga.WebServices/OrganisationServiceV12.svc/Organisation"
ls_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"
ls_ContentType = "text/xml"
loo_Http = create oleobject
li_rc = loo_Http.ConnectToNewObject("Chilkat_9_5_0.Http")
loo_Http.ClearHeaders()
loo_Http.SetRequestHeader("Content-Type",ls_ContentType)
loo_Http.SetRequestHeader("SOAPAction",ls_SoapAction)
loo_Resp = loo_Http.PostXml(ls_Endpoint,ls_SoapRequestBody,"utf-8")
if loo_Http.LastMethodSuccess = 0 then
Write-Debug loo_Http.LastErrorText
Write-Debug "Failed to send SOAP request."
destroy loo_Xml
destroy loo_Http
return
end if
// Get the XML response body.
loo_ResponseXml = create oleobject
li_rc = loo_ResponseXml.ConnectToNewObject("Chilkat_9_5_0.Xml")
loo_Resp.GetBodyXml(loo_ResponseXml)
li_StatusCode = loo_Resp.StatusCode
Write-Debug "response status code: " + string(li_StatusCode)
destroy loo_Resp
// If the status code does not indicate succcess, then show the response XML,
// which probably contains error information.
if li_StatusCode <> 200 then
Write-Debug loo_ResponseXml.GetXml()
destroy loo_Xml
destroy loo_Http
destroy loo_ResponseXml
return
end if
Write-Debug loo_ResponseXml.GetXml()
// 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).
destroy loo_Xml
destroy loo_Http
destroy loo_ResponseXml