@jws:define Tag

Defines inline data that might otherwise be referenced as an external file.

# Syntax

    @jws:define
    	name="nameOfInlineData"
    	value::
    	    data referred to by
    	    the name attribute
    	::

# Attributes

name

Required. The name to use when referring to the data.

value

Required. The data referred to by the name. Can be a string that contains a multiline value delimited by :: (two colons) delimiters.

# Remarks

The following rules apply to this tag's use:

- Optionally may appear in a comment at the end of a CTRL file A CTRL file holds a WebLogic Workshop Java Web Service Invoker. A CTRL file reflects the public contract of a web service, and reflects nothing about the private implementation. For example, if the web service refers to complex implementation classes, the CTRL file will not contain references to the same classes. Instead, it will refer to generated inner classes or other generic types..

The @jws:define tag is used to define inline data that might otherwise be referenced as an external file.

This is used, for example, to include relevant schema or WSDL files in a CTRL or JWS file.

# Example

In the example CTRL file below, the @jws:define tag defines the name WorldpProxyWsdl to refer to the contents of a WSDL file. The entire contents of the WSDL file are included as the value of the @jws:define tag. The @jws:wsdl tag then references the name defined by the @jws:define tag.

    /**
     * @jws:wsdl file="#WorldpProxyWsdl"
     */
    public interface WorldpProxy extends ServiceControl
    {
       ...
    }
    /** @jws:define name="WorldpProxyWsdl" value::
     *  <xml version="1.0" encoding="utf-8"?>
     *  <definitions xmlns:s="http://www.w3.org/2001/XMLSchema">
     *    ...< remainder of contents of WSDL file>...
     *  </definitions>
     *  ::
     */

Related Topics

@jws:wsdl Tag

CTRL Files: Implementing Controls

WSDL Files: Web Service Descriptions

Service Control: Using Another Web Service