go to post Enrico Parisi · Dec 12, 2024 When you purge that namespace with 30 day retention period, what value of "Purge only completed sessions" (was Keep Integrity in older versions) do you use? Have you ever run the purge without including message bodies?
go to post Enrico Parisi · Dec 11, 2024 CONNECTION is a class parameter, to search all class parameters named CONNECTION with a specific value: select parent from %Dictionary.CompiledParameterwhere name = 'CONNECTION' and _Default='<your connection value to search>'
go to post Enrico Parisi · Dec 11, 2024 Code adapted with your details: Set objHttpRequest = ##class(%Net.HttpRequest).%New() Set objHttpRequest.ContentType = "application/fhir+json" Set objHttpRequest.Server = "localhost" Set objHttpRequest.Port = "52773" Set pRequest = {"asd":"asd"} Do objHttpRequest.EntityBody.Write(pRequest.%ToJSON()) If objHttpRequest.Send("POST", "/aktest/test") { Set objHttpResponse = objHttpRequest.HttpResponse If $IsObject(objHttpResponse.Data) { Set objStream = objHttpResponse.Data Set json = "" While ('objStream.AtEnd) { Set json = json _ objStream.ReadLine() } } Else { Set json = objHttpResponse.Data } Set httpStatus = objHttpResponse.StatusCode Write "Status: ", httpStatus, ! Write "Response: ", json, ! }
go to post Enrico Parisi · Dec 11, 2024 I do not understand your question, can you please explain what you need to achieve? %Net.HttpRequest class is used to create an HTTP request that is sent to the counterpart/endpoint and a response message is then received from the counterpart. How can you possibly generate a response that, by definition, has to be received from a remote system? Clearly I'm missing something.
go to post Enrico Parisi · Dec 10, 2024 You may try with: set tQuery="{ CALL dbo.SavePatientDetails (?) }" Set tParams=1 Set tParams(1)=xmlContent Set tParams(1,"SqlType")=$$$SqlVarchar ; or 12 if macro does not resolve Set tSC = ..Adapter.ExecuteProcedureParmArray(.tResultSnapshots, .tOutputParms, tQuery,,.tParams) For details see the SQL adapters documentation on Using Parameters.
go to post Enrico Parisi · Dec 10, 2024 Does it works if you use NVARCHAR(8000)? My guess is that IRIS does not understand "MAX", if so...maybe there is a possible solution. P.S.: what version of IRIS?
go to post Enrico Parisi · Dec 9, 2024 the ExecuteUpdate method expects the parameters to be passed in as an array Actually, no, it expects parameters as single/literal values. The method ExecuteUpdateParmArray() expects parameters to be passed in as an array
go to post Enrico Parisi · Dec 6, 2024 Actually, try this: select * from INFORMATION_SCHEMA.FOREIGN_SERVERS
go to post Enrico Parisi · Dec 6, 2024 I'm no expert on foreign tables, but maybe you can try: select * from INFORMATION_SCHEMA.FOREIGN_TABLES This should provide a list of defined foreign tables and the Foreign Server it uses. I'm not sure how to get Foreign Server that have no tables defined.
go to post Enrico Parisi · Dec 3, 2024 You can, this way: Property Entry As list Of Entry(XMLPROJECTION = "ELEMENT"); Note that the tag is the name of the list property, not the list item.
go to post Enrico Parisi · Dec 2, 2024 In your "SQL Gateway Connection" definition verify the configuration of "Do not use delimited identifiers by default"
go to post Enrico Parisi · Dec 1, 2024 What platform (Operating System) are you using for IRIS? I think NTLM authentication is not available in IRIS for Linux.
go to post Enrico Parisi · Dec 1, 2024 To debug your issue I suggest to enable SOAP logging setting this two global node: Set ^ISCSOAP("LogFile")="/path/to/yourlog/filename.log"Set ^ISCSOAP("Log")="ios" Values for ^ISCSOAP("Log") are:"i" — Log inbound messages"o" — Log outbound messages"s" — Log security information. Then call your SOAP service and check the log file for hints on the actual issue. When finished debugging remember to turn it off with Set ^ISCSOAP("Log")="" or Kill ^ISCSOAP("Log") In error handling code, when using SOAP and a <ZSOAP> error in triggered, the actual error status is contained in %objlasterror variable, so: Set displayString = ex.DisplayString() If displayString [ "<ZSOAP>" { Set displayString=$system.Status.GetErrorText(%objlasterror) } It's all documented, I cannot post documentation links because the documentation site it's not working for me at the moment.
go to post Enrico Parisi · Nov 28, 2024 According to the documentation, it's not possible exporting an object. Edit: however, as pointed out by @Herman Slagman in the next post, it's indeed possible, I'm going to provide feedback to documentation team. You can manually create the XML document using %XML.Writer, like: set writer=##class(%XML.Writer).%New() set writer.Indent=1 set writer.NoXMLDeclaration=1 set status=writer.OutputToDevice() set status=writer.StartDocument() set status=writer.RootElement("XMLTest") set status=writer.Element("Id") set status=writer.WriteAttribute("Attribute","D1949EE1-7D03-4666-9548-D1A949E10327") set status=writer.EndElement() set status=writer.EndRootElement() set status=writer.EndDocument() The output of the above code is: <XMLTest> <Id Attribute="D1949EE1-7D03-4666-9548-D1A949E10327"/> </XMLTest> Having said that, what's your issue with the closing tag? Semantically there is no difference, any system should be able to handle both cases (with or without closing tag).
go to post Enrico Parisi · Nov 28, 2024 My guess is that your %var local variable array is in conflict with the code executed by the embedded sql. As you may know % local variables have global scope, therefore should be used with caution, particularly when calling "other code", like embedded sql in your case. If a global scope % variable is needed, is advisable to follow the documentation on Local Variable Naming Convention: Variable names starting with the % character are known as “percent variables” and have different scoping rules. In your code, for a local percent variable, start the name with %Z or %z; other names are reserved for system use. I suggest to change your variable to %zvar or similar, if you do not need global scoping, remove the leading %.
go to post Enrico Parisi · Nov 21, 2024 The time Veeam create a snapshot should be measured in seconds, not minutes! If your server does not use/need any application guest processing (Oracle etc.), then in Veeam you can be disabled in "Application-Aware Processing Options" in the Backup Job configuration for your Suse IRIS server , "Disable application processing": As @Timo Lindenschmid pointed out, you may consider backing up the secondary server. In case you want to backup the primary, make sure to set mirror QoS appropriately.
go to post Enrico Parisi · Nov 21, 2024 Ciao Pietro, difficult to tell without looking at the code. Looking at the response my guess (bet?😉) is that your code has some error processing and if "somewhere" an error status is returned, then the error processing is triggered and is returning the response you see, including headers etc.
go to post Enrico Parisi · Nov 20, 2024 In the documentation site (every page?) there is a "Feedback" blue button on the right of the page, click on it...