ivelin 2002/07/28 20:03:28 Modified: src/webapp/samples/xmlform/webservice usagefeedback.wsdl Log: minor update Revision Changes Path 1.2 +16 -2 xml-cocoon2/src/webapp/samples/xmlform/webservice/usagefeedback.wsdl Index: usagefeedback.wsdl =================================================================== RCS file: /home/cvs/xml-cocoon2/src/webapp/samples/xmlform/webservice/usagefeedback.wsdl,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- usagefeedback.wsdl 28 Jul 2002 14:08:26 -0000 1.1 +++ usagefeedback.wsdl 29 Jul 2002 03:03:28 -0000 1.2 @@ -3,16 +3,18 @@ WSDL Descriptor for the Cocoon Usage Feedback demo application exposed as a Web Service (REST style). --> - <definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:s0="http://www.cocoonhive.org/cocoonbook/2002/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" targetNamespace="http://www.cocoonhive.org/cocoonbook/2002/" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:schemaLocation="http://schemas.xmlsoap.org/wsdl/ http://schemas.xmlsoap.org/wsdl/"> + <!-- The root WSDL element references a set of related standards which you may not be familiar with. Do not worry, this most probably means that you do not need them yet. --> + <!-- First we will describe the input parameters --> <message name="UsageFeedbackHttpGetIn"> + <!-- Usually request parameters are of type xsd:string. However, a more restricting type can be used if the WSDL file is accompanied by @@ -24,14 +26,25 @@ <part name="lastName" type="xsd:string"/> <part name="email" type="xsd:string"/> <part name="age" type="xsd:nonNegativeInteger"/> + <!-- The "hobby" element is interesting in that it has one parameter name with multiple values. - It is well described with the XForms selectMany element, but I am not aware of a way to express this with WSDL means. Therefore, alternative avenues, like this remark, need to be used to annotate the parameter type. + It is well described with the XForms selectMany element, but it cannot be expressed with the current WSDL syntax. + Therefore, alternative avenues, like this inline remark, need to be used to annotate that the parameter type is a list of strings. --> <part name="hobby" type="xsd:string"/> + + + <!-- + Another feature not supported by WSDL directly is specifying optional input parameters for + HTTP GET binding. + For example, the "favorite" parameters are not required by the UsageFeedback application. + Again, this inline remark will communicate to the client this information. + --> <part name="favorite[1]" type="xsd:string"/> <part name="favorite[2]" type="xsd:string"/> <part name="favorite[3]" type="xsd:string"/> + <part name="hidden" type="xsd:boolean"/> <part name="number" type="xsd:string"/> <part name="liveUrl" type="xsd:string"/> @@ -68,6 +81,7 @@ <output message="s0:HelloWorldHttpGetOut"/> </operation> </portType> + <!-- This WSDL file describes only one REST resource - WSUsageFeedback accesible via HttpGet.
---------------------------------------------------------------------- In case of troubles, e-mail: [EMAIL PROTECTED] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]