juddi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From svi...@apache.org
Subject cvs commit: ws-juddi/webapp index.html
Date Fri, 11 Mar 2005 09:26:54 GMT
sviens      2005/03/11 01:26:53

  Modified:    webapp   index.html
  Added:       webapp/console get_businessDetail.jsp footer.html
                        header.html save_service.jsp delete_binding.jsp
                        get_publisherAssertions.jsp get_publisherDetail.jsp
                        get_serviceDetail.jsp delete_tModel.jsp
                        get_authToken.jsp get_registeredInfo.jsp
                        find_business.jsp find_service.jsp
                        delete_service.jsp get_bindingDetail.jsp
                        find_binding.jsp delete_publisher.jsp
                        discard_authToken.jsp get_registryInfo.jsp
                        find_publisher.jsp get_assertionStatusReport.jsp
                        snoop.jsp find_relatedBusinesses.jsp
                        delete_publisherAssertions.jsp controller.jsp
                        save_tModel.jsp save_business.jsp
                        get_businessDetailExt.jsp save_publisher.jsp
                        find_tModel.jsp save_binding.jsp
                        delete_business.jsp add_publisherAssertions.jsp
                        set_publisherAssertions.jsp index.jsp
                        get_tModelDetail.jsp
  Log:
  Committing the first iteration of the JSP-based jUDDI Console (Beta).  The console can be used to validate a jUDDI installation was successfull and to perform tests of each of the UDDI v2.0 API calls.
  
  Revision  Changes    Path
  1.1                  ws-juddi/webapp/console/get_businessDetail.jsp
  
  Index: get_businessDetail.jsp
  ===================================================================
  <jsp:include page="header.html" />
  
  <%
     String requestName = "get_businessDetail";
     String requestType = "inquiry";
     String requestKey = requestName+":request";
     String responseKey = requestName+":response";
  %>
  
  <form method="post" action="controller.jsp">
  <textarea class=msgs id=soap_request name=soap_request rows=15 cols=75 wrap=off><%
  String requestMessage = (String)session.getAttribute(requestKey);
  if (requestMessage != null) {
    out.print(requestMessage);
  } else { %>
  <?xml version="1.0" encoding="utf-8"?>
  <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
      <get_businessDetail generic="2.0" xmlns="urn:uddi-org:api_v2">
        <businessKey>*****</businessKey>
      </get_businessDetail>
    </soapenv:Body>
  </soapenv:Envelope>
  <% } %>
  </textarea>
  <p>
  <input type="hidden" name="request_name" value=<%=requestName%>>
  <input type="hidden" name="request_type" value=<%=requestType%>>
  <input type=submit name="submit_button" value="Submit">
  <input type=submit name="reset_button" value="Reset">
  </p>
  <textarea class=msgs id=soap_response name=soap_response rows=20 cols=75 wrap=off><%
  String responseMessage = (String)session.getAttribute(responseKey);
  if (responseMessage != null) {
    out.print(responseMessage);
  } %>
  </textarea>
  </form>
  
  <jsp:include page="footer.html" />
  
  
  1.1                  ws-juddi/webapp/console/footer.html
  
  Index: footer.html
  ===================================================================
  
  </td>
  <td valign="top">
  <div class="link">
  <strong>Inquiry API</strong><br/>
  <a href="find_binding.jsp" title="The find_binding API call returns a bindingDetail message that contains zero or more bindingTemplate structures matching the criteria specified in the argument list.">find_binding</a><br/>
  <a href="find_business.jsp" title="The find_business API call returns a businessList message that matches the conditions specified in the arguments.">find_business</a><br/>
  <a href="find_relatedBusinesses.jsp" title="The find_relatedBusinesses API call returns a relatedBusinessesList message containing results that match the conditions specified in the arguments.">find_relatedBusinesses</a><br/>
  <a href="find_service.jsp" title="The find_service API call returns a serviceList message that matches the conditions specified in the arguments.">find_service</a><br/>
  <a href="find_tModel.jsp" title="This find_tModel API call is for locating a list of tModel entries that match a set of specific criteria. The response will be a list of abbreviated information about registered tModel data that matches the criteria specified.  This result will be returned in a tModelList message.">find_tModel</a><br/>
  <a href="get_bindingDetail.jsp" title="The get_bindingDetail API call is for requesting the run-time bindingTemplate information for the purpose of invoking a registered business API.">get_bindingDetail</a><br/>
  <a href="get_businessDetail.jsp" title="The get_businessDetail API call returns complete businessEntity information for one or more specified businessEntity registrations matching on the businessKey values specified.">get_businessDetail</a><br/> 
  <a href="get_businessDetailExt.jsp" title="The get_businessDetailExt API call returns extended businessEntity information for one or more specified businessEntity registrations.  This message returns exactly the same information as the get_businessDetail message, but may contain additional attributes if the source is an external registry (e.g. not an Operator Site) that is compatible with this API specification.">get_businessDetailExt</a><br/> 
  <a href="get_serviceDetail.jsp" title="The get_serviceDetail API call is used to request full information about a known businessService structure.">get_serviceDetail</a><br/> 
  <a href="get_tModelDetail.jsp" title="The get_tModelDetail API call is used to request full information about /known tModel data by key.">get_tModelDetail</a>
  <p></p>
  <strong>Publish API</strong><br/>
  <a href="add_publisherAssertions.jsp" title="The add_publisherAssertions API call causes one or more publisherAssertions to be added to an individual publisher?s assertion collection.">add_publisherAssertions</a><br/>
  <a href="delete_binding.jsp" title="The delete_binding API call causes one or more instances of bindingTemplate data to be deleted from the UDDI registry.">delete_binding</a><br/> 
  <a href="delete_business.jsp" title="The delete_business API call is used to remove one or more business registrations (e.g. registered businessEntity data) and all direct contents from a UDDI registry.">delete_business</a><br/> 
  <a href="delete_publisherAssertions.jsp" title="The delete_publisherAssertions API call causes one or more publisherAssertion elements to be removed from a publisher?s assertion collection.">delete_publisherAssertions</a><br/> 
  <a href="delete_service.jsp" title="The delete_service API call is used to remove one or more previously businessService elements from the UDDI registry and from its containing businessEntity parent.">delete_service</a><br/> 
  <a href="delete_tModel.jsp" title="The delete_tModel API call is used to logically delete one or more tModel structures. Logical deletion hides the deleted tModels from find_tModel result sets but does not physically delete it. Deleting an already deleted tModel has no effect.">delete_tModel</a><br/> 
  <a href="discard_authToken.jsp" title="The discard_authToken API call is used to inform an Operator Site that the authentication token is to be discarded, effectively ending the session.  Subsequent calls that use the same authToken will be rejected.  This message is optional for Operator Sites that do not manage session state or that do not support the get_authToken message.">discard_authToken</a><br/> 
  <a href="get_assertionStatusReport.jsp" title="The get_assertionStatusReport API call provides administrative support for determining the status of current and outstanding publisher assertions that involve any of the business registrations managed by the individual publisher account.  Using this message, a publisher can see the status of assertions that they have made, as well as see assertions that others have made that involve businessEntity structures controlled by the calling publisher account.">get_assertionStatusReport</a><br/> 
  <a href="get_authToken.jsp" title="The get_authToken API call is used to obtain an authentication token.  Authentication tokens are opaque values that are required for all other publisher API calls.  This message is not required for Operator Sites that have an external mechanism defined for users to get an authentication token.  This API is provided for implementations that do not have some other method of obtaining an authentication token or certificate, or that choose to use user ID and password based authentication.">get_authToken</a><br/> 
  <a href="get_publisherAssertions.jsp" title="The get_publisherAssertions API call is used to obtain the full set of publisher assertions that is associated with an individual publisher account.">get_publisherAssertions</a><br/> 
  <a href="get_registeredInfo.jsp" title="The get_registeredInfo API call is used to get an abbreviated list of all businessEntity and tModel data that are controlled by the individual associated with the credentials passed.">get_registeredInfo</a><br/> 
  <a href="save_binding.jsp" title="The save_binding API call is used to save or update a complete bindingTemplate element.  This message can be used to add or update one or more bindingTemplate elements as well as the container/contained relationship that each bindingTemplate has with one or more existing businessService elements.">save_binding</a><br/> 
  <a href="save_business.jsp" title="The save_business API call is used to save or update information about a complete businessEntity element.  This API has the broadest scope of all of the save_xx API calls in the publisher API, and can be used to make sweeping changes to the published information for one or more businessEntity elements controlled by an individual.">save_business</a><br/> 
  <a href="save_service.jsp" title="The save_service API call adds or updates one or more businessService elements.">save_service</a><br/> 
  <a href="save_tModel.jsp" title="The save_tModel API call adds or updates one or more registered tModel elements.">save_tModel</a><br/> 
  <a href="set_publisherAssertions.jsp" title="The set_publisherAssertions API call is used to manage all of the tracked relationship assertions associated with an individual publisher account.">set_publisherAssertions</a>
  <p></p>
  <strong>Admin API</strong> (proprietary)<br/>
  <a href="delete_publisher.jsp" title="The delete_publisher API call causes one or more instances of publisher data to be deleted from the jUDDI registry.">delete_publisher</a><br/>
  <a href="find_publisher.jsp" title="The find_publisher API call returns a publisherList message that matches the conditions specified in the arguments.">find_publisher</a><br/> 
  <a href="get_publisherDetail.jsp" title="The get_publisherDetail API call is used to request full information about a known publisher structure.">get_publisherDetail</a><br/> 
  <a href="get_registryInfo.jsp" title="The get_registryInfo API call is used to get a list of properties published by the jUDDI registry such as registry version or the supported UDDI version.">get_registryInfo</a><br/>
  <a href="save_publisher.jsp" title="The save_publisher API call adds or updates one or more publisher elements.">save_publisher</a>
  </div>
  </td>
  </tr>
  </table>
  
  <table width="100%" border="0">
  <tr><td height="50" align="center" valign="bottom" nowrap><div class="footer">&nbsp;</div></td></tr>
  </table>
  </body>
  </html>
  
  
  1.1                  ws-juddi/webapp/console/header.html
  
  Index: header.html
  ===================================================================
  <?xml version="1.0" encoding="utf-8"?>
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-US">
  <head>
  <title>jUDDI Web Services Registry</title>
  <link rel="stylesheet" href="../juddi.css"/>
  </head>
  <body>
  <div class="nav" align="right"><font size="-2"><a href="http://ws.apache.org/juddi/" target="_top">jUDDI@Apache</a></font></div>
  <h1>jUDDI Console</h1>
  <table border="0" cellpadding="8">
  <tr>
  <td valign="top">
  
  
  
  1.1                  ws-juddi/webapp/console/save_service.jsp
  
  Index: save_service.jsp
  ===================================================================
  <jsp:include page="header.html" />
  
  <%
     String requestName = "save_service";
     String requestType = "publish";
     String requestKey = requestName+":request";
     String responseKey = requestName+":response";
  %>
  
  <form method="post" action="controller.jsp">
  <textarea class=msgs id=soap_request name=soap_request rows=15 cols=75 wrap=off><%
  String requestMessage = (String)session.getAttribute(requestKey);
  if (requestMessage != null) {
    out.print(requestMessage);
  } else { %>
  <?xml version="1.0" encoding="utf-8"?>
  <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
      <save_service generic="2.0" xmlns="urn:uddie-org:api_v2">
        <authInfo>*****</authInfo>
        <businessService businessKey="*****" serviceKey="">
          <name xml:lang="en">*****</name>
          <description xml:lang="en">*****</description>
          <bindingTemplates>
            <bindingTemplate bindingKey="">
              <accessPoint URLType="http">*****</accessPoint>
              <tModelInstanceDetails>
                <tModelInstanceInfo tModelKey="*****">
                  <instanceDetails>
                    <overviewDoc>
                      <overviewURL>*****</overviewURL>
                    </overviewDoc>
                  </instanceDetails>
                </tModelInstanceInfo>
              </tModelInstanceDetails>
            </bindingTemplate>
          </bindingTemplates>
        </businessService>
      </save_service>
    </soapenv:Body>
  </soapenv:Envelope>
  <% } %>
  </textarea>
  <p>
  <input type="hidden" name="request_name" value=<%=requestName%>>
  <input type="hidden" name="request_type" value=<%=requestType%>>
  <input type=submit name="submit_button" value="Submit">
  <input type=submit name="reset_button" value="Reset">
  </p>
  <textarea class=msgs id=soap_response name=soap_response rows=20 cols=75 wrap=off><%
  String responseMessage = (String)session.getAttribute(responseKey);
  if (responseMessage != null) {
    out.print(responseMessage);
  } %>
  </textarea>
  </form>
  
  <jsp:include page="footer.html" />
  
  
  1.1                  ws-juddi/webapp/console/delete_binding.jsp
  
  Index: delete_binding.jsp
  ===================================================================
  <jsp:include page="header.html" />
  
  <%
     String requestName = "delete_binding";
     String requestType = "publish";
     String requestKey = requestName+":request";
     String responseKey = requestName+":response";
  %>
  
  <form method="post" action="controller.jsp">
  <textarea class=msgs id=soap_request name=soap_request rows=15 cols=75 wrap=off><%
  String requestMessage = (String)session.getAttribute(requestKey);
  if (requestMessage != null) {
    out.print(requestMessage);
  } else { %>
  <?xml version="1.0" encoding="utf-8"?>
  <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
      <delete_binding generic="2.0" xmlns="urn:uddi-org:api_v2">
        <authInfo>*****</authInfo>
        <bindingKey>*****</bindingKey>
      </delete_binding>
    </soapenv:Body>
  </soapenv:Envelope>
  <% } %>
  </textarea>
  <p>
  <input type="hidden" name="request_name" value=<%=requestName%>>
  <input type="hidden" name="request_type" value=<%=requestType%>>
  <input type=submit name="submit_button" value="Submit">
  <input type=submit name="reset_button" value="Reset">
  </p>
  <textarea class=msgs id=soap_response name=soap_response rows=20 cols=75 wrap=off><%
  String responseMessage = (String)session.getAttribute(responseKey);
  if (responseMessage != null) {
    out.print(responseMessage);
  } %>
  </textarea>
  </form>
  
  <jsp:include page="footer.html" />
  
  
  1.1                  ws-juddi/webapp/console/get_publisherAssertions.jsp
  
  Index: get_publisherAssertions.jsp
  ===================================================================
  <jsp:include page="header.html" />
  
  <%
     String requestName = "get_publisherAssertions";
     String requestType = "inquiry";
     String requestKey = requestName+":request";
     String responseKey = requestName+":response";
  %>
  
  <form method="post" action="controller.jsp">
  <textarea class=msgs id=soap_request name=soap_request rows=15 cols=75 wrap=off><%
  String requestMessage = (String)session.getAttribute(requestKey);
  if (requestMessage != null) {
    out.print(requestMessage);
  } else { %>
  <?xml version="1.0" encoding="utf-8"?>
  <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
      <get_publisherAssertions generic="2.0" xmlns="urn:uddi-org:api_v2">
        <authInfo>*****</authInfo>
      </get_publisherAssertions>
    </soapenv:Body>
  </soapenv:Envelope>
  <% } %>
  </textarea>
  <p>
  <input type="hidden" name="request_name" value=<%=requestName%>>
  <input type="hidden" name="request_type" value=<%=requestType%>>
  <input type=submit name="submit_button" value="Submit">
  <input type=submit name="reset_button" value="Reset">
  </p>
  <textarea class=msgs id=soap_response name=soap_response rows=20 cols=75 wrap=off><%
  String responseMessage = (String)session.getAttribute(responseKey);
  if (responseMessage != null) {
    out.print(responseMessage);
  } %>
  </textarea>
  </form>
  
  <jsp:include page="footer.html" />
  
  
  1.1                  ws-juddi/webapp/console/get_publisherDetail.jsp
  
  Index: get_publisherDetail.jsp
  ===================================================================
  <jsp:include page="header.html" />
  
  <%
     String requestName = "get_publisherDetail";
     String requestType = "admin";
     String requestKey = requestName+":request";
     String responseKey = requestName+":response";
  %>
  
  <form method="post" action="controller.jsp">
  <textarea class=msgs id=soap_request name=soap_request rows=15 cols=75 wrap=off><%
  String requestMessage = (String)session.getAttribute(requestKey);
  if (requestMessage != null) {
    out.print(requestMessage);
  } else { %>
  <?xml version="1.0" encoding="utf-8"?>
  <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
      <get_publisherDetail generic="2.0" xmlns="urn:juddi-org:api_v2">
        <publisherID>*****</publisherID>
      </get_publisherDetail>
    </soapenv:Body>
  </soapenv:Envelope>
  <% } %>
  </textarea>
  <p>
  <input type="hidden" name="request_name" value=<%=requestName%>>
  <input type="hidden" name="request_type" value=<%=requestType%>>
  <input type=submit name="submit_button" value="Submit">
  <input type=submit name="reset_button" value="Reset">
  </p>
  <textarea class=msgs id=soap_response name=soap_response rows=20 cols=75 wrap=off><%
  String responseMessage = (String)session.getAttribute(responseKey);
  if (responseMessage != null) {
    out.print(responseMessage);
  } %>
  </textarea>
  </form>
  
  <jsp:include page="footer.html" />
  
  
  1.1                  ws-juddi/webapp/console/get_serviceDetail.jsp
  
  Index: get_serviceDetail.jsp
  ===================================================================
  <jsp:include page="header.html" />
  
  <%
     String requestName = "get_serviceDetail";
     String requestType = "inquiry";
     String requestKey = requestName+":request";
     String responseKey = requestName+":response";
  %>
  
  <form method="post" action="controller.jsp">
  <textarea class=msgs id=soap_request name=soap_request rows=15 cols=75 wrap=off><%
  String requestMessage = (String)session.getAttribute(requestKey);
  if (requestMessage != null) {
    out.print(requestMessage);
  } else { %>
  <?xml version="1.0" encoding="utf-8"?>
  <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
      <get_serviceDetail generic="2.0" xmlns="urn:uddi-org:api_v2">
        <serviceKey>*****</serviceKey>
      </get_serviceDetail>
    </soapenv:Body>
  </soapenv:Envelope>
  </textarea>
  <p>
  <input type="hidden" name="request_name" value=<%=requestName%>>
  <input type="hidden" name="request_type" value=<%=requestType%>>
  <input type=submit name="submit_button" value="Submit">
  <input type=submit name="reset_button" value="Reset">
  </p>
  <% } %>
  <textarea class=msgs id=soap_response name=soap_response rows=20 cols=75 wrap=off><%
  String responseMessage = (String)session.getAttribute(responseKey);
  if (responseMessage != null) {
    out.print(responseMessage);
  } %>
  </textarea>
  </form>
  
  <jsp:include page="footer.html" />
  
  
  1.1                  ws-juddi/webapp/console/delete_tModel.jsp
  
  Index: delete_tModel.jsp
  ===================================================================
  <jsp:include page="header.html" />
  
  <%
     String requestName = "delete_tModel";
     String requestType = "publish";
     String requestKey = requestName+":request";
     String responseKey = requestName+":response";
  %>
  
  <form method="post" action="controller.jsp">
  <textarea class=msgs id=soap_request name=soap_request rows=15 cols=75 wrap=off><%
  String requestMessage = (String)session.getAttribute(requestKey);
  if (requestMessage != null) {
    out.print(requestMessage);
  } else { %>
  <?xml version="1.0" encoding="utf-8"?>
  <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
      <delete_tModel generic="2.0" xmlns="urn:uddi-org:api_v2">
        <authInfo>*****</authInfo>
        <tModelKey>*****</tModelKey>
      </delete_tModel>
    </soapenv:Body>
  </soapenv:Envelope>
  <% } %>
  </textarea>
  <p>
  <input type="hidden" name="request_name" value=<%=requestName%>>
  <input type="hidden" name="request_type" value=<%=requestType%>>
  <input type=submit name="submit_button" value="Submit">
  <input type=submit name="reset_button" value="Reset">
  </p>
  <textarea class=msgs id=soap_response name=soap_response rows=20 cols=75 wrap=off><%
  String responseMessage = (String)session.getAttribute(responseKey);
  if (responseMessage != null) {
    out.print(responseMessage);
  } %>
  </textarea>
  </form>
  
  <jsp:include page="footer.html" />
  
  
  1.1                  ws-juddi/webapp/console/get_authToken.jsp
  
  Index: get_authToken.jsp
  ===================================================================
  <jsp:include page="header.html" />
  
  <%
     String requestName = "get_authToken";
     String requestType = "publish";
     String requestKey = requestName+":request";
     String responseKey = requestName+":response";
  %>
  
  <form method="post" action="controller.jsp">
  <textarea class=msgs id=soap_request name=soap_request rows=15 cols=75 wrap=off><%
  String requestMessage = (String)session.getAttribute(requestKey);
  if (requestMessage != null) {
    out.print(requestMessage);
  } else { %>
  <?xml version="1.0" encoding="utf-8"?>
  <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
      <get_authToken generic="2.0" xmlns="urn:uddi-org:api_v2" 
        userID="*****" 
        cred="*****"/>
    </soapenv:Body>
  </soapenv:Envelope>
  <% } %>
  </textarea>
  <p>
  <input type="hidden" name="request_name" value=<%=requestName%>>
  <input type="hidden" name="request_type" value=<%=requestType%>>
  <input type=submit name="submit_button" value="Submit">
  <input type=submit name="reset_button" value="Reset">
  </p>
  <textarea class=msgs id=soap_response name=soap_response rows=20 cols=75 wrap=off><%
  String responseMessage = (String)session.getAttribute(responseKey);
  if (responseMessage != null) {
    out.print(responseMessage);
  } %>
  </textarea>
  </form>
  
  <jsp:include page="footer.html" />
  
  
  1.1                  ws-juddi/webapp/console/get_registeredInfo.jsp
  
  Index: get_registeredInfo.jsp
  ===================================================================
  <jsp:include page="header.html" />
  
  <%
     String requestName = "get_registeredInfo";
     String requestType = "publish";
     String requestKey = requestName+":request";
     String responseKey = requestName+":response";
  %>
  
  <form method="post" action="controller.jsp">
  <textarea class=msgs id=soap_request name=soap_request rows=15 cols=75 wrap=off><%
  String requestMessage = (String)session.getAttribute(requestKey);
  if (requestMessage != null) {
    out.print(requestMessage);
  } else { %>
  <?xml version="1.0" encoding="utf-8"?>
  <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
      <get_registeredInfo generic="2.0" xmlns="urn:uddi-org:api_v2">
        <authInfo>*****</authInfo>
      </get_registeredInfo>
    </soapenv:Body>
  </soapenv:Envelope>
  <% } %>
  </textarea>
  <p>
  <input type="hidden" name="request_name" value=<%=requestName%>>
  <input type="hidden" name="request_type" value=<%=requestType%>>
  <input type=submit name="submit_button" value="Submit">
  <input type=submit name="reset_button" value="Reset">
  </p>
  <textarea class=msgs id=soap_response name=soap_response rows=20 cols=75 wrap=off><%
  String responseMessage = (String)session.getAttribute(responseKey);
  if (responseMessage != null) {
    out.print(responseMessage);
  } %>
  </textarea>
  </form>
  
  <jsp:include page="footer.html" />
  
  
  1.1                  ws-juddi/webapp/console/find_business.jsp
  
  Index: find_business.jsp
  ===================================================================
  <jsp:include page="header.html" />
  
  <%
     String requestName = "find_business";
     String requestType = "inquiry";
     String requestKey = requestName+":request";
     String responseKey = requestName+":response";
  %>
  
  <form method="post" action="controller.jsp">
  <textarea class=msgs id=soap_request name=soap_request rows=15 cols=75 wrap=off><%
  String requestMessage = (String)session.getAttribute(requestKey);
  if (requestMessage != null) {
    out.print(requestMessage);
  } else { %>
  <?xml version="1.0" encoding="utf-8"?>
  <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
      <find_business maxRows="100" generic="2.0" xmlns="urn:uddi-org:api_v2">
        <name>***</name>
        <discoveryURLs>
          <discoveryURL>***</discoveryURL>
        </discoveryURLs>
        <identifierBag>
          <keyedReference tModelKey="***" keyName="***" keyValue="***" />
        </identifierBag>
        <categoryBag>
          <keyedReference tModelKey="***" keyName="***" keyValue="***" />
        </categoryBag>
        <tModelBag>
          <tModelKey>***</tModelKey>
        </tModelBag>
      </find_business>
    </soapenv:Body>
  </soapenv:Envelope>
  <% } %>
  </textarea>
  <p>
  <input type="hidden" name="request_name" value=<%=requestName%>>
  <input type="hidden" name="request_type" value=<%=requestType%>>
  <input type=submit name="submit_button" value="Submit">
  <input type=submit name="reset_button" value="Reset">
  </p>
  <textarea class=msgs id=soap_response name=soap_response rows=20 cols=75 wrap=off><%
  String responseMessage = (String)session.getAttribute(responseKey);
  if (responseMessage != null) {
    out.print(responseMessage);
  } %>
  </textarea>
  </form>
  
  <jsp:include page="footer.html" />
  
  
  1.1                  ws-juddi/webapp/console/find_service.jsp
  
  Index: find_service.jsp
  ===================================================================
  <jsp:include page="header.html" />
  
  <%
     String requestName = "find_service";
     String requestType = "inquiry";
     String requestKey = requestName+":request";
     String responseKey = requestName+":response";
  %>
  
  <form method="post" action="controller.jsp">
  <textarea class=msgs id=soap_request name=soap_request rows=15 cols=75 wrap=off><%
  String requestMessage = (String)session.getAttribute(requestKey);
  if (requestMessage != null) {
    out.print(requestMessage);
  } else { %>
  <?xml version="1.0" encoding="utf-8"?>
  <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
      <find_service businessKey="*****" generic="2.0" xmlns="urn:uddi-org:api_v2">
        <name>*****</name>
        <categoryBag>
          <keyedReference tModelKey="******" keyName="******" keyValue="******" />
        </categoryBag>
        <tModelBag>
          <tModelKey>******</tModelKey>
        </tModelBag>
      </find_service>
    </soapenv:Body>
  </soapenv:Envelope>
  <% } %>
  </textarea>
  <p>
  <input type="hidden" name="request_name" value=<%=requestName%>>
  <input type="hidden" name="request_type" value=<%=requestType%>>
  <input type=submit name="submit_button" value="Submit">
  <input type=submit name="reset_button" value="Reset">
  </p>
  <textarea class=msgs id=soap_response name=soap_response rows=20 cols=75 wrap=off><%
  String responseMessage = (String)session.getAttribute(responseKey);
  if (responseMessage != null) {
    out.print(responseMessage);
  } %>
  </textarea>
  </form>
  
  <jsp:include page="footer.html" />
  
  
  1.1                  ws-juddi/webapp/console/delete_service.jsp
  
  Index: delete_service.jsp
  ===================================================================
  <jsp:include page="header.html" />
  
  <%
     String requestName = "delete_service";
     String requestType = "publish";
     String requestKey = requestName+":request";
     String responseKey = requestName+":response";
  %>
  
  <form method="post" action="controller.jsp">
  <textarea class=msgs id=soap_request name=soap_request rows=15 cols=75 wrap=off><%
  String requestMessage = (String)session.getAttribute(requestKey);
  if (requestMessage != null) {
    out.print(requestMessage);
  } else { %>
  <?xml version="1.0" encoding="utf-8"?>
  <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
      <delete_service generic="2.0" xmlns="urn:uddi-org:api_v2">
        <authInfo>*****</authInfo>
        <serviceKey>*****</serviceKey>
      </delete_service>
    </soapenv:Body>
  </soapenv:Envelope>
  <% } %>
  </textarea>
  <p>
  <input type="hidden" name="request_name" value=<%=requestName%>>
  <input type="hidden" name="request_type" value=<%=requestType%>>
  <input type=submit name="submit_button" value="Submit">
  <input type=submit name="reset_button" value="Reset">
  </p>
  <textarea class=msgs id=soap_response name=soap_response rows=20 cols=75 wrap=off><%
  String responseMessage = (String)session.getAttribute(responseKey);
  if (responseMessage != null) {
    out.print(responseMessage);
  } %>
  </textarea>
  </form>
  
  <jsp:include page="footer.html" />
  
  
  1.1                  ws-juddi/webapp/console/get_bindingDetail.jsp
  
  Index: get_bindingDetail.jsp
  ===================================================================
  <jsp:include page="header.html" />
  
  <%
     String requestName = "get_bindingDetail";
     String requestType = "inquiry";
     String requestKey = requestName+":request";
     String responseKey = requestName+":response";
  %>
  
  <form method="post" action="controller.jsp">
  <textarea class=msgs id=soap_request name=soap_request rows=15 cols=75 wrap=off><%
  String requestMessage = (String)session.getAttribute(requestKey);
  if (requestMessage != null) {
    out.print(requestMessage);
  } else { %>
  <?xml version="1.0" encoding="utf-8"?>
  <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
      <get_bindingDetail generic="2.0" xmlns="urn:uddi-org:api_v2">
        <bindingKey>*****</bindingKey>
      </get_bindingDetail>
    </soapenv:Body>
  </soapenv:Envelope>
  <% } %>
  </textarea>
  <p>
  <input type="hidden" name="request_name" value=<%=requestName%>>
  <input type="hidden" name="request_type" value=<%=requestType%>>
  <input type=submit name="submit_button" value="Submit">
  <input type=submit name="reset_button" value="Reset">
  </p>
  <textarea class=msgs id=soap_response name=soap_response rows=20 cols=75 wrap=off><%
  String responseMessage = (String)session.getAttribute(responseKey);
  if (responseMessage != null) {
    out.print(responseMessage);
  } %>
  </textarea>
  </form>
  
  <jsp:include page="footer.html" />
  
  
  1.1                  ws-juddi/webapp/console/find_binding.jsp
  
  Index: find_binding.jsp
  ===================================================================
  <jsp:include page="header.html" />
  
  <%
     String requestName = "find_binding";
     String requestType = "inquiry";
     String requestKey = requestName+":request";
     String responseKey = requestName+":response";
  %>
  
  <form method="post" action="controller.jsp">
  <textarea class=msgs id=soap_request name=soap_request rows=15 cols=75 wrap=off><%
  String requestMessage = (String)session.getAttribute(requestKey);
  if (requestMessage != null) {
    out.print(requestMessage);
  } else {
  %><?xml version="1.0" encoding="utf-8"?>
  <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
      <find_binding serviceKey="******" maxRows="100" generic="2.0" xmlns="urn:uddi-org:api_v2">
        <tModelBag>
          <tModelKey>******</tModelKey>
        </tModelBag>
      </find_binding>
    </soapenv:Body>
  </soapenv:Envelope>
  <% } %>
  </textarea>
  <p>
  <input type="hidden" name="request_name" value=<%=requestName%>>
  <input type="hidden" name="request_type" value=<%=requestType%>>
  <input type=submit name="submit_button" value="Submit">
  <input type=submit name="reset_button" value="Reset">
  </p>
  <textarea class=msgs id=soap_response name=soap_response rows=20 cols=75 wrap=off><%
  String responseMessage = (String)session.getAttribute(responseKey);
  if (responseMessage != null) {
    out.print(responseMessage);
  } %>
  </textarea>
  </form>
  
  <jsp:include page="footer.html" />
  
  
  1.1                  ws-juddi/webapp/console/delete_publisher.jsp
  
  Index: delete_publisher.jsp
  ===================================================================
  <jsp:include page="header.html" />
  
  <%
     String requestName = "delete_publisher";
     String requestType = "admin";
     String requestKey = requestName+":request";
     String responseKey = requestName+":response";
  %>
  
  <form method="post" action="controller.jsp">
  <textarea class=msgs id=soap_request name=soap_request rows=15 cols=75 wrap=off><%
  String requestMessage = (String)session.getAttribute(requestKey);
  if (requestMessage != null) {
    out.print(requestMessage);
  } else { %>
  <?xml version="1.0" encoding="utf-8"?>
  <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
      <delete_publisher generic="2.0" xmlns="urn:juddi-org:api_v2">
        <authInfo>*****</authInfo>
        <publisherID>*****</publisherID>
      </delete_publisher>
    </soapenv:Body>
  </soapenv:Envelope>
  <% } %>
  </textarea>
  <p>
  <input type="hidden" name="request_name" value=<%=requestName%>>
  <input type="hidden" name="request_type" value=<%=requestType%>>
  <input type=submit name="submit_button" value="Submit">
  <input type=submit name="reset_button" value="Reset">
  </p>
  <textarea class=msgs id=soap_response name=soap_response rows=20 cols=75 wrap=off><%
  String responseMessage = (String)session.getAttribute(responseKey);
  if (responseMessage != null) {
    out.print(responseMessage);
  } %>
  </textarea>
  </form>
  
  <jsp:include page="footer.html" />
  
  
  1.1                  ws-juddi/webapp/console/discard_authToken.jsp
  
  Index: discard_authToken.jsp
  ===================================================================
  <jsp:include page="header.html" />
  
  <%
     String requestName = "discard_authToken";
     String requestType = "publish";
     String requestKey = requestName+":request";
     String responseKey = requestName+":response";
  %>
  
  <form method="post" action="controller.jsp">
  <textarea class=msgs id=soap_request name=soap_request rows=15 cols=75 wrap=off><%
  String requestMessage = (String)session.getAttribute(requestKey);
  if (requestMessage != null) {
    out.print(requestMessage);
  } else { %>
  <?xml version="1.0" encoding="utf-8"?>
  <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
      <discard_authToken generic="2.0" xmlns="urn:uddi-org:api_v2">
        <authInfo>*****</authInfo>
      </discard_authToken>
    </soapenv:Body>
  </soapenv:Envelope>
  <% } %>
  </textarea>
  <p>
  <input type="hidden" name="request_name" value=<%=requestName%>>
  <input type="hidden" name="request_type" value=<%=requestType%>>
  <input type=submit name="submit_button" value="Submit">
  <input type=submit name="reset_button" value="Reset">
  </p>
  <textarea class=msgs id=soap_response name=soap_response rows=20 cols=75 wrap=off>
  <?xml version="1.0" encoding="utf-8"?><%
  String responseMessage = (String)session.getAttribute(responseKey);
  if (responseMessage != null) {
    out.print(responseMessage);
  } %>
  </textarea>
  </form>
  
  <jsp:include page="footer.html" />
  
  
  1.1                  ws-juddi/webapp/console/get_registryInfo.jsp
  
  Index: get_registryInfo.jsp
  ===================================================================
  <jsp:include page="header.html" />
  
  <%
     String requestName = "get_registryInfo";
     String requestType = "admin";
     String requestKey = requestName+":request";
     String responseKey = requestName+":response";
  %>
  
  <form method="post" action="controller.jsp">
  <textarea class=msgs id=soap_request name=soap_request rows=15 cols=75 wrap=off><%
  String requestMessage = (String)session.getAttribute(requestKey);
  if (requestMessage != null) {
    out.print(requestMessage);
  } else { %>
  <?xml version="1.0" encoding="utf-8"?>
  <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
      <get_registryInfo generic="2.0" xmlns="urn:juddi-org:api_v2"/>
    </soapenv:Body>
  </soapenv:Envelope>
  <% } %>
  </textarea>
  <p>
  <input type="hidden" name="request_name" value=<%=requestName%>>
  <input type="hidden" name="request_type" value=<%=requestType%>>
  <input type=submit name="submit_button" value="Submit">
  <input type=submit name="reset_button" value="Reset">
  </p>
  <textarea class=msgs id=soap_response name=soap_response rows=20 cols=75 wrap=off><%
  String responseMessage = (String)session.getAttribute(responseKey);
  if (responseMessage != null) {
    out.print(responseMessage);
  } %>
  </textarea>
  </form>
  
  <jsp:include page="footer.html" />
  
  
  1.1                  ws-juddi/webapp/console/find_publisher.jsp
  
  Index: find_publisher.jsp
  ===================================================================
  <jsp:include page="header.html" />
  
  <%
     String requestName = "find_publisher";
     String requestType = "admin";
     String requestKey = requestName+":request";
     String responseKey = requestName+":response";
  %>
  
  <form method="post" action="controller.jsp">
  <textarea class=msgs id=soap_request name=soap_request rows=15 cols=75 wrap=off><%
  String requestMessage = (String)session.getAttribute(requestKey);
  if (requestMessage != null) {
    out.print(requestMessage);
  } else { %>
  <?xml version="1.0" encoding="utf-8"?>
  <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
      <find_publisher maxRows="100" generic="2.0" xmlns="urn:juddi-org:api_v2">
        <findQualifiers>
          <findQualifier>*****</findQualifier>
        </findQualifiers>
        <name xml:lang="en">*****</name>
      </find_publisher>
    </soapenv:Body>
  </soapenv:Envelope>
  <% } %>
  </textarea>
  <p>
  <input type="hidden" name="request_name" value=<%=requestName%>>
  <input type="hidden" name="request_type" value=<%=requestType%>>
  <input type=submit name="submit_button" value="Submit">
  <input type=submit name="reset_button" value="Reset">
  </p>
  <textarea class=msgs id=soap_response name=soap_response rows=20 cols=75 wrap=off><%
  String responseMessage = (String)session.getAttribute(responseKey);
  if (responseMessage != null) {
    out.print(responseMessage);
  } %>
  </textarea>
  </form>
  
  <jsp:include page="footer.html" />
  
  
  1.1                  ws-juddi/webapp/console/get_assertionStatusReport.jsp
  
  Index: get_assertionStatusReport.jsp
  ===================================================================
  <jsp:include page="header.html" />
  
  <%
     String requestName = "get_assertionStatusReport";
     String requestType = "publish";
     String requestKey = requestName+":request";
     String responseKey = requestName+":response";
  %>
  
  <form method="post" action="controller.jsp">
  <textarea class=msgs id=soap_request name=soap_request rows=15 cols=75 wrap=off><%
  String requestMessage = (String)session.getAttribute(requestKey);
  if (requestMessage != null) {
    out.print(requestMessage);
  } else { %>
  <?xml version="1.0" encoding="utf-8"?>
  <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
      <get_assertionStatusReport generic="2.0" xmlns="urn:uddi-org:api_v2">
        <authInfo>*****</authInfo>
        <completionStatus>*****</completionStatus>
      </get_assertionStatusReport>
    </soapenv:Body>
  </soapenv:Envelope>
  <% } %>
  </textarea>
  <p>
  <input type="hidden" name="request_name" value=<%=requestName%>>
  <input type="hidden" name="request_type" value=<%=requestType%>>
  <input type=submit name="submit_button" value="Submit">
  <input type=submit name="reset_button" value="Reset">
  </p>
  <textarea class=msgs id=soap_response name=soap_response rows=20 cols=75 wrap=off><%
  String responseMessage = (String)session.getAttribute(responseKey);
  if (responseMessage != null) {
    out.print(responseMessage);
  } %>
  </textarea>
  </form>
  
  <jsp:include page="footer.html" />
  
  
  1.1                  ws-juddi/webapp/console/snoop.jsp
  
  Index: snoop.jsp
  ===================================================================
  <%@ page language="java" import="java.util.*,java.io.*,java.net.*" %>
  
  <?xml version="1.0" encoding="utf-8"?>
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  <%
    String requestName = request.getParameter("request_name");
    String requestType = request.getParameter("request_type");
    String submitButton = request.getParameter("submit_button");
    String resetButton = request.getParameter("reset_button");
    String requestKey = requestName+":request";
    String responseKey = requestName+":response"; 
    String requestMsg = request.getParameter("soap_request");
    String responseMsg = "";
    String targetPage = requestName+".jsp";
  
    try 
    {
      // Create a Socket
      String hostname = "localhost";
      int port = 8080;
      InetAddress addr = InetAddress.getByName(hostname);
      Socket sock = new Socket(addr,port);
  		
      // Send the HTTP Headers
      String path = "/juddi/"+requestType;
      BufferedWriter  wr = new BufferedWriter(new OutputStreamWriter(sock.getOutputStream(),"UTF-8"));
      wr.write("POST " + path + " HTTP/1.0\r\n");
      wr.write("Content-Length: " + requestMsg.length() + "\r\n");
      wr.write("Content-Type: text/xml; charset=\"utf-8\"\r\n");
      wr.write("\r\n");
  		
      // Send the HTTP Request
      wr.write(requestMsg);
      wr.flush();
  		
      // Read the HTTP Response
      BufferedReader rd = new BufferedReader(new InputStreamReader(sock.getInputStream()));
      String line;
      StringBuffer message = new StringBuffer();
      while((line = rd.readLine()) != null)
        message.append(line+"\n");
        
      responseMsg = message.toString();
     } 
    catch (Exception e) 
    {
      e.printStackTrace();
    }
    
    session.setAttribute(requestKey,requestMsg);
    session.setAttribute(responseKey,responseMsg);
    
    // Redirect back to the source page
    
  %>
  <html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-US">
  <head>
  <title>jUDDI Web Services Registry</title>
  <link rel="stylesheet" href="../juddi.css"/>
  </head>
  <body>
  <div class="nav" align="right"><font size="-2"><a href="http://ws.apache.org/juddi/" target="_top">jUDDI@Apache</a></font></div>
  <h1>jUDDI Console</h1>
  <TABLE border="0">
  
  <TR valign=top>
  <TD>
  <H2>SOAP Request Name</H2>
  <%= requestName %>
  <P></P>
  </TD>
  </TR>
  
  <TR valign=top>
  <TD>
  <H2>SOAP Request Type</H2>
  <%= requestType %>
  <P></P>
  </TD>
  </TR>
  
  <TR valign=top>
  <TD>
  <H2>SOAP Request Action</H2>
  Submit Button: <%= submitButton %><br>
  Reset Button: <%= resetButton %>
  <P></P>
  </TD>
  </TR>
  
  
  <TR valign=top>
  <TD>
  <H2>SOAP Request Message</H2>
  <FORM>
  <TEXTAREA rows=15 cols=75 wrap=off><%= session.getAttribute(requestKey) %></TEXTAREA>
  </FORM>
  </TD>
  </TR>
  
  
  <TR valign=top>
  <TD>
  <H2>SOAP Response Message</H2>
  <FORM>
  <TEXTAREA rows=15 cols=75 wrap=off><%= session.getAttribute(responseKey) %></TEXTAREA>
  </FORM>
  </TD>
  </TR>
  
  
  <TR valign=top>
  <TD>
  <H2>Current Message Set</H2>
  <%
  	Enumeration enum = session.getAttributeNames();
  	while (enum.hasMoreElements())
  	{
  	  out.print(enum.nextElement());
  	  out.print("<br>");
  	}
  %>
  </TD>
  </TR>
  
  
  </TABLE>
  </BODY>
  </HTML>
  
  
  
  1.1                  ws-juddi/webapp/console/find_relatedBusinesses.jsp
  
  Index: find_relatedBusinesses.jsp
  ===================================================================
  <jsp:include page="header.html" />
  
  <%
     String requestName = "find_relatedBusinesses";
     String requestType = "inquiry";
     String requestKey = requestName+":request";
     String responseKey = requestName+":response";
  %>
  
  <form method="post" action="controller.jsp">
  <textarea class=msgs id=soap_request name=soap_request rows=15 cols=75 wrap=off><%
  String requestMessage = (String)session.getAttribute(requestKey);
  if (requestMessage != null) {
    out.print(requestMessage);
  } else { %>
  <?xml version="1.0" encoding="utf-8"?>
  <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
      <find_relatedBusinesses generic="2.0" xmlns="urn:uddi-org:api_v2">
        <businessKey>*****</businessKey>
        <keyedReference tModelKey="******" keyName="******" keyValue="******" />
      </find_relatedBusinesses>
    </soapenv:Body>
  </soapenv:Envelope>
  <% } %>
  </textarea>
  <p>
  <input type="hidden" name="request_name" value=<%=requestName%>>
  <input type="hidden" name="request_type" value=<%=requestType%>>
  <input type=submit name="submit_button" value="Submit">
  <input type=submit name="reset_button" value="Reset">
  </p>
  <textarea class=msgs id=soap_response name=soap_response rows=20 cols=75 wrap=off><%
  String responseMessage = (String)session.getAttribute(responseKey);
  if (responseMessage != null) {
    out.print(responseMessage);
  } %>
  </textarea>
  </form>
  
  <jsp:include page="footer.html" />
  
  
  1.1                  ws-juddi/webapp/console/delete_publisherAssertions.jsp
  
  Index: delete_publisherAssertions.jsp
  ===================================================================
  <jsp:include page="header.html" />
  
  <%
     String requestName = "delete_publisherAssertions";
     String requestType = "publish";
     String requestKey = requestName+":request";
     String responseKey = requestName+":response";
  %>
  
  <form method="post" action="controller.jsp">
  <textarea class=msgs id=soap_request name=soap_request rows=15 cols=75 wrap=off><%
  String requestMessage = (String)session.getAttribute(requestKey);
  if (requestMessage != null) {
    out.print(requestMessage);
  } else { %>
  <?xml version="1.0" encoding="utf-8"?>
  <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
      <delete_publisherAssertions generic="2.0" xmlns="urn:uddi-org:api_v2">
        <authInfo>*****</authInfo>
        <publisherAssertion>
          <fromKey>*****</fromKey>
          <toKey>*****</toKey>
          <keyedReference tModelKey="*****" keyName="*****" keyValue="*****" />
        </publisherAssertion>
      </delete_publisherAssertions>
    </soapenv:Body>
  </soapenv:Envelope>
  <% } %>
  </textarea>
  <p>
  <input type="hidden" name="request_name" value=<%=requestName%>>
  <input type="hidden" name="request_type" value=<%=requestType%>>
  <input type=submit name="submit_button" value="Submit">
  <input type=submit name="reset_button" value="Reset">
  </p>
  <textarea class=msgs id=soap_response name=soap_response rows=20 cols=75 wrap=off><%
  String responseMessage = (String)session.getAttribute(responseKey);
  if (responseMessage != null) {
    out.print(responseMessage);
  } %>
  </textarea>
  </form>
  
  <jsp:include page="footer.html" />
  
  
  1.1                  ws-juddi/webapp/console/controller.jsp
  
  Index: controller.jsp
  ===================================================================
  <%@ page language="java" import="java.util.*,java.io.*,java.net.*" %>
  
  <?xml version="1.0" encoding="utf-8"?>
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  <%
    String requestName = request.getParameter("request_name");
    String requestType = request.getParameter("request_type");
    String submitAction = request.getParameter("submit_button");
    String resetAction = request.getParameter("reset_button");
    
    String targetPage = requestName+".jsp";
    String requestKey = requestName+":request";
    String responseKey = requestName+":response"; 
    String requestMsg = request.getParameter("soap_request");
    String responseMsg = "";
  
    if (resetAction != null)
    {
      requestMsg = null;
      responseMsg = null;
    }
    else if (submitAction != null) 
    {
      // if not "Reset" then the user must have clicked "Submit"
  	  
  	  try 
  	  {
  		  // Assemble the target UDDI request URL
  		  String hostname = "localhost";
  		  int port = 8080;
  		  String path = "/juddi/"+requestType;
  
  	    // Create a Socket
  	    InetAddress addr = InetAddress.getByName(hostname);
  	    Socket sock = new Socket(addr,port);
  			
  	    // Send the HTTP Headers
  	    BufferedWriter  wr = new BufferedWriter(new OutputStreamWriter(sock.getOutputStream(),"UTF-8"));
  	    wr.write("POST " + path + " HTTP/1.0\r\n");
  	    wr.write("Content-Length: " + requestMsg.length() + "\r\n");
  	    wr.write("Content-Type: text/xml; charset=\"utf-8\"\r\n");
  	    wr.write("\r\n");
  			
  	    // Send the HTTP Request
  	    wr.write(requestMsg);
  	    wr.flush();
  			
  	    // Read the HTTP Response
  	    BufferedReader rd = new BufferedReader(new InputStreamReader(sock.getInputStream()));
  	    String line;
  	    StringBuffer message = new StringBuffer();
  	    while((line = rd.readLine()) != null)
  	      message.append(line+"\n");
  	      
  	    responseMsg = message.toString();
  	   } 
  	  catch (Exception e) 
  	  {
  	    e.printStackTrace();
  	  }
  	}
    
    session.setAttribute(requestKey,requestMsg);
    session.setAttribute(responseKey,responseMsg);
    
    // Redirect back to the source page
    request.getRequestDispatcher(targetPage).forward(request,response);
  %>
  
  
  
  1.1                  ws-juddi/webapp/console/save_tModel.jsp
  
  Index: save_tModel.jsp
  ===================================================================
  <jsp:include page="header.html" />
  
  <%
     String requestName = "save_tModel";
     String requestType = "publish";
     String requestKey = requestName+":request";
     String responseKey = requestName+":response";
  %>
  
  <form method="post" action="controller.jsp">
  <textarea class=msgs id=soap_request name=soap_request rows=15 cols=75 wrap=off>
  <%
  String requestMessage = (String)session.getAttribute(requestKey);
  if (requestMessage != null) {
    out.print(requestMessage);
  } else { %>
  <?xml version="1.0" encoding="utf-8"?>
  <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
      <save_tModel generic="2.0" xmlns="urn:uddi-org:api_v2">
        <authInfo>*****</authInfo>
        <tModel tModelKey="">
          <name>*****</name>
          <description xml:lang="en">*****</description>
          <overviewDoc>
            <description xml:lang="en">*****</description>
            <overviewURL>*****</overviewURL>
          </overviewDoc>
          <identifierBag>
            <keyedReference tModelKey="*****" keyName="*****" keyValue="*****" />
          </identifierBag>
          <categoryBag>
            <keyedReference tModelKey="*****" keyName="*****" keyValue="*****" />
          </categoryBag>
        </tModel>
      </save_tModel>
    </soapenv:Body>
  </soapenv:Envelope>
  <% } %>
  </textarea>
  <p>
  <input type="hidden" name="request_name" value=<%=requestName%>>
  <input type="hidden" name="request_type" value=<%=requestType%>>
  <input type=submit name="submit_button" value="Submit">
  <input type=submit name="reset_button" value="Reset">
  </p>
  <textarea class=msgs id=soap_response name=soap_response rows=20 cols=75 wrap=off><%
  String responseMessage = (String)session.getAttribute(responseKey);
  if (responseMessage != null) {
    out.print(responseMessage);
  } %>
  </textarea>
  </form>
  
  <jsp:include page="footer.html" />
  
  
  1.1                  ws-juddi/webapp/console/save_business.jsp
  
  Index: save_business.jsp
  ===================================================================
  <jsp:include page="header.html" />
  
  <%
     String requestName = "save_business";
     String requestType = "publish";
     String requestKey = requestName+":request";
     String responseKey = requestName+":response";
  %>
  
  <form method="post" action="controller.jsp">
  <textarea class=msgs id=soap_request name=soap_request rows=15 cols=75 wrap=off><%
  String requestMessage = (String)session.getAttribute(requestKey);
  if (requestMessage != null) {
    out.print(requestMessage);
  } else { %>
  <?xml version="1.0" encoding="utf-8"?>
  <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
      <save_business generic="2.0" xmlns="urn:uddi-org:api_v2">
        <authInfo>*****</authInfo>
        <businessEntity businessKey="">
          <discoveryURLs>
            <discoveryURL useType="*****">*****</discoveryURL>
          </discoveryURLs>
          <name xml:lang="en">*****</name>
          <description xml:lang="en">*****</description>
          <contacts>
            <contact useType="*****">
              <personName>*****</personName>
              <phone>*****</phone>
            </contact>
            <contact useType="*****">
              <personName>*****</personName>
              <phone>*****</phone>
            </contact>
          </contacts>
        </businessEntity>
      </save_business>
    </soapenv:Body>
  </soapenv:Envelope>
  <% } %>
  </textarea>
  <p>
  <input type="hidden" name="request_name" value=<%=requestName%>>
  <input type="hidden" name="request_type" value=<%=requestType%>>
  <input type=submit name="submit_button" value="Submit">
  <input type=submit name="reset_button" value="Reset">
  </p>
  <textarea class=msgs id=soap_response name=soap_response rows=20 cols=75 wrap=off><%
  String responseMessage = (String)session.getAttribute(responseKey);
  if (responseMessage != null) {
    out.print(responseMessage);
  } %>
  </textarea>
  </form>
  
  <jsp:include page="footer.html" />
  
  
  1.1                  ws-juddi/webapp/console/get_businessDetailExt.jsp
  
  Index: get_businessDetailExt.jsp
  ===================================================================
  <jsp:include page="header.html" />
  
  <%
     String requestName = "get_businessDetailExt";
     String requestType = "inquiry";
     String requestKey = requestName+":request";
     String responseKey = requestName+":response";
  %>
  
  <form method="post" action="controller.jsp">
  <textarea class=msgs id=soap_request name=soap_request rows=15 cols=75 wrap=off><%
  String requestMessage = (String)session.getAttribute(requestKey);
  if (requestMessage != null) {
    out.print(requestMessage);
  } else { %>
  <?xml version="1.0" encoding="utf-8"?>
  <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
      <get_businessDetailExt generic="2.0" xmlns="urn:uddi-org:api_v2">
        <businessKey>*****</businessKey>
      </get_businessDetailExt>
    </soapenv:Body>
  </soapenv:Envelope>
  <% } %>
  </textarea>
  <p>
  <input type="hidden" name="request_name" value=<%=requestName%>>
  <input type="hidden" name="request_type" value=<%=requestType%>>
  <input type=submit name="submit_button" value="Submit">
  <input type=submit name="reset_button" value="Reset">
  </p>
  <textarea class=msgs id=soap_response name=soap_response rows=20 cols=75 wrap=off><%
  String responseMessage = (String)session.getAttribute(responseKey);
  if (responseMessage != null) {
    out.print(responseMessage);
  } %>
  </textarea>
  </form>
  
  <jsp:include page="footer.html" />
  
  
  1.1                  ws-juddi/webapp/console/save_publisher.jsp
  
  Index: save_publisher.jsp
  ===================================================================
  <jsp:include page="header.html" />
  
  <%
     String requestName = "save_publisher";
     String requestType = "admin";
     String requestKey = requestName+":request";
     String responseKey = requestName+":response";
  %>
  
  <form method="post" action="controller.jsp">
  <textarea class=msgs id=soap_request name=soap_request rows=15 cols=75 wrap=off><%
  String requestMessage = (String)session.getAttribute(requestKey);
  if (requestMessage != null) {
    out.print(requestMessage);
  } else { %>
  <?xml version="1.0" encoding="utf-8"?>
  <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
      <save_publisher generic="2.0" xmlns="urn:juddi-org:api_v2">
        <authInfo>*****</authInfo>
        <publisher 
           publisherID="*****" 
           publisherName="*****" 
           admin="true" 
           enabled="false" 
           emailAddress="*****"/>
      </save_publisher>
    </soapenv:Body>
  </soapenv:Envelope>
  <% } %>
  </textarea>
  <p>
  <input type="hidden" name="request_name" value=<%=requestName%>>
  <input type="hidden" name="request_type" value=<%=requestType%>>
  <input type=submit name="submit_button" value="Submit">
  <input type=submit name="reset_button" value="Reset">
  </p>
  <textarea class=msgs id=soap_response name=soap_response rows=20 cols=75 wrap=off><%
  String responseMessage = (String)session.getAttribute(responseKey);
  if (responseMessage != null) {
    out.print(responseMessage);
  } %>
  </textarea>
  </form>
  
  <jsp:include page="footer.html" />
  
  
  1.1                  ws-juddi/webapp/console/find_tModel.jsp
  
  Index: find_tModel.jsp
  ===================================================================
  <jsp:include page="header.html" />
  
  <%
     String requestName = "find_tModel";
     String requestType = "inquiry";
     String requestKey = requestName+":request";
     String responseKey = requestName+":response";
  %>
  
  <form method="post" action="controller.jsp">
  <textarea class=msgs id=soap_request name=soap_request rows=15 cols=75 wrap=off><%
  String requestMessage = (String)session.getAttribute(requestKey);
  if (requestMessage != null) {
    out.print(requestMessage);
  } else { %>
  <?xml version="1.0" encoding="utf-8"?>
  <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
      <find_tModel generic="2.0" xmlns="urn:uddi-org:api_v2">
        <name>*****</name>
        <identifierBag>
          <keyedReference tModelKey="******" keyName="******" keyValue="******" />
        </identifierBag>
        <categoryBag>
          <keyedReference tModelKey="*****" keyName="*****" keyValue="*****" />
        </categoryBag>
      </find_tModel>
    </soapenv:Body>
  </soapenv:Envelope>
  <% } %>
  </textarea>
  <p>
  <input type="hidden" name="request_name" value=<%=requestName%>>
  <input type="hidden" name="request_type" value=<%=requestType%>>
  <input type=submit name="submit_button" value="Submit">
  <input type=submit name="reset_button" value="Reset">
  </p>
  <textarea class=msgs id=soap_response name=soap_response rows=20 cols=75 wrap=off><%
  String responseMessage = (String)session.getAttribute(responseKey);
  if (responseMessage != null) {
    out.print(responseMessage);
  } %>
  </textarea>
  </form>
  
  <jsp:include page="footer.html" />
  
  
  1.1                  ws-juddi/webapp/console/save_binding.jsp
  
  Index: save_binding.jsp
  ===================================================================
  <jsp:include page="header.html" />
  
  <%
     String requestName = "save_binding";
     String requestType = "publish";
     String requestKey = requestName+":request";
     String responseKey = requestName+":response";
  %>
  
  <form method="post" action="controller.jsp">
  <textarea class=msgs id=soap_request name=soap_request rows=15 cols=75 wrap=off><%
  String requestMessage = (String)session.getAttribute(requestKey);
  if (requestMessage != null) {
    out.print(requestMessage);
  } else { %>
  <?xml version="1.0" encoding="utf-8"?>
  <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
      <save_binding generic="2.0" xmlns="urn:uddi-org:api_v2">
        <authInfo>*****</authInfo>
        <bindingTemplate bindingKey="">
          <accessPoint URLType="http">*****</accessPoint>
          <tModelInstanceDetails>
            <tModelInstanceInfo tModelKey="*****">
              <instanceDetails>
                <overviewDoc>
                  <overviewURL>*****</overviewURL>
                </overviewDoc>
              </instanceDetails>
            </tModelInstanceInfo>
          </tModelInstanceDetails>
        </bindingTemplate>
      </save_binding>
    </soapenv:Body>
  </soapenv:Envelope>
  <% } %>
  </textarea>
  <p>
  <input type="hidden" name="request_name" value=<%=requestName%>>
  <input type="hidden" name="request_type" value=<%=requestType%>>
  <input type=submit name="submit_button" value="Submit">
  <input type=submit name="reset_button" value="Reset">
  </p>
  <textarea class=msgs id=soap_response name=soap_response rows=20 cols=75 wrap=off><%
  String responseMessage = (String)session.getAttribute(responseKey);
  if (responseMessage != null) {
    out.print(responseMessage);
  } %>
  </textarea>
  </form>
  
  <jsp:include page="footer.html" />
  
  
  1.1                  ws-juddi/webapp/console/delete_business.jsp
  
  Index: delete_business.jsp
  ===================================================================
  <jsp:include page="header.html" />
  
  <%
     String requestName = "delete_business";
     String requestType = "publish";
     String requestKey = requestName+":request";
     String responseKey = requestName+":response";
  %>
  
  <form method="post" action="controller.jsp">
  <textarea class=msgs id=soap_request name=soap_request rows=15 cols=75 wrap=off><%
  String requestMessage = (String)session.getAttribute(requestKey);
  if (requestMessage != null) {
    out.print(requestMessage);
  } else { %>
  <?xml version="1.0" encoding="utf-8"?>
  <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
      <delete_business generic="2.0" xmlns="urn:uddi-org:api_v2">
        <authInfo>*****</authInfo>
        <businessKey>*****</businessKey>
      </delete_business>
    </soapenv:Body>
  </soapenv:Envelope>
  <% } %>
  </textarea>
  <p>
  <input type="hidden" name="request_name" value=<%=requestName%>>
  <input type="hidden" name="request_type" value=<%=requestType%>>
  <input type=submit name="submit_button" value="Submit">
  <input type=submit name="reset_button" value="Reset">
  </p>
  <textarea class=msgs id=soap_response name=soap_response rows=20 cols=75 wrap=off><%
  String responseMessage = (String)session.getAttribute(responseKey);
  if (responseMessage != null) {
    out.print(responseMessage);
  } %>
  </textarea>
  </form>
  
  <jsp:include page="footer.html" />
  
  
  1.1                  ws-juddi/webapp/console/add_publisherAssertions.jsp
  
  Index: add_publisherAssertions.jsp
  ===================================================================
  <jsp:include page="header.html" />
  
  <%
     String requestName = "add_publisherAssertions";
     String requestType = "publish";
     String requestKey = requestName+":request";
     String responseKey = requestName+":response";
  %>
  
  <form method="post" action="controller.jsp">
  <textarea class=msgs id=soap_request name=soap_request rows=15 cols=75 wrap=off><%
  String requestMessage = (String)session.getAttribute(requestKey);
  if (requestMessage != null) {
    out.print(requestMessage);
  } else { %>
  <?xml version="1.0" encoding="utf-8"?>
  <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
      <add_publisherAssertions generic="2.0" xmlns="urn:uddi-org:api_v2" >
        <authInfo>*****</authInfo>
        <publisherAssertion>
          <fromKey>*****</fromKey>
          <toKey>*****</toKey>
          <keyedReference tModelKey="*****" keyName="*****" keyValue="*****" />
        </publisherAssertion>
      </add_publisherAssertions>
    </soapenv:Body>
  </soapenv:Envelope>
  <% } %>
  </textarea>
  <p>
  <input type="hidden" name="request_name" value=<%=requestName%>>
  <input type="hidden" name="request_type" value=<%=requestType%>>
  <input type=submit name="submit_button" value="Submit">
  <input type=submit name="reset_button" value="Reset">
  </p>
  <textarea class=msgs id=soap_response name=soap_response rows=20 cols=75 wrap=off><%
  String responseMessage = (String)session.getAttribute(responseKey);
  if (responseMessage != null) {
    out.print(responseMessage);
  } %>
  </textarea>
  </form>
  
  <jsp:include page="footer.html" />
  
  
  1.1                  ws-juddi/webapp/console/set_publisherAssertions.jsp
  
  Index: set_publisherAssertions.jsp
  ===================================================================
  <jsp:include page="header.html" />
  
  <%
     String requestName = "set_publisherAssertions";
     String requestType = "publish";
     String requestKey = requestName+":request";
     String responseKey = requestName+":response";
  %>
  
  <form method="post" action="controller.jsp">
  <textarea class=msgs id=soap_request name=soap_request rows=15 cols=75 wrap=off><%
  String requestMessage = (String)session.getAttribute(requestKey);
  if (requestMessage != null) {
    out.print(requestMessage);
  } else { %>
  <?xml version="1.0" encoding="utf-8"?>
  <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
      <set_publisherAssertions generic="2.0" xmlns="urn:uddi-org:api_v2">
        <authInfo>*****</authInfo>
        <publisherAssertion>
          <fromKey>*****</fromKey>
          <toKey>*****</toKey>
          <keyedReference tModelKey="*****" keyName="*****" keyValue="*****" />
        </publisherAssertion>
      </set_publisherAssertions>
    </soapenv:Body>
  </soapenv:Envelope>
  <% } %>
  </textarea>
  <p>
  <input type="hidden" name="request_name" value=<%=requestName%>>
  <input type="hidden" name="request_type" value=<%=requestType%>>
  <input type=submit name="submit_button" value="Submit">
  <input type=submit name="reset_button" value="Reset">
  </p>
  <textarea class=msgs id=soap_response name=soap_response rows=20 cols=75 wrap=off><%
  String responseMessage = (String)session.getAttribute(responseKey);
  if (responseMessage != null) {
    out.print(responseMessage);
  } %>
  </textarea>
  </form>
  
  <jsp:include page="footer.html" />
  
  
  1.1                  ws-juddi/webapp/console/index.jsp
  
  Index: index.jsp
  ===================================================================
  <jsp:include page="header.html" />
  
  To do.
  
  <jsp:include page="footer.html" />
  
  
  1.1                  ws-juddi/webapp/console/get_tModelDetail.jsp
  
  Index: get_tModelDetail.jsp
  ===================================================================
  <jsp:include page="header.html" />
  
  <%
     String requestName = "get_tModelDetail";
     String requestType = "inquiry";
     String requestKey = requestName+":request";
     String responseKey = requestName+":response";
  %>
  
  <form method="post" action="controller.jsp">
  <textarea class=msgs id=soap_request name=soap_request rows=15 cols=75 wrap=off><%
  String requestMessage = (String)session.getAttribute(requestKey);
  if (requestMessage != null) {
    out.print(requestMessage);
  } else { %>
  <?xml version="1.0" encoding="utf-8"?>
  <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
      <get_tModelDetail generic="2.0" xmlns="urn:uddi-org:api_v2">
        <tModelKey>*****</tModelKey>
      </get_tModelDetail>
    </soapenv:Body>
  </soapenv:Envelope>
  <% } %>
  </textarea>
  <p>
  <input type="hidden" name="request_name" value=<%=requestName%>>
  <input type="hidden" name="request_type" value=<%=requestType%>>
  <input type=submit name="submit_button" value="Submit">
  <input type=submit name="reset_button" value="Reset">
  </p>
  <textarea class=msgs id=soap_response name=soap_response rows=20 cols=75 wrap=off><%
  String responseMessage = (String)session.getAttribute(responseKey);
  if (responseMessage != null) {
    out.print(responseMessage);
  } %>
  </textarea>
  </form>
  
  <jsp:include page="footer.html" />
  
  
  1.3       +1 -0      ws-juddi/webapp/index.html
  
  Index: index.html
  ===================================================================
  RCS file: /home/cvs/ws-juddi/webapp/index.html,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- index.html	4 Mar 2005 01:21:44 -0000	1.2
  +++ index.html	11 Mar 2005 09:26:53 -0000	1.3
  @@ -13,6 +13,7 @@
   <h3><em>Welcome</em> to jUDDI!</h3>
   <ul>
     <li><a href="happyjuddi.jsp">Validate</a> the local installation's configuration</li>
  +  <li>Have a look at the new <a href="console">jUDDI Console</a> <strong>(Beta)</strong></li>
     <li><a href="http://ws.apache.org/juddi/">Visit</a> the Apache-jUDDI Home Page</li>
   </ul>
   <hr>
  
  
  

Mime
View raw message