Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3
Note
titleArchive Content

Please note this page is present for reference only. QMan has been removed and is no longer a released component.

Metadata Exchange (WS-MetadataExchange)

...

Code Block
xml
xml
01.	<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://schemas.xmlsoap.org/ws/2004/09/mex/GetMetadata
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-wsa:ResourceId
				xmlns:wsa="http://www.w3.org/2005/08/addressing"
				xmlns:qman-wsa="http://amqp.apache.org/qpid/management/qman/addressing"
				wsa:IsReferenceParameter="true">
18.				a3759467-bede-476d-8dde-169f1a652191
19.	   		</qman-wsa:ResourceId>
		</soap:Header>
20.		<soap:Body>
21.    		<wsx:GetMetadata xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex">
22.				<wsx:Dialect>
23.					http://schemas.xmlsoap.org/wsdl/
24.				</wsx:Dialect>
    		</wsx:GetMetadata>
		</soap:Body>
	</soap:Envelope>

...

Line(s)

Description

24

Top level element for resource metadata descriptor. The most important things are its attributes. There you can see port type (interface), descriptor name (name) and wsdl location

25 - 29

Property metadata descriptor. This contains metadata information about a specific property. As you can see a property has several attributes :

  • mutability : The property has a constant (constant) value or it could change (mutable);
  • modifiability : Property access mode. Can be "read-only" or "read-write";
  • name : the name of the property. 

30 - 31

ValidValues are used to restrict the set of valid values that a property can assume

32 - 33

StaticValues are used to define a minimum set of values that a property can assume

34 - 35

InitialValues are used to declatively define the set of values that a property will contain when the owner resource is initialized at first time

...

Faults

The only exception that could be thrown in a metadata exchange scenario is when the requestor indicates an unknown dialect.

...