LassoScript Utility
Basics Browse Detail


Tag Link [XSD_GenerateType] Category Custom Tag
Type Substitution Source Available No
Support Preferred Version 8.0
Change Unchanged Data Source Any
Output Type None Security None
Implementation LCAPI Sets Lasso 8.5, Lasso 8.0


[XSD_GenerateType] can be used to generate a template type when a SOAP procedure requires it. Many SOAP procedures will work with the default data types that Lasso generates, but some require that data be specified in a very particular format.

The [XSD_GenerateType] tag requires two parameters. The first is a reference to the namespace in which the parameter should be generated. The namespace is found in the WSDL document. The second parameter is the name of the complex data type which is to be generated.

Once the data type has been generated member tags can be used to set the attributes of the data type. These member tags will differ depending on the data type.

Note: The [XSD_GenerateType] tag can only be called after the WSDL of the target type has been loaded by referencing it in a [SOAP_DefineTag] call. First, the SOAP procedure should be defined, then the types required by it should be generated.


[Var('message' = XSD_GenerateType('', 'MsgToMorse'))]
[$msg->msg = 'Howdy']


Required Parameters
-Namespace The name of the XML namespace in which the type definition can be found.
-Type The name of the type for which a prototype should be generated.


See the Lasso 8 Language Guide for examples of how to use this tag.