MYSQL
Here we will see how to create a destination in Gateway cockpit and map it manually to deployed OData service and then how to perform CRUD operation on service document.Test the OData service
3. Log on to SMP3 gateway cockpit https://smpserver:port/gateway/cockpit 4. Go to destinations tab, Create a new destination
5. Move to Services tab, click on deployed service employee_MYSQLDB.
6. Once done, open the service document,
http://smpserver:8080/gateway/odata/sap/employee_MySQLDB;v=1
7. Open service metadata document
smpserver:8080/gateway/odata/sap/employee_MySQLDB;v=1/$metadata
8. To get the details for the Entity 'employee' smpserver:8080/gateway/odata/sap/employee_MySQLDB;v=1/employee To fetch only first row of the table, smpserver:8080/gateway/odata/sap/employee_MySQLDB;v=1/employee(1001) OData operations : RetrieveEntity (READ)To retrieve details of a specific entity,use HTTP GET verb to execute the same.
REQUEST:
RESPONSE :
OData Operations – InsertEntity (CREATE)
REQUEST :
1006SACHINSHARMACHANDIGARHINDIA
RESPONSE :
OData Operations – UpdatetEntity (UPDATE)
REQUEST
xml version="1.0" encoding="UTF-8"?> 1003CHIPROGSAN FRANSUSA
RESPONSE :
OData Operations – DeleteEntity (DELETE)
REQUEST
RESPONSE :
NextPart 4 以上就是MYSQL-SMP3.0 : Integration Gateway with MySQL Datasource (Part 3)(图文)的内容, |