[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('http://www.example.com', 'MsgToMorse'))]
[$msg->msg = 'Howdy']
See the Lasso 8 Language Guide for examples of how to use this tag.
Tag Link | [XSD_GenerateType] | Category | Custom Tag |
---|---|---|---|
Type | Substitution | Data Source | Any |
Support | Preferred | Version | 8.0 |
Output Type | None | Security | None |
Implementation | LCAPI | Sets | Lasso 8.5, Lasso 8.0 |
Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.
©LassoSoft Inc 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft