Posts

A real example of Client WS: Consuming the Gexflow application service for writing entrance records

0. Introduction This is a real HOW-TO task. The steps to follow are: Create a user in the local application of Gexflow (by Teralco ). Assing the necessary permissions to the user so that he can consume the services Copy the client consumer generated in the last post Fill the parameters and execute the request Analyze the result and verify them in the DB. 1. Create a user and assign permissions. 1. Open a browser and type this address  http://xxxx.yyyy.zzzz.kkkk:8080/gexflowzk where xxxx.yyy.xxx.kkkk is the IP address of the server, and login providing your user and password 2. In the upper menu select " Organización - Mantenimiento de Unidades Administrativas ". As consuming WS is a matter of computer and networks related department, select this department. 3. In  " Puestos ", add a new one, for instance, " WS-Consumer ". 4. Select a " Rol " that can manage all the aspects of " Registro de Entrada/Salida ". I...

Creating a WS Client consumer

Image
Creating the client consumer I was expected to develop a client consumer of a WS. So I began to google out and find Apache CXF project. Here are the main steps: 1. Get the URL of the WDSL in my case was an intranet     http://xxx.xxx.xxx.xxx:8080/gexflow/ws/Registro_v2.0?wsdl     where xxx.xxx.xxx.xxx is the IP address (for instance 110.12.3.1) 2. Download Apache CXF. 3. Extract into a folder 3.1. Verify that you have set the variable JAVA_HOME to the folder where the java is installed, now you can use java >9. For instance, you can type in the terminal:     export JAVA_HOME=/usr/java/jdk-13.0.2 //in java version >13 doesn't work  using apache cxf 3.3.6 version, but java 17 works in csf version 3.5.4 3.2. Verify that the " bin" directory of the apache-cxf-xxxxx directory is available in the path.  For instance, you can type in the terminal:      export PATH=$PATH:/home/ximo/MyPrograms/apache-cxf-3.3.6/bi...