<!DOCTYPE html>
<%--
   Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
--%>

<%
 String address = request.getRequestURL().toString();
 if (address.endsWith(".jsp")) {
    address = address.substring(0, address.lastIndexOf("/"));
 }
 if (!address.endsWith("/")) {
    address += "/";
 }
 address += "ws-saml";
%>
<html>
    <head>
        <title>Test web services call using WSS-SAML</title>
    </head>
    <body>
        <form name="test" method="post" action="testSamlWs">
            <table>
                <tr>
                    <th>WSDL</th>
                    <td>
                        <input name="wsdl" type="text" size="120" value="<%=address%>?wsdl"/>
                    </td>
                </tr>
                 
                <tr>
                    <th>Address</th>
                    <td>
                        <input name="address" type="text" size="110" value="<%=address%>"/>
                    </td>
                </tr>
                 
                <tr>
                    <th>Policy</th>
                    <td> 
                        <select name="policy">
                            <option value="oracle/wss11_saml_token_with_message_protection_client_policy">oracle/wss11_saml_token_with_message_protection_client_policy</option>
                            <option value="oracle/wss_saml_token_bearer_over_ssl_client_policy">oracle/wss_saml_token_bearer_over_ssl_client_policy</option>
                        </select>
                    </td>
                </tr>
                 
                <tr>
                    <th>Issuer Name</th>
                    <td>
                        <input name="issuername" type="text" size="20" value="www.oracle.com"/>
                    </td>
                </tr>
                
                <tr>
                    <th>Name</th>
                    <td>
                        <input name="name" type="text" size="20" value="Name"/>
                    </td>
                </tr>
                 
                <tr>
                    <th>===&gt;Test</th>
                    <td>
                        <input name="submit" type="submit" size="20" value="Click to test"/>
                    </td>
                </tr>
            </table>
        </form>
    </body>
</html>
