@common:schema Annotation

Specifies the schema file whose types are referenced in the component class.

Note: In WebLogic Workshop 7.0, a schema file in a web service was specified with the @jws:schema annotation. This annotation is still supported in JWS files for backward compatibility.

Syntax

@common:schema

file="schemaToImport"

inline="true | false"

Attributes

file

Required. The filename or @common:define annotation referring to the schema to import.

inline

Required. A boolean indicating whether the schema is defined within the file (true) or externally (false). The default is true.

Remarks

The following rules apply to this annotation's use:

The file attribute should refer to a file or a @common:define annotation that contains a schema file.

Any number of schema files can be imported by using multiple @common:schema annotation declarations. When outputting WSDL files, imported schemas are copied and inserted inline into the WSDL.

Related Topics

@jws:parameter-xml Annotation

@jws:return-xml Annotation

@common:define Annotation

@jc:wsdl Annotation