The Document type is the root of the interfaces that correspond to physical artifacts stored in WSRR such as WSDL documents and XML schema documents.
The Document interface defines a content attribute that is a byte array that contains the content of the document.
The Document interface has the following properties:
| Property | Description |
|---|---|
| content | The content of the document as a byte array. |
| location | The location is typically the file name of the artifact stored. |
| namespace | Inherited from BaseObject. For WSDL and XSD documents, if there is a targetNamespace attribute on the schema defined in the document content then you must set the namespace to be the value of this attribute; any attempt to set the namespace to a different value will fail. If there is no targetNamespace attribute on the schema defined in the document content then you can set the namespace to any value. For WSDL documents, XSD documents, and policy documents, the namespace attribute cannot be changed on an update of the document. For documents other than XSD documents, WSDL documents, and policy documents, the namespace can be set to any value, both on create and on update. |
| contentSize | When a document is persisted, this property is set to the size in bytes of the content of that document. This property is read-only. |