<!-- IMPORTANT: See testCMD_Example2.xml first -->

<ServiceMap xmlns="http://www.extreme.indiana.edu/namespaces/2004/01/gFac"
            xmlns:lead="http://www.extreme.indiana.edu/lead">

    <service>
        <serviceName targetNamespace="http://www.extreme.indiana.edu/lead">TestCMD_Example3</serviceName>
    </service>

    <portType>

    <method>
        <methodName>Run</methodName>

        <application paramValuesOnly="true">
            <applicationName targetNamespace="http://www.extreme.indiana.edu/lead">TestApp</applicationName>
        </application>

        <inputParameter>
            <parameterName>InputParam3</parameterName>
            <parameterType>Integer</parameterType>
        </inputParameter>

        <outputParameter>
            <parameterName>OutputParam3</parameterName>
            <parameterType>String</parameterType>

            <!-- You can specify a regular expression as shown below. If there is a match
            for this regular expression in the standard out of the application, then the
            value that matches this regular expression will be value of this output parameter
            and will be returned to the user.

            So if the standard out of the application contains something like outfile1a.txt or
            outfile1b.txt or outfile9Z.doc, then that will be returned to the user.
            If the regular expression has more than one match but the data type is not an array,
            then a fault is thrown to the user.
            -->
            <regExp>outfile\d[a-zA-Z].*</regExp>
        </outputParameter>
    </method>

    </portType>

</ServiceMap>
