Apache Qpid : PutResourcePropertyDocument
This page last changed on Feb 19, 2009 by agazzarini.
PutResourcePropertyDocumentDescriptionThis interface allows to completely / partially replace the resource property document of a WS-Resource. So briefly, it allows requestor to change resource Note for response message (extract from WS-ResourceProperties specification) : "If, after processing the PutResourcePropertyDocument request, the XML Infoset of the WS-Resource's resource properties document is identical to the XML Infoset of the contents of the PutResourcePropertyDocument request itself, then the contents of the PutResourcePropertyDocumentResponse MUST be empty. Briefly, that means that if the request message contains the whole state of the target resource, and that whole state is successfully applied, then the response message will be empty. Request01. <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"> 02. <soap:Header> 03. <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing"> 04. http://localhost:8080/qman/services/QManWsResource 05. </wsa:To> 06. <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing"> 07. http://docs.oasis-open.org/wsrf/rpw-2/PutResourcePropertyDocument/PutResourcePropertyDocumentRequest 08. </wsa:Action> 09. <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing"> 10. uuid:0cdb5112-09e0-ac39-06ba-393843f06e42 11. </wsa:MessageID> 12. <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing"> 13. <wsa:Address> 14. http://www.w3.org/2005/08/addressing/role/anonymous 15. </wsa:Address> 16. </wsa:From> 17. <qman:ResourceId xmlns:wsa="http://www.w3.org/2005/08/addressing" wsa:IsReferenceParameter="true" xmlns:qman="http://amqp.apache.org/qpid/management/qman"> 18. 781f4ad7-4c96-4caa-b69d-291461cdb1fc 19. </qman:ResourceId> </soap:Header> <soap:Body xmlns:qman="http://amqp.apache.org/qpid/management/qman"> 21. <wsrf-rp:PutResourcePropertyDocument xmlns:wsrf-rp="http://docs.oasis-open.org/wsrf/rp-2"> 22. <qman:QManWsResourceProperties> 23. <qman:MgmtPubInterval> 24. 4321 25. </qman:MgmtPubInterval> 26. </qman:QManWsResourceProperties> 27. <qman:Name> 28. New Name 29. </qman:Name> 30. </wsrf-rp:PutResourcePropertyDocument> </soap:Body> </soap:Envelope>
Response<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"> <soap:Header> 01. <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing"> 02. http://www.w3.org/2005/08/addressing/role/anonymous 03. </wsa:To> 04. <wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing"> 05. http://docs.oasis-open.org/wsrf/rpw-2/SetResourceProperties/SetResourcePropertiesResponse 06. </wsa:Action> 07. <wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing"> 08. uuid:980617c8-e3a0-ebf1-8f5a-2b43d3d6d416 09. </wsa:MessageID> 10. <wsa:RelatesTo RelationshipType="wsa:Reply" xmlns:wsa="http://www.w3.org/2005/08/addressing"> 11. uuid:0cdb5112-09e0-ac39-06ba-393843f06e42 12. </wsa:RelatesTo> 13. <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing"> 14. <wsa:Address> 15. http://localhost:8080/qman/services/QManWsResource 16. </wsa:Address> 17. <wsa:ReferenceParameters> <qman:ResourceId xmlns:wsa="http://www.w3.org/2005/08/addressing" wsa:IsReferenceParameter="true" xmlns:qman="http://amqp.apache.org/qpid/management/qman"> 18. 781f4ad7-4c96-4caa-b69d-291461cdb1fc 19. </qman:ResourceId> 20. </wsa:ReferenceParameters> </wsa:From> </soap:Header> <soap:Body xmlns:qman="http://amqp.apache.org/qpid/management/qman"> 21. <wsrf-rp:PutResourcePropertyDocumentResponse xmlns:wsrf-rp="http://docs.oasis-open.org/wsrf/rp-2"> 22. <qman:MgmtPubInterval>4321</qman:MgmtPubInterval> <wsrf-rp:QueryExpressionDialect xmlns:wsrf-rp="http://docs.oasis-open.org/wsrf/rp-2"> http://www.w3.org/TR/1999/REC-xpath-19991116 </wsrf-rp:QueryExpressionDialect> 23. <qman:Name>New Name</qman:Name> <qman:MsgTotalEnqueues>9223372036854775797</qman:MsgTotalEnqueues> <qman:Arguments xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <qman:entry> <qman:key>Key3</qman:key> <qman:value xsi:type="xsd:integer">2147483647</qman:value> </qman:entry> <qman:entry> <qman:key>Key4</qman:key> <qman:value xsi:type="xsd:float">3.4028235E38</qman:value> </qman:entry> <qman:entry> <qman:key>Key1</qman:key> <qman:value xsi:type="xsd:string">aStringValue</qman:value> </qman:entry> <qman:entry> <qman:key>Key2</qman:key> <qman:value xsi:type="xsd:long">-9223372036854775808</qman:value> </qman:entry> </qman:Arguments> <qman:VhostRef>57ae7a6d-6f33-48dc-9548-82078591fb9c</qman:VhostRef> <qman:Durable>true</qman:Durable> 24. <qman:ConsumerCount>-2147483638</qman:ConsumerCount> </wsrf-rp:PutResourcePropertyDocumentResponse> </soapBody> </soap:Envelope>
Faults
Quick links |
![]() |
Document generated by Confluence on May 26, 2010 10:33 |