Genexus Ev3 - External variable procedure

0

I need to create a GX procedure that will be called by an application developed on another platform.

The Genexus procedure needs to receive a variable, and if possible return.

Any guidance on exchange of variables and external call to a procedure developed in Genexus?

Gx Ev.3 - Java Win.

    
asked by anonymous 01.07.2015 / 21:16

2 answers

0

Felipe,

Thanks for the response.

Actually the procedure that I intend to create is consuming a web service.

I am creating the ws client routine in Genexus Ev3 Java, this procedure will be used by objects generated in other versions of Genexus (2.1,7,9) and other generators (.NET, Visual Fox) If you need to perform the parameter exchange, at least in the proc call, in return I can write to text file.

I believe that the most likely thing to do is to call the procedure client (ev3) in the generator's native language (.Net, VF), have any other solutions?

And how to prepare this procedure to receive external parameters? With parm (out :)?

I'll conduct tests as directed by the link:

link

At.

Filipe

    
02.07.2015 / 21:57
1

Good morning!

There are n ways to do what you requested, but the one I most recommend is through webservice, follow the wiki link:

link

If you need to call your procedure as an external program, you can use the shell command to call it by other programs:

link

As your procedure is java you can do:

    &msg = "java -cp gxclassr.jar;seudrivedebancodedados.jar; suaclassjava parm1 parm2 parm3" 
//(parâmetros sempre separados por espaços).

    &ret = shell(&msg)

The only disadvantage of the shell is that it does not return messages, so you would need to write the return in the database or in the text file as quoted above. good luck, if you need more help do not hesitate to send me an email.

Hope you can help.

Sincerely, Felipe.

    
02.07.2015 / 14:17