Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

ada2wsdl(1) [debian man page]

ADA2WSDL(1)							 AWS User's Guide						       ADA2WSDL(1)

NAME
ada2wsdl - Generate a WDSL document from an Ada package specification SYNOPSIS
ada2wsdl [options] ada_spec DESCRIPTION
The Ada Web Server is a library that allows you to embed a web server into your Ada application. It provides not only HTTP but also SOAP, WSDL and several other facilities. Thus you can write full-fledged web applications. WSDL (Web Service Definition Language) is a language based on XML. WSDL documents describe, in a formal way, the interface to Web Ser- vices. This description consists of the end-point (URL to the server offering the service), the SOAPAction (needed to call the remote pro- cedure), the procedure names and a description of the input and output parameters. Using ada2wsdl, you can create a WSDL document that describes Web Services provided by an Ada package. ada2wsdl uses ASIS to parse your Ada package specification, and generates a WSDL document by mapping Ada types to Web Services types, and Ada subprograms to operations. Please see the AWS User's guide for more details on how ada2wsdl works, and how you can use it to develop web services. OPTIONS
-a url Specify the URL for the Web Server address. Web Services will be available at this address. A port can be specified on the URL, http://server[:port]. The default value is http://.../. -f Force creation of the WSDL file. Overwrite exiting file with the same name. -I path Add path option for the ASIS compilation step. This option can appear any number of time on the command line. -noenum Do not generate WSDL representation for Ada enumerations, map them to standard string. -o file Generate the WSDL document into file. -q Quiet mode (no output). -s name Specify the Web Service name for the WSDL document, by default the spec package's name is used. -v Verbose mode, display the parsed spec. BUGS
ada2wsdl does not handle constrained arrays in records. Unbounded_String are supported with full interoperability only inside a record. Only unconstrained arrays are supported. Arrays with multiple dimensions are not supported. SEE ALSO
awsres(1), wsdl2aws(1) The Ada Web Server User's Guide in package libaws-doc. AUTHOR
wsdl2aws was written by Dmitriy Anisimkov <anisimkov@yahoo.com> and Pascal Obry <p.obry@wanadoo.fr> as part of the Ada Web Server. This manual page was written by Ludovic Brenta <ludovic.brenta@insalien.org> for Debian GNU/Linux. GNU Ada Tools 11 JUN 2004 ADA2WSDL(1)

Check Out this Related Man Page

TEMPLATES2ADA(1)					   Templates Parser User's Guide					  TEMPLATES2ADA(1)

NAME
templates2ada - generate Ada sources from a templates file SYNOPSIS
templates2ada [options] DESCRIPTION
templates2ada parses all the template files in a directory and then generates an output file from these, based on a template file (a default example of which is provided as /usr/share/doc/libtemplates-parser-dev/examples/templates.tads). The latter contains in fact two examples, depending on whether one Ada package should be generated per template, or whether a single package should be built. In the for- mer case, if you are using the GNAT compiler, you should run `gnatchop' on the resulting file. Here is an example: $ rm -f src/templates/*.ads $ templates2ada -d resources/ -o src/templates/generated -r $ cd src/templates; gnatchop -w -q generated $ rm -f src/templates/generated One of the goals of templates2ada is to ensure that you are only setting tags that actually exist in the template (and thus prevent, as much as possibly, typos in the name of tags); also, when combined with other tools, to help ensure that all tags needed by the template are properly set. templates2ada also has special knowledge about HTTP constructs and will generate Ada constants for the HTTP parameters you might receive in return. Once more the goal is to help avoid typos in the Ada code. For instance, we will consider a simple template file, found in a local file `resources/block1.thtml'. This template contains the following simple html code: <form> <input name="PARAM1" value="@_TAG1_@" /> <input name="PARAM2" value="@_TAG2_@" /> </form> When you run templates2ada, the following Ada package will be generated. Note that this is only the default output of templates2ada, which can be fully tailored to your needs. package Templates.Block1 is pragma Style_Checks (Off); Template : constant string := "resources/block1.thtml"; Tag1 : constant String := "TAG1"; Tag2 : constant String := "TAG2"; package Http is Param1 : constant String := "PARAM1"; Param2 : constant String := "PARAM2"; end Http; end Templates.Block1; OPTIONS
-d dir Search for template files in dir. -h Display a summary of options. -o file Write the output to file. -e ext Process all files with extension ext that are in the input directory; consider these files as template files. -r Recurse into subdirectories. -t file Use file as the output template file. The templates parser comes with an example for such a file, /usr/share/doc/templates- parser/examples/templates.tads, that you can adapt to your own needs. -v Verbose mode. This will output a warning when an http parameter has a name made only of template parser tags, since no matching entry can then be created for it in the output file. SEE ALSO
templatespp(1) The Template Parsers User's Guide in package libtemplates-parser-dev. AUTHOR
templates2ada was written by Pascal Obry <p.obry@wanadoo.fr> as part of the Ada Web Server. This manual page was written by Ludovic Brenta <lbrenta@debian.org> for Debian GNU/Linux. GNU Ada Tools 2008-05-04 TEMPLATES2ADA(1)
Man Page