Tuesday, April 22, 2008

web service

สร้าง complex type จาก database table หรือ สร้างมือสร้าง method และ add ลงไปใน web service
เพิ่ม case ใน @test_xxxxxxservice
ดู wsdlhttp://xxxx.beta/start/Xxxxxxservice/xUserStats
ทดสอบhttp://xxxx.beta/@test_Xxxxxxservice.php?func=xUserstats&act=xgetRecentVisitors

ระวังตัวใหญ่คัวเล็ก

วงเล็บเปิดปิด if ใน php
และ

Complex type ต้่องตรงกันเด๊ะๆ จึงจะออกมา ระวัง Array ซ้อน Array พลาดมา 2 ทีแล้ว
ดันให้ query สร้าง complex type แล้วลืมห่อ s อีกรอบอ่ะ

ใช้ print_r ออกมาดูก่อนก็ได้

No comments: