@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:

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