2.3 Resource
Each resource to be advertised by a Publication Services device host as a service consists of two fields:
Type
Actual data
The resource type is used as the Types (wsdp:Relationship/wsdp:Hosted/wsdp:Types) implemented by a Host Service (see [WS-Discovery]).
The Publication Services Data Structure defines a new element to enclose the actual data associated with the resource as follows.
-
<xs:element name="Resource" type="xs:string" minOccurs="0" />
-
Element
Description
wsdp:Relationship/wsdp:Hosted/pub:Resource
Resource data
wsdp:Relationship/wsdp:Hosted/pub:Resource1
Resource data continued
...
...
wsdp:Relationship/wsdp:Hosted/pub:ResourceN
Resource data continued
If the data is more than 8192 octets ([MS-DTYP] section 2.1.5), it can be split into multiple Resource elements. Clients that want to retrieve the full resource data must combine the data in the order implied by the element names.
Note The pub:Resource* elements replace the <any> element wildcard of the HostServiceType complex type, which is instantiated through the <Hosted> element of the DPWS schema.