SetResourcePropertyExample
-------------------------------------------------------------------
This example shows how to change the state of a WS-Resource.
That means a SetResourcePropertyRequest is sent to that
WS-Resource.
First of all a request is send to WS-DM in order to get all
registered WS-Resources.
If the returned list is not empty then two GetMetadataRequests
(one for WSDL and one for RDM) are sent to the first child.
The result metadata descriptors are used for determine :
1) WS-Resource property names;
2) Modifiability (read-only, read-write
3) Datatype;
-------------------------------------------------------------------
So a SetResourcePropertyRequest can be sent in order
to change the WS-Resource state.
The example is looking for a property that has one of the
following datatype :
1) String (xsd:string)
2) Long (xsd:long)
3) Integer (xsd:integer or xsd:int)
4) Double (xsd:double)
5) Float (xsd:float)
6) Short (xsd:short)
After the update / insert request has been sent, a
GetResourcePropertiesRequest is made again
in order to see if the state has changed correctly.
Type enter to proceed...
[CLIENT TRACE] SOAP envelope contents (outgoing):
http://localhost:8080/qman/services/QManWsResource
http://schemas.xmlsoap.org/ws/2004/09/mex/GetMetadata
uuid:d026718c-2724-d3bf-fd5b-3c6bf4cd5a8c
http://www.w3.org/2005/08/addressing/role/anonymous
Q-MAN: brokerID=0ef67394-e34a-4bff-b0bf-88cf359ba1a0,class=queue,name=1232966356552,objectId=894cddd3-b893-4e2f-94d2-2489f72cbdd6,package=org.apache.qpid
http://docs.oasis-open.org/wsrf/rmd-1
[CLIENT TRACE] SOAP envelope contents (incoming):
http://www.w3.org/2005/08/addressing/role/anonymous
http://schemas.xmlsoap.org/ws/2004/09/mex/GetMetadataResponse
uuid:dba8d7ab-83a6-16e1-03cc-48edc672a325
uuid:d026718c-2724-d3bf-fd5b-3c6bf4cd5a8c
http://localhost:8080/qman/services/QManWsResource
Q-MAN: brokerID=0ef67394-e34a-4bff-b0bf-88cf359ba1a0,class=queue,name=1232966356552,objectId=894cddd3-b893-4e2f-94d2-2489f72cbdd6,package=org.apache.qpid
[CLIENT TRACE] SOAP envelope contents (outgoing):
http://localhost:8080/qman/services/QManWsResource
http://schemas.xmlsoap.org/ws/2004/09/mex/GetMetadata
uuid:11581af1-04af-05cd-7215-103cad6a316c
http://www.w3.org/2005/08/addressing/role/anonymous
Q-MAN: brokerID=0ef67394-e34a-4bff-b0bf-88cf359ba1a0,class=queue,name=1232966356552,objectId=894cddd3-b893-4e2f-94d2-2489f72cbdd6,package=org.apache.qpid
http://schemas.xmlsoap.org/wsdl/
[CLIENT TRACE] SOAP envelope contents (incoming):
http://www.w3.org/2005/08/addressing/role/anonymous
http://schemas.xmlsoap.org/ws/2004/09/mex/GetMetadataResponse
uuid:785964d4-9a81-784f-d68a-60de63223094
uuid:11581af1-04af-05cd-7215-103cad6a316c
http://localhost:8080/qman/services/QManWsResource
Q-MAN: brokerID=0ef67394-e34a-4bff-b0bf-88cf359ba1a0,class=queue,name=1232966356552,objectId=894cddd3-b893-4e2f-94d2-2489f72cbdd6,package=org.apache.qpid
To form a QName, the name of any MetadataDescriptor must be
unique within a Definitions element.
Get access to the xml: attribute groups for xml:lang as declared on 'schema'
and 'documentation' below
[CLIENT TRACE] SOAP envelope contents (outgoing):
http://localhost:8080/qman/services/QManWsResource
http://docs.oasis-open.org/wsrf/rpw-2/GetResourceProperty/GetResourcePropertyRequest
uuid:103f564f-7008-8456-042f-095a092444f9
http://www.w3.org/2005/08/addressing/role/anonymous
Q-MAN: brokerID=0ef67394-e34a-4bff-b0bf-88cf359ba1a0,class=queue,name=1232966356552,objectId=894cddd3-b893-4e2f-94d2-2489f72cbdd6,package=org.apache.qpid
qman:MgmtPubInterval
[CLIENT TRACE] SOAP envelope contents (incoming):
http://www.w3.org/2005/08/addressing/role/anonymous
http://docs.oasis-open.org/wsrf/rpw-2/GetResourceProperty/GetResourcePropertyResponse
uuid:b78625a8-af2f-b542-8001-d7e81d3de1c9
uuid:103f564f-7008-8456-042f-095a092444f9
http://localhost:8080/qman/services/QManWsResource
Q-MAN: brokerID=0ef67394-e34a-4bff-b0bf-88cf359ba1a0,class=queue,name=1232966356552,objectId=894cddd3-b893-4e2f-94d2-2489f72cbdd6,package=org.apache.qpid
32767
[CLIENT TRACE] SOAP envelope contents (outgoing):
http://localhost:8080/qman/services/QManWsResource
http://docs.oasis-open.org/wsrf/rpw-2/SetResourceProperties/SetResourcePropertiesRequest
uuid:0b80a9ca-9e02-1d6b-c0e0-8ceb8560ee6e
http://www.w3.org/2005/08/addressing/role/anonymous
Q-MAN: brokerID=0ef67394-e34a-4bff-b0bf-88cf359ba1a0,class=queue,name=1232966356552,objectId=894cddd3-b893-4e2f-94d2-2489f72cbdd6,package=org.apache.qpid
12
[CLIENT TRACE] SOAP envelope contents (incoming):
http://www.w3.org/2005/08/addressing/role/anonymous
http://docs.oasis-open.org/wsrf/rpw-2/SetResourceProperties/SetResourcePropertiesResponse
uuid:ae67ff51-e1c1-f2c3-5243-d54905f3907b
uuid:0b80a9ca-9e02-1d6b-c0e0-8ceb8560ee6e
http://localhost:8080/qman/services/QManWsResource
Q-MAN: brokerID=0ef67394-e34a-4bff-b0bf-88cf359ba1a0,class=queue,name=1232966356552,objectId=894cddd3-b893-4e2f-94d2-2489f72cbdd6,package=org.apache.qpid
[CLIENT TRACE] SOAP envelope contents (outgoing):
http://localhost:8080/qman/services/QManWsResource
http://docs.oasis-open.org/wsrf/rpw-2/GetResourceProperty/GetResourcePropertyRequest
uuid:0dca61e4-072f-3091-0f38-9a967f14666a
http://www.w3.org/2005/08/addressing/role/anonymous
Q-MAN: brokerID=0ef67394-e34a-4bff-b0bf-88cf359ba1a0,class=queue,name=1232966356552,objectId=894cddd3-b893-4e2f-94d2-2489f72cbdd6,package=org.apache.qpid
qman:MgmtPubInterval
[CLIENT TRACE] SOAP envelope contents (incoming):
http://www.w3.org/2005/08/addressing/role/anonymous
http://docs.oasis-open.org/wsrf/rpw-2/GetResourceProperty/GetResourcePropertyResponse
uuid:84399474-c5b1-8738-f410-fd86face1599
uuid:0dca61e4-072f-3091-0f38-9a967f14666a
http://localhost:8080/qman/services/QManWsResource
Q-MAN: brokerID=0ef67394-e34a-4bff-b0bf-88cf359ba1a0,class=queue,name=1232966356552,objectId=894cddd3-b893-4e2f-94d2-2489f72cbdd6,package=org.apache.qpid
12
----------------------------------------------------------------------------------
Resource has been correctly updated.
----------------------------------------------------------------------------------
[CLIENT TRACE] SOAP envelope contents (outgoing):
http://localhost:8080/qman/services/QManWsResource
http://docs.oasis-open.org/wsrf/rpw-2/GetResourceProperty/GetResourcePropertyRequest
uuid:8be37e48-b3a5-0e4a-aea3-eda3aad58418
http://www.w3.org/2005/08/addressing/role/anonymous
Q-MAN: brokerID=0ef67394-e34a-4bff-b0bf-88cf359ba1a0,class=queue,name=1232966356552,objectId=894cddd3-b893-4e2f-94d2-2489f72cbdd6,package=org.apache.qpid
qman:Type
[CLIENT TRACE] SOAP envelope contents (incoming):
http://www.w3.org/2005/08/addressing/role/anonymous
http://docs.oasis-open.org/wsrf/rpw-2/GetResourceProperty/GetResourcePropertyResponse
uuid:b92c8851-d071-204f-6506-3706694cf32e
uuid:8be37e48-b3a5-0e4a-aea3-eda3aad58418
http://localhost:8080/qman/services/QManWsResource
Q-MAN: brokerID=0ef67394-e34a-4bff-b0bf-88cf359ba1a0,class=queue,name=1232966356552,objectId=894cddd3-b893-4e2f-94d2-2489f72cbdd6,package=org.apache.qpid
[CLIENT TRACE] SOAP envelope contents (outgoing):
http://localhost:8080/qman/services/QManWsResource
http://docs.oasis-open.org/wsrf/rpw-2/SetResourceProperties/SetResourcePropertiesRequest
uuid:7917abf6-5c85-7e25-4515-b7f60cd32c39
http://www.w3.org/2005/08/addressing/role/anonymous
Q-MAN: brokerID=0ef67394-e34a-4bff-b0bf-88cf359ba1a0,class=queue,name=1232966356552,objectId=894cddd3-b893-4e2f-94d2-2489f72cbdd6,package=org.apache.qpid
This is a string.
[CLIENT TRACE] SOAP envelope contents (incoming):
http://www.w3.org/2005/08/addressing/role/anonymous
http://docs.oasis-open.org/wsrf/rpw-2/SetResourceProperties/SetResourcePropertiesResponse
uuid:0b895a1f-39e5-8739-d9d7-390c5f2eb445
uuid:7917abf6-5c85-7e25-4515-b7f60cd32c39
http://localhost:8080/qman/services/QManWsResource
Q-MAN: brokerID=0ef67394-e34a-4bff-b0bf-88cf359ba1a0,class=queue,name=1232966356552,objectId=894cddd3-b893-4e2f-94d2-2489f72cbdd6,package=org.apache.qpid
[CLIENT TRACE] SOAP envelope contents (outgoing):
http://localhost:8080/qman/services/QManWsResource
http://docs.oasis-open.org/wsrf/rpw-2/GetResourceProperty/GetResourcePropertyRequest
uuid:930f39a4-0114-03bd-9921-105579fb4213
http://www.w3.org/2005/08/addressing/role/anonymous
Q-MAN: brokerID=0ef67394-e34a-4bff-b0bf-88cf359ba1a0,class=queue,name=1232966356552,objectId=894cddd3-b893-4e2f-94d2-2489f72cbdd6,package=org.apache.qpid
qman:Type
[CLIENT TRACE] SOAP envelope contents (incoming):
http://www.w3.org/2005/08/addressing/role/anonymous
http://docs.oasis-open.org/wsrf/rpw-2/GetResourceProperty/GetResourcePropertyResponse
uuid:3d3f04ab-3171-da69-08b5-2e74927ee981
uuid:930f39a4-0114-03bd-9921-105579fb4213
http://localhost:8080/qman/services/QManWsResource
Q-MAN: brokerID=0ef67394-e34a-4bff-b0bf-88cf359ba1a0,class=queue,name=1232966356552,objectId=894cddd3-b893-4e2f-94d2-2489f72cbdd6,package=org.apache.qpid
This is a string.
----------------------------------------------------------------------------------
Resource has been correctly updated.
----------------------------------------------------------------------------------