Chilkat HOME .NET Core C# Android™ AutoIt C C# C++ Chilkat2-Python CkPython Classic ASP DataFlex Delphi ActiveX Delphi DLL Go Java Lianja Mono C# Node.js Objective-C PHP ActiveX PHP Extension Perl PowerBuilder PowerShell PureBasic Ruby SQL Server Swift 2 Swift 3,4,5... Tcl Unicode C Unicode C++ VB.NET VBScript Visual Basic 6.0 Visual FoxPro Xojo Plugin
(AutoIt) SOAP Request to fseservicetest.sanita.finanze.it with Basic AuthenticationDemonstrates sending a SOAP request to fseservicetest.sanita.finanze.it with Basic Authentication.
; This example requires the Chilkat API to have been previously unlocked. ; See Global Unlock Sample for sample code. $oHttp = ObjCreate("Chilkat.Http") $oXml = ObjCreate("Chilkat.Xml") Local $bSuccess = False ; Create the SOAP envelope... $oXml.Tag = "soapenv:Envelope" $oXml.AddAttribute("xmlns:soapenv","http://schemas.xmlsoap.org/soap/envelope/") $oXml.AddAttribute("xmlns:stat","http://statoconsensirichiesta.xsd.fse.ini.finanze.it") $oXml.AddAttribute("xmlns:tip","http://tipodatistatoconsensi.xsd.fse.ini.finanze.it") $oXml.UpdateChildContent "soapenv:Header","" $oXml.UpdateChildContent "soapenv:Body|stat:StatoConsensiRichiesta|stat:IdentificativoUtente","XXXXXXAAABBBCCC" $oXml.UpdateChildContent "soapenv:Body|stat:StatoConsensiRichiesta|stat:pinCode","..." $oXml.UpdateChildContent "soapenv:Body|stat:StatoConsensiRichiesta|stat:IdentificativoOrganizzazione","999" $oXml.UpdateChildContent "soapenv:Body|stat:StatoConsensiRichiesta|stat:StrutturaUtente","123456789" $oXml.UpdateChildContent "soapenv:Body|stat:StatoConsensiRichiesta|stat:RuoloUtente","ZZZ" $oXml.UpdateChildContent "soapenv:Body|stat:StatoConsensiRichiesta|stat:ContestoOperativo","" $oXml.UpdateChildContent "soapenv:Body|stat:StatoConsensiRichiesta|stat:IdentificativoAssistitoGenitoreTutore","" $oXml.UpdateChildContent "soapenv:Body|stat:StatoConsensiRichiesta|stat:PresaInCarico","true" $oXml.UpdateChildContent "soapenv:Body|stat:StatoConsensiRichiesta|stat:TipoAttivita","READ" $oXml.UpdateChildContent "soapenv:Body|stat:StatoConsensiRichiesta|stat:IdentificativoAssistitoConsenso","ABCDEFGHIJKLM" Local $soapEnvelope = $oXml.GetXml() Local $sDomain = "fseservicetest.sanita.finanze.it" Local $sPath = "/FseInsServicesWeb/services/fseStatoConsensi" $oReq = ObjCreate("Chilkat.HttpRequest") $oReq.HttpVerb = "POST" $oReq.SendCharset = False $oReq.AddHeader "Content-Type","application/soap+xml; charset=utf-8" $oReq.Path = $sPath $bSuccess = $oReq.LoadBodyFromString($soapEnvelope,"utf-8") ; User name and Password for Basic Authentication $oHttp.Login = "XXXXXXAAABBBCCC" $oHttp.Password = "MYPASSWORD" Local $oResp = $oHttp.SynchronousRequest($sDomain,443,True,$oReq) If ($oHttp.LastMethodSuccess = False) Then ConsoleWrite($oHttp.LastErrorText & @CRLF) Exit EndIf $oXmlResp = ObjCreate("Chilkat.Xml") $bSuccess = $oXmlResp.LoadXml($oResp.BodyStr) ConsoleWrite($oXmlResp.GetXml() & @CRLF) |
© 2000-2024 Chilkat Software, Inc. All Rights Reserved.