Server side
ข้อ ที่ 1Service ที่ 1
1. เก็บรายชื่อไว้ใน database
2. เขียน function fetch ข้อมูลจาก database
3. เขียน service ในการส่งข้อมูล
4. ทำ file .xsd เช็ก schema
5. เช็กว่า xml validate กับ schema หรือไม่
6. ส่ง xml ไปยัง client
Client side
user Python and Node JS
Python
result
Node JS
result
________________________________________________________________________________
Service ที่ 1
1. สร้าง table เก็บการส่งข้อมูล database
2. รับค่าจาก client
3. เขียน function insert ข้อมูล
Service ที่ 2
1. update ข้อมูลใน table ให้หมดจาก (sended = no) => (sended = yes)
Service ที่ 3
1. เรียกข้อมูลทั้งหมดออกมาดูจาก table
2. ทำ file .xsd เช็ก schema
3. เช็กว่า xml validate กับ schema หรือไม่
4. ส่ง xml ไปยัง client
Client side
user Python and Node JS
Python
service 1
service 2
service 3
result
Node JS
service 1
service 2
service 3
result
_________________________________________________________________________________
GitHub and Heroku
Server Github : https://github.com/tapetop18135/selectMidtermTest
Client Github : https://github.com/tapetop18135/selectMidtermClient
Server Heroku: https://minitestsoap.herokuapp.com/soapAPI1/?wsdl
ไม่มีความคิดเห็น:
แสดงความคิดเห็น