The WMS Web API enables users to extend functionality without deeper knowledge of the codebase or the database structure.
Expose WMS functionalities on a middle layer between Produmex objects and the applications using them. The value of this feature is making it possible to connect WMS with cloud platforms and the integration of third-party products like Kardex, Automated warehouse, Beas, etc.
WebAPI Functions in details: Produmex WMS WebAPI Functions
Important: It is recommended that the Produmex WMS WebAPI be managed by experienced users or programmers with advanced developer knowledge.
To access the WebAPI components visit the Produmex download page:
http://www.produmex.name/PmxVersions.php?p=WMS
Note:The installation could be familiar for you, the WebAPI installation process is based on the Produmex Scan Fresh Installation. For any inconveniences during the installation you can check for extra information on the previously mentioned site.
Make sure that you do not run both the 32-bit version and the 64-bit version Service Broker on one environment. Only one service broker instance should be installed on a server at a time.
Tips & Tricks
When installing the web API, you might encounter errors due to blocked .dll files. These errors can involve different .dll files each time. To resolve this, you need to click ‘Unblock’ to use the web API.
Information
1. Extract the ProdumexServiceBrokerSetup file and run the BxServiceBroker.Setup.exe file.
2. Accept the License Agreement and click Install
.
The setup process is started, it may take some time.
3. Configure the service settings on the Produmex Service Broker Config form as follows.
Next
.
4. On the Admin Page form specify a password for the Service Broker Administration web page in the Web password field and click Next
.
5. On the Database connection form provide the connection data to the database server that has access to the company database/schema as follows.
Next
and continue with step 6 in this section.Next
.6. Set up the company database/schema on the Default SAP Company form as follows.
Next
.Note: Only one company can be set up with this step. If you have more than one database/schema, you can add them in the Produmex Service Manager after finishing the installation (see documentation here).
7. This setting is used for configuring & select the Produmex WMS WebAPI's location. The WMS Location is required to be selected correctly!
Be aware if you click on the “Next” button you will skip the “Get location” selection part, without selecting your WMS Tools folder the WebAPI will NOT work!
Click on the “Get Location” button, after the pop-up windows appeared find your “WMS Tools” folder and select it. Standard location for “WMS Tools” folder is the following: C:\Program Files\Produmex\Produmex Tools
8. The system displays a summary about your settings. If a setting needs to be changed, click Back
and modify the necessary setting. If the data is correct, click Finish
.
When you selected the “WMS Tools” folder your summary will display the WMS location as well.
9. The installation is finished. Click Close
.
10. Open the Produmex Service Manager. It is automatically installed with the Service Broker.
11. Click the Companies
button and on the Select Companies form select your company database. Click OK
.
If the server where Produmex Service Broker runs needs to be restarted frequently, it is recommended to configure dependency from the SBO Server Tools service.
When Produmex Service Broker starts, it tries to connect to the SAP environment. If the connection fails, Produmex Service Broker will not start. If the Produmex Service Broker is dependent on the SBO Server Tools service, it starts and connect to the SAP environment when the SBO Server Tools service is started as well.
Note: Make sure you do not set the dependency on HANA environments. The Produmex Service Broker is a Windows service, SAP HANA and Produmex Service Broker are running on separate servers. To avoid this issue, make sure that the HANA server is already running when you restart the server of the Service Broker.
To configure the dependency proceed as follows.
1. Open the Command Prompt window and enter the following:
C:\>sc config BXServiceBroker depend=B1ServerTools
2. Open the Services app, right-click on the Produmex Service Broker and select Properties. On the Dependencies tab you can see that the dependency is successfully added:
The Produmex Service Broker works together with different Produmex add-ons and it uses the dlls of the given add-on. Install the dlls with the Produmex Service Broker Module Installer as follows.
1. Extract the ProdumexWMS_ServerSetup_2024.04.06.0062_SBO10.0_MSSQL_x64.zip file and run the WMSWebAPI_2024.04.06.0062_setup file.
2. Click Install
on the Produmex Service Broker Module Installer and when the installation is finished, click OK
on the Success form.
3. The system restarts the Service Broker. Click OK
on the Success form.
Note: The add-on and the server dlls must be for the same version. If you use different versions, error messages may be displayed. Start the installer and it will automatically copy the dlls. Then restart the Service Broker.
Open the “License Configurator” to add new users.
When you open the License Configurator, the Automatic license type is checked by default and the License Configurator tries to download the licensing data from the Boyum IT portal automatically. If you wish to read more about the “License Configurator” click here.
If you have an active internet connection and the license can be downloaded, you will see the following window.
On the right side of the window a “WebAPI Users” tab can be seen. Click on that tab to open the users tab.
How to add new users?
In default state the window is empty, right click on the header of the WebAPI users table, with this action you can add new users to the system.
During the process of adding new users, you can define their names and passwords. Once you have entered the name and password, simply press “Enter” to save the user. Deleting users is just as straightforward; right-click on the selected user and choose the delete option. If you wish to retain the user but they are not currently needed in the workflow, you can simply check the “disable” box.
Do NOT forget to save your configurations & restart service before closing the License Configurator!
1. To connect the WebAPI to Swagger use the following link:
http://localhost:50231/swagger/ui/index#
Make sure you changed the localhost before visiting the link. The path to find your localhost number, open the “Produmex Service Manager” start the service, then click on the “hammer” icon. On the right side of window you will find the localhost number.
2. Open the previous link with the correct localhost
For authentication you must login with the created user & password that has been created in the “License Configurator”.
In the WMSAuthentication menu process with the login:
WMSAuthentication: /api/wms/authentication/login
If the login process is successful, the following window will appear. A token will be displayed in this window, confirming that the WebAPI is functioning correctly.