Question Kurro Lopez · Mar 15 Event onPostDispatch %CSP.Rest or similar Hi all, For a requirement of the customer, we have a BS Rest api with a lot of methods, we need to get the IP of the caller, the method and what is the time that the API has taken to process. I've found the event onPreDispatch where I can take the IP, ClassMethod, etc.. I'm using a global variable to save this information. #API #Business Service #ObjectScript #REST API #InterSystems IRIS 0 5 0 58
Question Kurro Lopez · Feb 12 How to get the Job id for a BS API Rest for debug? Hi all, As you know, it is very complicated to debug a Business Service Rest API because the object is created when the applications receive a request, so we cannot have the JobId that we can use to debug. https://docs.intersystems.com/iris20211/csp/docbook/DocBook.UI.Page.cls?... So, I'm trying to get the JobId when the class is being created, write a trace in OnInit() method and write the JobId in a log info #API #Business Service #CSP #REST API #Studio #InterSystems IRIS 1 3 0 104
Question Kurro Lopez · Feb 8 Deserialize class from JSon with nodes null Hi all, We have a class response inherited from %JSON.Adaptor with the following properties, also dependent classes: #API #JSON #InterSystems IRIS 1 3 0 91
Question Kurro Lopez · Feb 7 Error debug from VS Hi community. Yes, I know that there is other question "VS Code - debugging doesn't work" that is the same issue, but my IRIS instance is not using IIS. Some times ago, I could debug without problems, but after some updates of Visual Studio, I get the following error Failed to start the debug session. Check that the Intersystems server's web server supports WebSockets #Debugging #JSON #ObjectScript #Studio #InterSystems IRIS #VSCode 1 3 0 87
Question Kurro Lopez · Feb 1 How to process parallelly a process from a business service? Hi community. I have an API that is deployed in my production (business service) and it calls to a business process to retrieve the information that is requested. The problem that I have is that the calls are queued and it's creating a bottleneck The business process is taking more time than needed. Is possible to configure the BP to process parallely the requests? #API #Business Process (BPL) #Business Service #Ensemble #InterSystems IRIS 1 4 0 96
Question Kurro Lopez · Jan 31 How to clone a namespace? Hi community, We have a developed a new version of a production, all the code is new and has changed BP. This application load information for some brands and stored in database. The customer wants to implement the changes only for some brands because he wants to check for small brands before to implement for all brands. My proposal is create a new namespace, with the new code, and disabled all load of brands except the brand that he wants to check. I'm wondering what is the best way to clone the namespace. #Backup #Databases #Namespace #InterSystems IRIS #InterSystems IRIS for Health 1 2 0 81
Question Kurro Lopez · Jun 1, 2023 Call to business operation dinamically from HL7 Router Hi all, I'm wondering if is possible to call to a BO from a HL7 Route according to a parameter of the HL7 Message I mean, According to the identify of the laboratory, I want to call to other TCP process to retrieve information about blood tests. We are creating the BO using this partern. LAB.BO.TCP. + name of the laboratory. The name of the laboratory is stoted in the lookup table T_LABORATORIOS I've tried to assign the name into a variable and put it in the "send" instruction, but it doesn't work. #Business Rules #HL7 #Interoperability #InterSystems IRIS 1 3 0 155
Question Kurro Lopez · Apr 19, 2023 Replace text by args Hi all, I'm wondering if exists any command or method to replace a text using parameters. In C# I use the Format property #Key Question #InterSystems IRIS 1 11 1 302
Question Kurro Lopez · Mar 14, 2023 Error installing ZPM Hi all, I'm trying to install ZPM into a new instance of IRIS to download packages of utilities in our develop server. When I'm loading the file zpm-0.5.3.xml it is throwing the following error: Any help? Thanks in advance #InterSystems Package Manager (IPM) #InterSystems IRIS for Health 1 4 0 260
Question Kurro Lopez · Sep 19, 2022 Get HttpStatus in a response using EnsLib.HTTP.OutboundAdapter Hi community, I have to do a development that should to connect with a external REST API and it throws different HttpStatus and a body content with the description of the problem. I'm using the following code: #REST API #Caché 1 2 0 209
Question Kurro Lopez · Jul 21, 2022 Webterminal broken :( Hi all, I've just update the version of WebTerminal using the link, but now it doesn't work. When call to /terminal is displaying the following error: #Terminal #Caché #InterSystems IRIS 1 3 0 212
Question Kurro Lopez · Apr 26, 2022 Webterminal - Error connection to server Hi all, We just migrated the new Iris server 2021.2 all our productions in a develop server. It's a Windows 2019 server. I've installed Webterminal to have a good connection to this server remotly, but it is throwing this error message: #InterSystems IRIS 1 3 0 285
Question Kurro Lopez · Feb 17, 2022 How to don't throw Ens.Alert for messages from a Business Operation Hi all, I have a rule to throw a message when there is an error. I want to prevent send the email if the origin of the error is the API to send the email This is my rule Now, If there is any error in any process, it works, but if there is an error in MyProduct.BO.SendEmail it is trying to send the error again, and it is a infinite loop. Is there any way to check what is the origin and don't process if the origin is MyProduct.BO.SendEmail? #Business Rules #Error Handling #Caché #HealthShare 1 2 0 270
Question Kurro Lopez · Nov 4, 2021 How to convert datetime ISO 8601 to ObjectScript datetime Hi all, I have a process that recive a datetime in ISO 8601 format (YYYY-MM-DDThh:mm:ss+001) to %timestamp value. Example: set myDatetime = "2021-11-04T11:10:00+0100" I've triyed use $SYSTEM.SQL.CONVERT(myDatetime,"SQL_TIMESTAMP") but it doesn't work. Any idea? Regards,Kurro Lopez #Caché 1 7 0 640
Question Kurro Lopez · Oct 29, 2021 Use Rule to call WS 1 to n Hi all. I'm trying to create a route rule that can call to a web service according to a parameter of a message. My first attempt is the following: I have a common class with all information, BuscarHuecoRequest, and check what is the value of property "CodigoProveedor". #Business Rules #Caché #Ensemble 1 1 0 185
Question Kurro Lopez · Sep 23, 2021 Unexpected ContenType when call a WS Soap Hi community, I have a SOAP Client class that connect to a WS Service. This structure and configuration is the same for some providers that are integrated with my solution. If I call to a provider, it returns the XML expected. But there is a provider that raises an error: ERROR #6243: HTTP request to SOAP WebService returned response with unexpected CONTENT-TYPE: application/wsdl+xml #SOAP #Caché #Ensemble 1 3 0 256
Question Kurro Lopez · Apr 28, 2021 Query method in a class %Persistent using itself as parameters Hi all, I'm wondering if is possible to get the values of itself to run a query. I want to create some query to find a value into a %Persistent class but each one use diferent values. #SQL #Caché #HealthShare 1 6 0 232
Question Kurro Lopez · Apr 23, 2021 Sort alphabetically a list of names Hello everyone, I don't want to believe that Intersystems didn't add a method/process/rule to sort alphabetically a list of names (in array, $ LB or whatever) I haven't found any documentation about this. I've even tried comparing two strings but have not found a solution. My cry for help is... Does exists any command to compare two strings and check if one of them is lower or upper according to aphabet? Please, give me a light in this dark Best regards.Kurro Lopez #Caché 1 7 0 796
Question Kurro Lopez · Mar 10, 2021 SOAP Error CONTENT-TYPE response text/html instead of text/xml Hi all, I have a very weird error when I'm calling to a SOAP Webservice as client. I've create all objects to invoke to this SOAP using the add-in "Assistant SOAP" in Eclipse, it has created all objects (Response, Request, Business operation WS class, etc...). When I call to this service it retuns the following error message: ERROR #6243: HTTP request to SOAP WebService returned unexpected CONTENT-TYPE response: text/html. #Business Operation #Interoperability #SOAP #Caché 2 4 0 3.6K
Question Kurro Lopez · Feb 25, 2021 Export partial JSon to a response message Hi all, I have a API operation that is calling to a external process. The answer is a big json but I only want a pice of the full content. My first attempt is: #Caché 1 2 0 223