WSRF(Web Services Resource Framework) 자원 특성 및 라이프사이클 조작

WSRF(Web Services Resource Framework)에는 WS-Resource(Web Services Resource)가 자원 특성 문서에서 작동시켜서 자원의 상태를 조회, 설정 또는 가져오기 위해 구현할 수 있는 조작을 설명하는 스펙이 포함되어 있습니다.

WSRF(Web Services Resource Framework)에서 정의한 모든 표준 특성 및 지속 시간 조작에 대한 자세한 설명은 WS-ResourceProperties 및 WS-ResourceLifetime 스펙을 참조하십시오. 웹 서비스 자원(WS-Resource)에서 지원할 수 있는 기본 WSRF 조작을 다음 표에서 설명합니다.

표 1. WS-Resources에서 지원하는 기본 WSRF 조작. 표에는 기본 WSRF 조작이 나열되어 있고 해당 메시지 및 응답 형식을 포함한 각 조작에 대한 설명이 제공되어 있습니다.
조작 설명
GetResourcePropertyDocument WS-Resource의 전체 자원 특성 문서를 리턴합니다.
메시지 형식
<wsrf-rp:GetResourcePropertyDocument/>
응답 형식
<wsrf-rp:GetResourcePropertyDocumentResponse>
  {any}
</wsrf-rp:GetResourcePropertyDocumentResponse>
여기서 {any}는 자원 특성 문서의 컨텐츠입니다.
PutResourcePropertyDocument WS-Resource의 전체 자원 특성 문서를 지정된 문서로 바꿉니다.
메시지 형식
<wsrf-rp:PutResourcePropertyDocument>
  {any}
</wsrf-rp:PutResourcePropertyDocument>
여기서 {any}는 새로운 자원 특성 문서의 컨텐츠입니다.
응답 형식
<wsrf-rp:PutResourcePropertyDocumentResponse>
  {any} ?
</wsrf-rp:PutResourcePropertyDocumentResponse>
여기서 {any}는 새로운 자원 특성 문서의 컨텐츠입니다. 컨텐츠가 요청한 컨텐츠와 동일한 경우 {any} 요소가 존재하지 않아야 합니다.
GetResourceProperty WS-Resource의 자원 특성 문서 내에 있는 지정된 자원 특성의 값을 리턴합니다.
메시지 형식
<wsrf-rp:GetResourceProperty>
  QName
</wsrf-rp:GetResourceProperty>
응답 형식
<wsrf-rp:GetResourcePropertyResponse>
  {any}*
</wsrf-rp:GetResourcePropertyResponse>
여기서 {any}*는 요청에 지정된 QName과 일치하는 요소의 순서입니다.
GetMultipleResourceProperties WS-Resource의 자원 특성 문서 내에 있는 지정된 자원 특성의 값을 리턴합니다.
메시지 형식
<wsrf-rp:GetMultipleResourceProperties>
  <wsrf-rp:ResourceProperty>QName<wsrf-rp:ResourceProperty>+
</wsrf-rp:GetMultipleResourceProperties>
응답 형식
<wsrf-rp:GetMultipleResourcePropertiesResponse>
  {any}*
</wsrf-rp:GetMultipleResourcePropertiesResponse>
여기서 {any}*는 요청에 지정된 QNames와 일치하는 요소의 순서입니다.
InsertResourceProperties WS-Resource의 자원 특성 문서에 지정된 자원 특성 요소를 삽입합니다.
메시지 형식
<wsrf-rp:InsertResourceProperties>
  <wsrf-rp:Insert>
    {any}*
  </wsrf-rp:Insert> 
</wsrf-rp:InsertResourceProperties>
여기서 {any}*는 동일한 QName을 가진 요소의 순서입니다.
응답 형식
<wsrf-rp:InsertResourcePropertiesResponse/>
UpdateResourceProperties WS-Resource의 자원 특성 문서에 지정된 자원 특성 요소를 업데이트합니다.
메시지 형식
<wsrf-rp:UpateResourceProperties>
  <wsrf-rp:Upate>
    {any}*
  </wsrf-rp:Upate> 
