- handling optional arguments
authorAleš Křenek <ljocha@ics.muni.cz>
Tue, 21 Apr 2009 11:54:43 +0000 (11:54 +0000)
committerAleš Křenek <ljocha@ics.muni.cz>
Tue, 21 Apr 2009 11:54:43 +0000 (11:54 +0000)
- added NotifNew

org.glite.lb.ws-interface/src/LB.xml
org.glite.lb.ws-interface/src/puke-wsdl.xsl

index a59cb7f..377f7e3 100644 (file)
                        <fault name="genericFault" type="genericFault"> Any error. </fault>
                </op>
 
+               <op name="NotifNew">
+                       <input name="notifId" type="xsd:string"/>
+                       <input name="conditions" type="queryConditions" list="yes"/>
+                       <input name="flags" type="jobFlags" optional="yes"/>
+                       <input name="addressOverride" type="xsd:string" optional="yes"/>
+                       <input name="valid" type="xsd:dateTime" optional="yes"/>
+                       <output name="valid" type="xsd:dateTime"/>
+                       <fault name="genericFault" type="genericFault"/>
+               </op>
+
+
                <!-- TODO: event queries -->
 
        </operations>
index edaf944..a36aa49 100644 (file)
                                                        <xsl:otherwise>1</xsl:otherwise>
                                                </xsl:choose>
                                        </xsl:variable>
-                                       <xsd:element name="{@name}" type="{$prefix}{@type}" minOccurs="1" maxOccurs="{$max}"/>
+                                       <xsl:variable name="min">
+                                               <xsl:choose>
+                                                       <xsl:when test="@optional='yes'">0</xsl:when>
+                                                       <xsl:otherwise>1</xsl:otherwise>
+                                               </xsl:choose>
+                                       </xsl:variable>
+                                       <xsd:element name="{@name}" type="{$prefix}{@type}" minOccurs="{$min}" maxOccurs="{$max}"/>
                                </xsl:for-each>
                        </xsd:sequence>
                </xsd:complexType>