Hello people!
I have created a server that run Apache tomcat & Java JDK to communicate essential information or sales invoice data to another organization totally different from ours. This system works very well if run on the local server where Apache tomcat & JDK is installed.
Now we have forty workstations scattered in some branches, instead of installing Apache Tomcat & Java JDK on each machine or making them individual servers, I want all of them (Workstation) to go through only one local server that is running this distributed website to communicate the information or sending sales invoice data to an outside company just like it is done on the local server.
The nominated local server uses the VBA code below to communicate direct to an outside server, kindly note that the endpoints is incorrect for security reasons. So, since all the forty machines have the same FE installed on them, then how can I change the VBA code below on each workstation so that each workstation goes through the local server and communicate the sales invoice data to an outside computer in another company just like the local server does using the stated end point below:
I have created a server that run Apache tomcat & Java JDK to communicate essential information or sales invoice data to another organization totally different from ours. This system works very well if run on the local server where Apache tomcat & JDK is installed.
Now we have forty workstations scattered in some branches, instead of installing Apache Tomcat & Java JDK on each machine or making them individual servers, I want all of them (Workstation) to go through only one local server that is running this distributed website to communicate the information or sending sales invoice data to an outside company just like it is done on the local server.
The nominated local server uses the VBA code below to communicate direct to an outside server, kindly note that the endpoints is incorrect for security reasons. So, since all the forty machines have the same FE installed on them, then how can I change the VBA code below on each workstation so that each workstation goes through the local server and communicate the sales invoice data to an outside computer in another company just like the local server does using the stated end point below:
Code:
Dim Request As Object
Dim stUrl As String
Dim Response As String
Dim requestBody As String
Dim Details As Variant
Dim strData As String
strData =""greetings", "Hellow World"" 'note body in Json
stUrl = "http://localhost:8080/jrasandboxtsdx/trnsSales/saveSales"
Set Request = CreateObject("MSXML2.XMLHTTP")
requestBody = strData
With Request
.Open "POST", stUrl, False
.setRequestHeader "Content-type", "application/json"
.send requestBody
Response = .responsetext
End With