</wsrf-rp:UpateResourceProperties>
여기서 {any}*는 동일한 QName을 가진 요소의 순서입니다.
응답 형식
<wsrf-rp:UpateResourcePropertiesResponse/>
DeleteResourceProperties WS-Resource의 자원 특성 문서에서 지정된 자원 특성 요소를 삭제합니다.
메시지 형식
<wsrf-rp:DeleteResourceProperties>
  <wsrf-rp:Delete ResourceProperty="QName"/>
</wsrf-rp:DeleteResourceProperties>
여기서 QName은 삭제할 자원 특성의 QName입니다.
응답 형식
<wsrf-rp:DeleteResourcePropertiesResponse/>
QueryResourceProperties 조회 표현식(XPath)을 사용하여 자원 특성 문서를 조회합니다.
메시지 형식
<wsrf-rp:QueryResourceProperties>
  <wsrf-rp:QueryExpression 
           Dialect="http://www.w3.org/TR/1999/REC-xpath-19991116">
    xsd:any
  </wsrf-rp:QueryExpression>
</wsrf-rp:QueryResourceProperties>
여기서 xsd:any는 자원 특성 문서에 적용할 XPath 조회 표현식입니다.
응답 형식
<wsrf-rp:QueryResourcePropertiesResponse>
  {any}
</wsrf-rp:QueryResourcePropertiesResponse>
여기서 {any}는 조회 표현식을 자원 특성 문서에 대해 평가한 결과입니다.
Destroy WS-Resource를 삭제합니다.
메시지 형식
<wsrf-rl:Destroy/>
응답 형식
<wsrf-rl:DestroyResponse/>
이 응답은 WS-Resource가 성공적으로 삭제되었음을 나타냅니다.
SetTerminationTime 스케줄된 종료를 지원하는 WS-Resources에서 이 조작을 구현하여 요청자가 WS-Resource의 삭제 시점을 변경할 수 있게 해줍니다.
메시지 형식
<wsrf-rl:SetTerminationTime>
  [<wsrf-rl:RequestedTerminationTime>
    xsd:dateTime 
  </wsrf-rl:RequestedTerminationTime>] 
    | 
  [<wsrf-rl:RequestedLifetimeDuration> 
    xsd:duration
  </wsrf-rl:RequestedLifetimeDuration>]
</wsrf-rl:SetTerminationTime>
여기서 종료 시간은 절대 시간 또는 상대 시간입니다.
응답 형식
<wsrf-rl:SetTerminationTimeResponse>
  <wsrf-rl:NewTerminationTime>
    xsd:dateTime 
  </wsrf-rl:NewTerminationTime>
  <wsrf-rl:CurrentTime>
    xsd:dateTime 
  </wsrf-rl:CurrentTime>
<wsrf-rl:SetTerminationTimeResponse>
이 응답에는 WS-Resource 관점에서 WS-Resource가 삭제되는 시간이 포함되어 있습니다. 응답에는 현재 시간의 WS-Resource 값도 포함되어 있습니다.

WS-Resource가 스케줄된 삭제를 구현할 수 있는 다양한 방법이 있습니다. 예를 들어, 엔터프라이즈 Bean으로 구현된 WS-Resource에서 javax.ejb.TimedObject 인터페이스의 ejbTimeout 콜백 메소드를 구현하고 스케줄된 삭제 시간에 만기되는 Timer 오브젝트를 작성하여 엔터프라이즈 Bean 컨테이너 타이머 서비스를 사용할 수 있고 이 콜백 메소드를 구동합니다. EJB 타이머 서비스 Timer 오브젝트는 서비스가 다시 시작된 후에도 보관되므로 유한한 라이프사이클을 갖고 있고 시간 기반 제거 메커니즘이 필요한 WS-Resources의 라이프사이클을 관리할 수 있는 간단한 방법입니다.


주제 유형을 표시하는 아이콘 개념 주제



시간소인 아이콘 마지막 업데이트 날짜: last_date
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-nd-mp&topic=cwbs_wsrf_ops
파일 이름:cwbs_wsrf_ops.html