13. 응답
HTTP/1.1 200 OK
Content-Length: 100
Content-Type: application/
xml;charset=utf-8
!
<발표자>
<아이디>kangwoo</아이디>
</발표자>
Plain Old XML over HTTP
HTTP Client HTTP Server
Object
Dispatcher
Dispatcher
Object
Server ApplicationClient Application
26. Remote Procedure Call
주문 서비스
주문 하다()
주문을 확인하다()
주문을 변경하다()
주문을 취소하다()
주문 아이템 추가하다()
POST /주문/주문하다
GET /주문/주문확인하다?아이디={주문아이디}
POST /주문/주문변경하다
POST /주문/주문취소하다.
POST /주문/{주문아이디}?action=주문취소
32. POST 를 이용한 자원 생성
POST /주문
<주문>
…
</주문>
201 Created
Location http://콩다방/주문/1234
http://콩다방/주문
http://콩다방/주문/1234
고객 콩다방
500 Internal Server Error
400 Bad Request
ERRORCREATE
33. PUT 을 이용한 자원 수정
PUT /주문/1234
<주문>
…
</주문>
200 OK
OR
204 No Content
http://콩다방/주문/1234
고객 콩다방
500 Internal Server Error
409 Conflict
ERRORUPDATE
404 Not Found
35. DELETE 를 이용한 자원 삭제
DELETE /주문/1234
200 OK
OR
204 No Content
http://콩다방/주문/1234
고객 콩다방
500 Internal Server Error
405 Method Not Allowed
ERRORDELETE
404 Not Found