CodeXSWebservice - Version 0.57ß
CodeXSWebService is an ASP.NET webservice that generates .NET language source-code directly from W3C schemas.
This webservice is used by the CodeXS Online Tool
which provides a user-friendly and simplified means to generate code directly from schema content in uploaded .xsd files, from url's or direct text input.
Operations
The following operations are supported. For a formal definition, please review the Service Description.
-
FormalName
DescriptionReturns the formal name of the webservice as a string. This information includes version, date and copyright information.
Returns
Returns the formal name of the webservice as a string. -
GenerateCode
DescriptionReturns the generated code as an array of strings. Each string contains the code for a separate code file. The format of each string is as follows:
'{Filename}\n{Code Text}'
where:
Filename is the name of the file for the attached code text,
\n is the newline character, and
Code Text is the actual code.Note that in the event that the webservice encounters an error, a string array with one string element is returned, and the zero'th element string will begin with the word 'Error'.
ParametersNetVersion A valid .NET runtime version flag. See TargetNetVersion. SchemaSourceURI The URL for the schema to be used as input. The URL should be reachable by the webservice. CodeNamespaceName A valid .NET language code namespace name. TargetLanguage A valid .NET target language flag. See TargetLanguages. ModifyCodeOptions A valid code modifier mode flag. See ModifyCode. Returns
Returns the generated code as an array of strings. -
ModifyCode
DescriptionReturns a string array of the valid code modifier modes for output code generation in the following form:
'{Code modifier parameter}:{Description}'.
Returns
Return values
Returns an array of values representing the valid code modifier modes supported. These values are shown below:CXSC Use CodeXS modifiers (returned as 'CXSC:Generate code using CodeXS code modifiers') NONE None (returned as 'NONE:Generate XSD.EXE raw mode code')
-
TargetLanguages
DescriptionReturns a string array of the valid .NET target languages for output code generation in the following form:
'{Target .NET language parameter}:{Name of .NET language}'.
Returns
Return values
Returns an array of values representing the valid .NET target languages supported. These values are shown below:CS Microsoft.NET C# (returned as 'CS:Microsoft.NET C#') VB Microsoft.NET Visual Basic (returned as 'VB:Microsoft.NET Visual Basic')
-
TargetNetVersion
DescriptionReturns a string array of the valid .NET runtime versions for output code generation in the following form:
'{Target .NET platform parameter}:{Name of .NET Version}'.
Returns
Return values
Returns an array of representing the valid .NET runtime versions supported. These values are shown below:20 .NET v2.0 (returned as '20:.NET v2.0') 11 .NET v1.1 (returned as '11:.NET v1.1')
- Download a simplified sample client application that uses this webservice.
- The CodeXS Online Tool is an interactive online tool that uses this webservice.
- Read an online article describing how the CodeXS tool works.
Copyright © 2006 Businessware Architects cc. All rights reserved.