A simple service for interfacing with SAP NW RFC in REST, REST to SAP RFC Gateway
The services makes use of https://github.com/SAP/gorfc and echo
It encodes/decodes JSON from from and to map[string]interface{}
Currently with no security
To compile you should have these set. For env variables to connect look at sap.go
CGO_LDFLAGS_ALLOW=.*
CGO_CFLAGS_ALLOW=.*
CGO_CXXFLAGS_ALLOW=.*
SAPNWRFC_HOME=/home/phiadmin/sap/nwrfcsdk/
CGO_CFLAGS=-I /home/phiadmin/sap/nwrfcsdk/include
CGO_LDFLAGS=-L /home/phiadmin/sap/nwrfcsdk/lib
curl -X POST -H "Content-Type: application/json" -d '{}' http://localhost:8088/rfc/RFC_PING
curl -X POST -H "Content-Type: application/json" -d '{}' http://localhost:8088/rfc/STFC_STRUCTURE
curl -X POST -H "Content-Type: application/json" -d '{ "QUERY_TABLE" :"T000" }' http://localhost:8088/rfc/RFC_READ_TABLE