You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@juddi.apache.org by sv...@apache.org on 2006/10/29 16:45:11 UTC
svn commit: r468925 [3/7] - in /webservices/juddi/extras: ./ browser/
browser/web-gui/ browser/web-gui/images/ jbossauthenticator/
jbossauthenticator/src/ jbossauthenticator/src/org/
jbossauthenticator/src/org/apache/ jbossauthenticator/src/org/apache/...
Added: webservices/juddi/extras/browser/web-gui/styles.css
URL: http://svn.apache.org/viewvc/webservices/juddi/extras/browser/web-gui/styles.css?view=auto&rev=468925
==============================================================================
--- webservices/juddi/extras/browser/web-gui/styles.css (added)
+++ webservices/juddi/extras/browser/web-gui/styles.css Sun Oct 29 07:45:08 2006
@@ -0,0 +1,264 @@
+BODY {
+ FONT-SIZE: 12px;
+ FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif;
+ BACKGROUND-COLOR: #ffffff;
+ color: #003366;
+ }
+
+.title {
+ font-size: 20px;
+ font-weight: bold;
+ font-family: Arial, Helvetica, sans-serif;
+}
+
+.titlesmall {
+ font-size: 14px;
+ font-weight: bold;
+ font-style: italic;
+ color: #336699;
+ font-family: Arial, Helvetica, sans-serif;
+}
+
+.headline {
+ font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
+ font-size: 16px;
+ font-weight: bolder;
+ font-variant: small-caps;
+ color: #FF9933;
+ margin-left: 4px;
+}
+
+.status {
+ font-size: 10px;
+ color: #999999;
+ font-weight: bold;
+ padding-left: 4px;
+}
+
+.td {
+ padding-left: 2px;
+}
+
+.head {
+ font-size: 11px;
+ font-weight: bold;
+ color: #ffffff;
+ line-height: 22px;
+ margin-top: 25px;
+ padding-left: 2px;
+}
+
+.subheadform {
+ font-size: 11px;
+ font-weight: bold;
+ color: #003366;
+ line-height: 22px;
+ margin-top: 25px;
+}
+
+TABLE, TD {
+ FONT-SIZE: 10px;
+ FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif
+ color: #003366;
+ line-height: 18px;
+ }
+
+A {
+ COLOR: #003366;
+ TEXT-DECORATION: underline;
+ }
+
+A:hover {
+ TEXT-DECORATION: none;
+ }
+
+.orangebold {
+ COLOR: #FFCC66;
+ font-size: 10px;
+ font-weight: bold;
+ }
+
+A.nav {
+ COLOR: #ffffff;
+ TEXT-DECORATION: none;
+ font-size: 10px;
+ font-weight: bold;
+ }
+
+A.nav:hover {
+ COLOR: #FFCC66;
+ TEXT-DECORATION: none;
+ }
+
+A.subnav {
+ COLOR: #FFFFFF;
+ TEXT-DECORATION: none;
+ font-size: 10px;
+ font-weight: 200;
+ padding-left: 5px;
+ }
+
+A.subnav:hover {
+ COLOR: #FFCC66;
+ TEXT-DECORATION: none;
+ }
+
+.input30 {
+ font-size: 10px;
+ width: 100px;
+ border: solid;
+ border-width: 1px;
+ border-color: #cccccc;
+ background-color: #eeeeee;
+ font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
+ color: #003366;
+ padding-left: 3px;
+}
+
+.input60 {
+ font-size: 10px;
+ width: 170px;
+ border: solid;
+ border-width: 1px;
+ border-color: #cccccc;
+ background-color: #eeeeee;
+ font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
+ color: #003366;
+ padding-left: 3px;
+}
+
+.input100 {
+ font-size: 10px;
+ width: 250px;
+ border: solid;
+ border-width: 1px;
+ border-color: #cccccc;
+ background-color: #eeeeee;
+ font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
+ color: #003366;
+ padding-left: 3px;
+}
+
+
+.input120 {
+ font-size: 10px;
+ width: 300px;
+ border: solid;
+ border-width: 1px;
+ border-color: #cccccc;
+ background-color: #eeeeee;
+ font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
+ color: #003366;
+ padding-left: 3px;
+}
+
+.input160 {
+ font-size: 10px;
+ width: 400px;
+ border: solid;
+ border-width: 1px;
+ border-color: #cccccc;
+ background-color: #eeeeee;
+ font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
+ color: #003366;
+ padding-left: 3px;
+}
+
+.input200 {
+ font-size: 10px;
+ width: 420px;
+ border: solid;
+ border-width: 1px;
+ border-color: #cccccc;
+ background-color: #eeeeee;
+ font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
+ color: #003366;
+ padding-left: 3px;
+}
+
+select {
+ font-size: 10px;
+ border: solid;
+ border-width: 1px;
+ border-color: #cccccc;
+ background-color: #eeeeee;
+ font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
+ color: #003366;
+}
+
+.checkbox {
+ width: 20px;
+ font-size: 10px;
+ color: #003366;
+ background-color: #000000;
+}
+
+.select40 {
+ width: 50px;
+}
+.select60 {
+ width: 70px;
+}
+.select80 {
+ width: 100px;
+}
+
+.button {
+ width: 80px;
+ height: auto;
+ background-color: #ff9966;
+ color: #ffffff;
+ padding: 1px;
+ font-weight: bolder;
+ font-size: 11px;
+ text-align: center;
+ font-family: Arial, Helvetica, sans-serif;
+}
+
+.button50 {
+ width: 50px;
+ height: auto;
+ background-color: #ff9966;
+ color: #ffffff;
+ padding: 1px;
+ font-weight: bolder;
+ font-size: 11px;
+ text-align: center;
+ font-family: Arial, Helvetica, sans-serif;
+}
+
+.button200 {
+ width: 150px;
+ height: auto;
+ background-color: #ff9966;
+ color: #ffffff;
+ padding: 1px;
+ font-weight: bolder;
+ font-size: 11px;
+ text-align: center;
+ font-family: Arial, Helvetica, sans-serif;
+}
+
+.activea {
+ COLOR: #FFCC66;
+ TEXT-DECORATION: none;
+ font-size: 10px;
+ font-weight: 200;
+ padding-left: 5px;
+ }
+
+.detaillistnumber {
+ font-size: 11px;
+ font-weight: 900;
+ color: #ffffff;
+}
+
+.required {
+ color: #ff9933;
+}
+
+hr {
+ border-color: #31659C;
+ width: 95%;
+ line-height: 1px;
+}
\ No newline at end of file
Added: webservices/juddi/extras/browser/web-gui/tm_addTModel.xsl
URL: http://svn.apache.org/viewvc/webservices/juddi/extras/browser/web-gui/tm_addTModel.xsl?view=auto&rev=468925
==============================================================================
--- webservices/juddi/extras/browser/web-gui/tm_addTModel.xsl (added)
+++ webservices/juddi/extras/browser/web-gui/tm_addTModel.xsl Sun Oct 29 07:45:08 2006
@@ -0,0 +1,167 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:fo="http://www.w3.org/1999/XSL/Format"
+ xmlns:uddi="urn:uddi-org:api_v2"
+ xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
+
+<xsl:param name="addTModel">leer</xsl:param>
+<xsl:param name="TModels">leer</xsl:param>
+<xsl:param name="inquiryURL" select="//session/uddi/inquiryURL"/>
+<xsl:param name="publishURL" select="//session/uddi/publishURL"/>
+<xsl:param name="tModelKey" select="//soapenv:Body/uddi:tModelDetail/uddi:tModel/@tModelKey"/>
+
+<xsl:template match="text()|@*"/>
+<xsl:template match="/">
+<html>
+<head>
+ <title>tModel Add Category</title>
+ <link href="styles.css" type="text/css" rel="stylesheet"/>
+</head>
+<body leftmargin="0" topmargin="0" marginheight="0" marginwidth="0">
+ <table border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td><img src="images/transparent.gif" width="170" height="105" border="0"/></td>
+ <td>
+<!--EMBED header-->
+<xsl:copy-of select="//header/*"/>
+ </td>
+ </tr>
+<!-- STATUS -->
+ <tr>
+ <td><img src="images/transparent.gif" height="18"/></td>
+ <td valign="top" align="left" class="status"><xsl:value-of select="//session/uddi/name"/>
+<xsl:if test="//uddi:name"> / <xsl:value-of select="//uddi:name"/></xsl:if>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top" align="left">
+ <table border="0" cellpadding="0" cellspacing="1">
+ <tr>
+ <td width="170">
+<!-- EMBED navigation -->
+<xsl:copy-of select="//nav/*"/>
+ </td>
+ </tr>
+ </table>
+ </td>
+ <td valign="top" align="left">
+<!--START content-->
+ <table width="690" border="0" cellpadding="0" cellspacing="1" bgcolor="#336699">
+ <tr>
+ <td bgcolor="ffffff">
+<!-- Headline-->
+ <span class="headline">tModel Add Category<p/></span>
+ <table width="690" border="0" cellpadding="4" cellspacing="1" bgcolor="#ffffff">
+ <tr>
+ <td width="200" height="1"><img src="images/transparent.gif" width="200" height="1"/></td>
+ <td width="10"><img src="images/transparent.gif" width="10" height="1"/></td>
+ <td width="480"><img src="images/transparent.gif" width="10" height="1"/></td>
+ </tr>
+ <tr>
+ <td width="200" valign="top">tModel Name</td>
+ <td width="10"><img src="images/transparent.gif" width="10"/></td>
+ <td width="480" valign="top" bgcolor="#eeeeee"><xsl:value-of select="//uddi:name"/></td>
+ </tr>
+ <tr>
+ <td width="200" valign="top">Description</td>
+ <td width="10"><img src="images/transparent.gif" width="10"/></td>
+ <td width="480" valign="top" bgcolor="#eeeeee"><xsl:value-of select="//uddi:description"/></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ <p/>
+<!-- Added TModels -->
+ <table width="690" border="0" cellpadding="0" cellspacing="1" bgcolor="#336699">
+ <tr>
+ <td bgcolor="ffffff">
+ <table width="690" border="0" cellpadding="0" cellspacing="2" bgcolor="#ffffff">
+ <tr>
+ <td><img src="images/transparent.gif" height="4"/></td>
+ <td colspan="2" class="subheadform">TModels</td>
+ </tr>
+ <tr>
+ <td width="200" height="1"><img src="images/transparent.gif" width="200" height="1"/></td>
+ <td width="10"><img src="images/transparent.gif" width="10" height="1"/></td>
+ <td width="480"><img src="images/transparent.gif" width="460" height="1"/></td>
+ </tr>
+ <tr>
+ <td colspan="3">
+ <table width="100%" border="0" cellpadding="0" cellspacing="2" bgcolor="#ffffff">
+ <tr>
+ <td width="205" valign="top"><u>Name</u></td>
+ <td width="465" valign="top"><u>Value</u></td>
+ <td width="20" valign="top"></td>
+ </tr>
+<xsl:apply-templates select="//uddi:tModelInfo"/>
+ </table>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ <p/>
+ <a href="javascript:history.back();">back</a><p/>
+ </td>
+ </tr>
+ </table>
+</body>
+</html>
+</xsl:template>
+
+<xsl:template match="uddi:tModelInfo">
+ <xsl:choose>
+ <xsl:when test="position() mod 2=1">
+ <tr bgcolor="#EBF7FF">
+<form action="tm_publish_addTModel" method="post">
+<input type="hidden" name="tModelKey" value="{$tModelKey}"/>
+<input type="hidden" name="inquiryURL" value="{$inquiryURL}"/>
+<input type="hidden" name="publishURL" value="{$publishURL}"/>
+<input type="hidden" name="pipeline" value="tm_publish"/>
+<input type="hidden" name="catTModelKey" value="{@tModelKey}"/>
+ <td width="205" valign="top">
+ <xsl:choose>
+ <xsl:when test="starts-with(@tModelKey,'uuid:A035A07C-F362-44DD-8F95-E2B134BF43B4')">
+ <input type="text" name="catKeyName" value="{uddi:name}" class="input120"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <input type="hidden" name="catKeyName" value="{uddi:name}"/>
+ <xsl:value-of select="uddi:name"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td width="465" valign="top"><input type="text" value="" name="catKeyValue" class="input120"/></td>
+ <td width="20" valign="top"><input type="image" src="images/bu_select.gif"/></td>
+</form>
+ </tr>
+ </xsl:when>
+ <xsl:otherwise>
+ <tr>
+<form action="tm_publish_addTModel" method="post">
+<input type="hidden" name="tModelKey" value="{$tModelKey}"/>
+<input type="hidden" name="inquiryURL" value="{$inquiryURL}"/>
+<input type="hidden" name="publishURL" value="{$publishURL}"/>
+<input type="hidden" name="pipeline" value="tm_publish"/>
+<input type="hidden" name="catTModelKey" value="{@tModelKey}"/>
+ <td width="205" valign="top">
+ <xsl:choose>
+ <xsl:when test="starts-with(@tModelKey,'uuid:A035A07C-F362-44DD-8F95-E2B134BF43B4')">
+ <input type="text" name="catKeyName" value="{uddi:name}" class="input120"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <input type="hidden" name="catKeyName" value="{uddi:name}"/>
+ <xsl:value-of select="uddi:name"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td width="465" valign="top"><input type="text" value="" name="catKeyValue" class="input120"/></td>
+ <td width="20" valign="top"><input type="image" src="images/bu_select.gif"/></td>
+</form>
+ </tr>
+ </xsl:otherwise>
+ </xsl:choose>
+</xsl:template>
+</xsl:stylesheet>
Added: webservices/juddi/extras/browser/web-gui/tm_find.xsp
URL: http://svn.apache.org/viewvc/webservices/juddi/extras/browser/web-gui/tm_find.xsp?view=auto&rev=468925
==============================================================================
--- webservices/juddi/extras/browser/web-gui/tm_find.xsp (added)
+++ webservices/juddi/extras/browser/web-gui/tm_find.xsp Sun Oct 29 07:45:08 2006
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsp:page language="java"
+ xmlns:xsp="http://apache.org/xsp"
+ xmlns:xsp-request="http://apache.org/xsp/request/2.0"
+ xmlns:soap="http://apache.org/xsp/soap/3.0"
+ xmlns:xscript="http://apache.org/xsp/xscript/1.0"
+ xmlns:log="http://apache.org/xsp/log/2.0"
+ xmlns:session="http://apache.org/cocoon/session/1.0"
+ xmlns:cinclude="http://apache.org/cocoon/include/1.0">
+ <content>
+ <soap:call>
+ <soap:url><xsp-request:get-parameter name="inquiryURL"/></soap:url>
+ <get_tModelDetail generic="2.0" xmlns="urn:uddi-org:api_v2">
+ <tModelKey><xsp-request:get-parameter name="tModelKey"/></tModelKey>
+ </get_tModelDetail>
+ </soap:call>
+ <session:getxml context="mycontext" path="/"/>
+ </content>
+</xsp:page>
Added: webservices/juddi/extras/browser/web-gui/tm_getsession.xml
URL: http://svn.apache.org/viewvc/webservices/juddi/extras/browser/web-gui/tm_getsession.xml?view=auto&rev=468925
==============================================================================
--- webservices/juddi/extras/browser/web-gui/tm_getsession.xml (added)
+++ webservices/juddi/extras/browser/web-gui/tm_getsession.xml Sun Oct 29 07:45:08 2006
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<content
+ xmlns:session="http://apache.org/cocoon/session/1.0">
+
+ <session:getxml context="mycontext" path="/"/>
+</content>
Added: webservices/juddi/extras/browser/web-gui/tm_input.xsl
URL: http://svn.apache.org/viewvc/webservices/juddi/extras/browser/web-gui/tm_input.xsl?view=auto&rev=468925
==============================================================================
--- webservices/juddi/extras/browser/web-gui/tm_input.xsl (added)
+++ webservices/juddi/extras/browser/web-gui/tm_input.xsl Sun Oct 29 07:45:08 2006
@@ -0,0 +1,241 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:fo="http://www.w3.org/1999/XSL/Format"
+ xmlns:uddi="urn:uddi-org:api_v2"
+ xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
+
+<xsl:param name="operation">create</xsl:param>
+<xsl:param name="headline">TModel Input</xsl:param>
+<xsl:param name="TModels">leer</xsl:param>
+
+<xsl:template match="text()|@*"/>
+<xsl:template match="/">
+<html>
+<head>
+ <title>TModel Input</title>
+ <link href="styles.css" type="text/css" rel="stylesheet"/>
+ <SCRIPT LANGUAGE="JavaScript">
+ function DoCheck(){
+ if(document.tm_input.keyName.value == ""){
+ alert("Please fill in the TModel Name!");
+ document.tm_input.keyName.focus();
+ return false;
+ }
+ return true;
+ }
+ </SCRIPT>
+</head>
+<body leftmargin="0" topmargin="0" marginheight="0" marginwidth="0">
+ <table border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td><img src="images/transparent.gif" width="170" height="105" border="0"/></td>
+ <td>
+<!--EMBED header-->
+<xsl:copy-of select="//header/*"/>
+ </td>
+ </tr>
+<!-- STATUS -->
+ <tr>
+ <td><img src="images/transparent.gif" height="18"/></td>
+ <td valign="top" align="left" class="status"><xsl:value-of select="//session/uddi/name"/></td>
+ </tr>
+ <tr>
+ <td valign="top" align="left">
+ <table border="0" cellpadding="0" cellspacing="1">
+ <tr>
+ <td width="170">
+<!-- EMBED navigation -->
+<xsl:copy-of select="//nav/*"/>
+ </td>
+ </tr>
+ </table>
+ </td>
+ <td valign="top" align="left">
+<!--START content-->
+<form action="tm_publish" method="post" name="tm_input" OnSubmit="return DoCheck();">
+<input type="hidden" name="publishURL" value="{//session/uddi/publishURL}" />
+<input type="hidden" name="tModelKey" value="{.//uddi:tModel/@tModelKey}" />
+<input type="hidden" name="pipeline" value="tm_publish" />
+ <table width="690" border="0" cellpadding="0" cellspacing="1" bgcolor="#336699">
+ <tr>
+ <td bgcolor="ffffff"><img src="images/transparent.gif" height="4"/><br/>
+<!-- Headline-->
+ <span class="headline">
+ <xsl:choose>
+ <xsl:when test="starts-with($headline,'TModel Input')">TModel Input</xsl:when>
+ <xsl:otherwise>TModel Edit</xsl:otherwise>
+ </xsl:choose><p/>
+ </span>
+ <table width="690" border="0" cellpadding="4" cellspacing="1" bgcolor="#ffffff">
+ <tr>
+ <td width="200" valign="top">TModel Name</td>
+ <td width="10" align="left" class="required">* </td>
+ <td width="480" valign="top"> <input name="keyName" value="{//uddi:name}" class="input200"/></td>
+ </tr>
+ <tr>
+ <td width="200" valign="top">TModel Description</td>
+ <td width="10"><img src="images/transparent.gif" width="10"/></td>
+ <td width="480" valign="top"> <input name="keyDesc" value="{//uddi:description}" class="input200"/></td>
+ </tr>
+ <tr>
+ <td width="200" valign="top">OverviewDoc URL</td>
+ <td width="10"><img src="images/transparent.gif" width="10"/></td>
+ <td width="480" valign="top"> <input name="url" value="{//uddi:overviewURL}" class="input200"/></td>
+ </tr>
+ <tr>
+ <td width="200" valign="top"><img src="images/transparent.gif" width="10"/></td>
+ <td width="10" align="left" class="required">* </td>
+ <td width="480" valign="top" class="required">required</td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ <p/>
+<!--Category Information-->
+<xsl:if test="//soapenv:Envelope//uddi:categoryBag/uddi:keyedReference">
+ <table width="690" border="0" cellpadding="0" cellspacing="1" bgcolor="#336699">
+ <tr>
+ <td bgcolor="ffffff"><img src="images/transparent.gif" height="4"/><br/>
+ <table width="690" border="0" cellpadding="0" cellspacing="1" bgcolor="#ffffff">
+ <tr>
+ <td><img src="images/transparent.gif" width="10" height="4"/></td>
+ <td class="subheadform">Category Information</td>
+ </tr>
+ <tr>
+ <td colspan="2">
+ <table width="680" border="0" cellpadding="0" cellspacing="1" bgcolor="#ffffff">
+ <tr>
+ <td align="left" valign="top" width="200"><u>Key Name</u></td>
+ <td align="left" valign="top" width="120"><u>Key Value</u></td>
+ <td align="right" valign="top" class="input">remove</td>
+ </tr>
+<xsl:apply-templates/>
+ </table>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+</xsl:if>
+ <table width="690" border="0" cellpadding="0" cellspacing="0" bgcolor="#ffffff">
+ <tr>
+ <td bgcolor="ffffff"><img src="images/transparent.gif" height="4"/><br/>
+ <table width="690" border="0" cellpadding="0" cellspacing="1" bgcolor="#ffffff">
+ <tr>
+<!--Button-->
+ <td valign="top" align="right">
+ <xsl:choose>
+ <xsl:when test="starts-with($operation,'create')">
+ <input type="submit" value="Create" class="button"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <input type="submit" value="Update" class="button"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+</form>
+ <p/>
+ <xsl:choose>
+ <xsl:when test="starts-with($TModels,'leer')"></xsl:when>
+ <xsl:otherwise>
+<!--list TModel-->
+ <table width="690" border="0" cellpadding="0" cellspacing="1" bgcolor="#336699">
+ <tr>
+ <td bgcolor="ffffff">
+ <table width="690" border="0" cellpadding="0" cellspacing="2" bgcolor="#ffffff">
+ <tr>
+ <td width="200">
+<img src="images/transparent.gif" height="4"/>
+</td>
+ <td colspan="3" class="subheadform" align="left">Add TModel</td>
+ </tr>
+ <tr>
+ <td width="200" height="1"><img src="images/transparent.gif" width="200" height="1"/></td>
+ <td width="10"><img src="images/transparent.gif" width="10" height="1"/></td>
+ <td width="460"><img src="images/transparent.gif" width="10" height="1"/></td>
+ <td width="20"><img src="images/transparent.gif" width="10" height="1"/></td>
+ </tr>
+<form action="tm_addTModel" method="post">
+<input type="hidden" name="inquiryURL" value="{//session/uddi/inquiryURL}"/>
+<input type="hidden" name="tModelKey" value="{.//uddi:tModel/@tModelKey}"/>
+ <tr>
+ <td width="200">Search</td>
+ <td width="10" align="right"><img src="images/transparent.gif" width="10"/></td>
+ <td width="460"><input type="text" name="query" value="%" class="input200"/></td>
+ <td width="20"><input type="image" value="Search" alt="Search TModel" src="images/bu_search.gif"/></td>
+ </tr>
+</form>
+ </table>
+ </td>
+ </tr>
+ </table>
+ </xsl:otherwise>
+ </xsl:choose>
+ <p/>
+ <a href="javascript:history.back();">back</a>
+ <p/>
+ </td>
+ </tr>
+ </table>
+</body>
+</html>
+</xsl:template>
+
+<xsl:template match="//soapenv:Envelope//uddi:categoryBag/uddi:keyedReference">
+ <xsl:choose>
+ <xsl:when test="position() mod 2=1">
+ <tr>
+<input type="hidden" name="catTModelKey" value="{@tModelKey}"/>
+ <td width="200">
+ <xsl:choose>
+ <xsl:when test="starts-with(@tModelKey,'uuid:A035A07C-F362-44DD-8F95-E2B134BF43B4')">
+ <input type="text" name="catKeyName" value="{@keyName}" class="input100"/>
+ </xsl:when>
+ <xsl:otherwise>
+<input type="hidden" name="catKeyName" value="{@keyName}"/>
+ <xsl:value-of select="@keyName"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td><input type="text" name="catKeyValue" value="{@keyValue}" class="input100"/></td>
+ <td align="right">
+ <input type="checkbox" name="TM_remove">
+ <xsl:attribute name="value"><xsl:number value="position()"/></xsl:attribute>
+ </input>
+ </td>
+ </tr>
+ </xsl:when>
+ <xsl:otherwise>
+ <tr>
+<input type="hidden" name="catTModelKey" value="{@tModelKey}"/>
+ <td width="200">
+ <xsl:choose>
+ <xsl:when test="starts-with(@tModelKey,'uuid:A035A07C-F362-44DD-8F95-E2B134BF43B4')">
+ <input type="text" name="catKeyName" value="{@keyName}" class="input100"/>
+ </xsl:when>
+ <xsl:otherwise>
+<input type="hidden" name="catKeyName" value="{@keyName}"/>
+ <xsl:value-of select="@keyName"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td><input type="text" name="catKeyValue" value="{@keyValue}" class="input100"/></td>
+ <td align="right">
+ <input type="checkbox" name="TM_remove">
+ <xsl:attribute name="value"><xsl:number value="position()"/></xsl:attribute>
+ </input>
+ </td>
+ </tr>
+ </xsl:otherwise>
+ </xsl:choose>
+</xsl:template>
+
+</xsl:stylesheet>
\ No newline at end of file
Added: webservices/juddi/extras/browser/web-gui/tm_list.xsp
URL: http://svn.apache.org/viewvc/webservices/juddi/extras/browser/web-gui/tm_list.xsp?view=auto&rev=468925
==============================================================================
--- webservices/juddi/extras/browser/web-gui/tm_list.xsp (added)
+++ webservices/juddi/extras/browser/web-gui/tm_list.xsp Sun Oct 29 07:45:08 2006
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsp:page language="java"
+ xmlns:xsp="http://apache.org/xsp"
+ xmlns:xsp-request="http://apache.org/xsp/request/2.0"
+ xmlns:soap="http://apache.org/xsp/soap/3.0"
+ xmlns:xscript="http://apache.org/xsp/xscript/1.0"
+ xmlns:log="http://apache.org/xsp/log/2.0"
+ xmlns:session="http://apache.org/cocoon/session/1.0"
+ xmlns:cinclude="http://apache.org/cocoon/include/1.0">
+ <content>
+ <soap:call>
+ <soap:url><xsp-request:get-parameter name="inquiryURL"/></soap:url>
+ <find_tModel generic="2.0" xmlns="urn:uddi-org:api_v2">
+ <findQualifiers>
+ <findQualifier>caseSensitiveMatch</findQualifier>
+ </findQualifiers>
+ <name><xsp-request:get-parameter name="query"/></name>
+ </find_tModel>
+ </soap:call>
+ <session:getxml context="mycontext" path="/"/>
+ </content>
+</xsp:page>
Added: webservices/juddi/extras/browser/web-gui/tm_publish.xsp
URL: http://svn.apache.org/viewvc/webservices/juddi/extras/browser/web-gui/tm_publish.xsp?view=auto&rev=468925
==============================================================================
--- webservices/juddi/extras/browser/web-gui/tm_publish.xsp (added)
+++ webservices/juddi/extras/browser/web-gui/tm_publish.xsp Sun Oct 29 07:45:08 2006
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsp:page language="java"
+ xmlns:xsp="http://apache.org/xsp"
+ xmlns:xsp-request="http://apache.org/xsp/request/2.0"
+ xmlns:soap="http://apache.org/xsp/soap/3.0"
+ xmlns:xscript="http://apache.org/xsp/xscript/1.0"
+ xmlns:log="http://apache.org/xsp/log/2.0"
+ xmlns:session="http://apache.org/cocoon/session/1.0">
+ <page>
+ <soap:call>
+ <soap:url><xsp-request:get-parameter name="publishURL"/></soap:url>
+ <save_tModel generic="2.0" xmlns="urn:uddi-org:api_v2">
+ <authInfo><xsp-request:get-parameter name="authInfo"/></authInfo>
+ <tModel>
+ <xsp:logic>
+ String vTModelKey = <xsp-request:get-parameter name="tModelKey"/> ;
+ <![CDATA[
+ if (vTModelKey!=null) {
+ ]]>
+ <xsp:attribute name="tModelKey"><xsp-request:get-parameter name="tModelKey"/></xsp:attribute>
+ <![CDATA[
+ }
+ ]]>
+ </xsp:logic>
+ <name><xsp-request:get-parameter name="keyName"/></name>
+ <description><xsp-request:get-parameter name="keyDesc"/></description>
+ <overviewDoc>
+ <overviewURL><xsp-request:get-parameter name="url"/></overviewURL>
+ </overviewDoc>
+ <categoryBag>
+ <xsp:logic>
+ String vName[] = <xsp-request:get-parameter-values name="catKeyName" as="array"/>;
+ String vValue[] = <xsp-request:get-parameter-values name="catKeyValue" as="array"/>;
+ String vtModelKey[] = <xsp-request:get-parameter-values name="catTModelKey" as="array"/>;
+ String vtModelRemove[] = <xsp-request:get-parameter-values name="TM_remove" as="array"/>;
+ String categories="";
+ int j=0;
+ int jmax=0;
+ <![CDATA[
+ if (vtModelRemove!=null)
+ jmax=vtModelRemove.length;
+ int i=0;
+ if (vName!=null && vName.length > 0) {
+ for(i=0; i < vName.length; i++) {
+ for(j=0; j<jmax;j++)
+ if (java.lang.Integer.parseInt(vtModelRemove[j])==i+1) break;
+ if (j==jmax) {
+ ]]>
+ <keyedReference>
+ <xsp:attribute name="keyName"><xsp:expr>vName[i]</xsp:expr></xsp:attribute>
+ <xsp:attribute name="keyValue"><xsp:expr>vValue[i]</xsp:expr></xsp:attribute>
+ <xsp:attribute name="tModelKey"><xsp:expr>vtModelKey[i]</xsp:expr></xsp:attribute>
+ </keyedReference>
+ <![CDATA[
+ }
+ }
+ }]]>
+ </xsp:logic>
+ </categoryBag>
+ </tModel>
+ </save_tModel>
+ </soap:call>
+ </page>
+ <session:getxml context="mycontext" path="/"/>
+
+</xsp:page>
Added: webservices/juddi/extras/browser/web-gui/tm_publish_addTModel.xsl
URL: http://svn.apache.org/viewvc/webservices/juddi/extras/browser/web-gui/tm_publish_addTModel.xsl?view=auto&rev=468925
==============================================================================
--- webservices/juddi/extras/browser/web-gui/tm_publish_addTModel.xsl (added)
+++ webservices/juddi/extras/browser/web-gui/tm_publish_addTModel.xsl Sun Oct 29 07:45:08 2006
@@ -0,0 +1,68 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:fo="http://www.w3.org/1999/XSL/Format"
+ xmlns:uddi="urn:uddi-org:api_v2"
+ xmlns:cinclude="http://apache.org/cocoon/include/1.0"
+ xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
+
+<xsl:template match="text()|@*"/>
+<xsl:template match="/">
+<page>
+ <xsl:copy-of select="//authInfo"/>
+ <content>
+ <cinclude:includexml>
+ <cinclude:src>cocoon:/tm_publish_content</cinclude:src>
+ <xsl:copy-of select="//content/cinclude:includexml/cinclude:configuration"/>
+ <cinclude:parameters>
+ <xsl:copy-of select="//content/cinclude:includexml/cinclude:parameters/cinclude:parameter"/>
+ <xsl:apply-templates select="//content[soapenv:Envelope//uddi:tModelDetail]" mode="uddi"/>
+ </cinclude:parameters>
+ </cinclude:includexml>
+ <xsl:copy-of select="//content[cinclude:includexml]/session"/>
+ </content>
+ <xsl:copy-of select="//nav"/>
+ <xsl:copy-of select="//header"/>
+</page>
+</xsl:template>
+
+<xsl:template match="content" mode="uddi">
+<!--cinclude:parameter>
+<cinclude:name="businessKey"/>
+<cinclude:value="{//uddi:businessEntity/@businessKey}"/>
+</cinclude:parameter-->
+ <cinclude:parameter>
+ <cinclude:name>keyName</cinclude:name>
+ <cinclude:value><xsl:value-of select="//uddi:tModel/uddi:name"/></cinclude:value>
+ </cinclude:parameter>
+ <cinclude:parameter>
+ <cinclude:name>keyDesc</cinclude:name>
+ <cinclude:value><xsl:value-of select="//uddi:description"/></cinclude:value>
+ </cinclude:parameter>
+ <cinclude:parameter>
+ <cinclude:name>url</cinclude:name>
+ <cinclude:value><xsl:value-of select="//uddi:overviewDoc/uddi:overviewURL"/></cinclude:value>
+ </cinclude:parameter>
+ <cinclude:parameter>
+ <cinclude:name>urlDesc</cinclude:name>
+ <cinclude:value><xsl:value-of select="//uddi:overviewDoc/uddi:description"/></cinclude:value>
+ </cinclude:parameter>
+ <xsl:apply-templates select="//uddi:categoryBag/*"/>
+</xsl:template>
+
+<xsl:template match="uddi:keyedReference">
+ <cinclude:parameter>
+ <cinclude:name>catTModelKey</cinclude:name>
+ <cinclude:value><xsl:value-of select="@tModelKey"/></cinclude:value>
+ </cinclude:parameter>
+ <cinclude:parameter>
+ <cinclude:name>catKeyName</cinclude:name>
+ <cinclude:value><xsl:value-of select="@keyName"/></cinclude:value>
+ </cinclude:parameter>
+ <cinclude:parameter>
+ <cinclude:name>catKeyValue</cinclude:name>
+ <cinclude:value><xsl:value-of select="@keyValue"/></cinclude:value>
+ </cinclude:parameter>
+</xsl:template>
+
+</xsl:stylesheet>
\ No newline at end of file
Added: webservices/juddi/extras/browser/web-gui/tm_search.xsl
URL: http://svn.apache.org/viewvc/webservices/juddi/extras/browser/web-gui/tm_search.xsl?view=auto&rev=468925
==============================================================================
--- webservices/juddi/extras/browser/web-gui/tm_search.xsl (added)
+++ webservices/juddi/extras/browser/web-gui/tm_search.xsl Sun Oct 29 07:45:08 2006
@@ -0,0 +1,152 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:fo="http://www.w3.org/1999/XSL/Format"
+ xmlns:uddi="urn:uddi-org:api_v2">
+
+<xsl:template match="text()|@*"/>
+<xsl:template match="/">
+<html>
+<head>
+ <title>TModel Search</title>
+ <link href="styles.css" type="text/css" rel="stylesheet"/>
+</head>
+<body leftmargin="0" topmargin="0" marginheight="0" marginwidth="0">
+ <table border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td><img src="images/transparent.gif" width="170" height="105" border="0"/></td>
+ <td>
+<!--EMBED header-->
+<xsl:copy-of select="//header/*"/>
+ </td>
+ </tr>
+<!-- STATUS -->
+ <tr>
+ <td><img src="images/transparent.gif" height="18"/></td>
+ <td valign="top" align="left" class="status"><xsl:value-of select="//session/uddi/name"/></td>
+ </tr>
+ <tr>
+ <td valign="top" align="left">
+ <table border="0" cellpadding="0" cellspacing="1">
+ <tr>
+ <td width="170">
+<!-- EMBED navigation -->
+<xsl:copy-of select="//nav/*"/>
+ </td>
+ </tr>
+ </table>
+ </td>
+ <td valign="top" align="left">
+<!--START content-->
+<form action="tm_searchresult">
+<input type="hidden" name="inquiryURL" value="{//inquiryURL}"/>
+ <table width="690" border="0" cellpadding="0" cellspacing="1" bgcolor="#336699">
+ <tr>
+ <td bgcolor="ffffff"><img src="images/transparent.gif" height="4"/><br/>
+<!-- Headline-->
+ <span class="headline">TModel Search<p/></span>
+ <table width="690" border="0" cellpadding="4" cellspacing="1" bgcolor="#ffffff">
+ <tr>
+ <td width="200" valign="top">TModel Name</td>
+ <td width="10"><img src="images/transparent.gif" width="10"/></td>
+ <td width="480" valign="top"><input type="text" name="query_name" value="%" class="input200"/></td>
+ </tr>
+ <tr>
+ <td width="200" valign="top"><img src="images/transparent.gif" width="10"/></td>
+ <td width="10"><img src="images/transparent.gif" width="10"/></td>
+ <td width="480" valign="top">
+ <select name="findQualifier" class="select40">
+ <option value="orAllKeys" selected="">OR</option>
+ <option value="andAllKeys">AND</option>
+ </select>
+ </td>
+ </tr>
+<xsl:if test="//session/tModelSearch/categoryBag/keyedReference">
+ <tr>
+ <td colspan="3">
+ <table width="686" border="0" cellpadding="0" cellspacing="2" bgcolor="#ffffff">
+ <tr>
+ <td width="400" valign="top"> <u>Name</u></td>
+ <td width="286" valign="top"> <u>Value</u></td>
+ </tr>
+<xsl:apply-templates select="//session/tModelSearch/categoryBag/keyedReference"/>
+ </table>
+ </td>
+ </tr>
+</xsl:if>
+ </table>
+ </td>
+ </tr>
+ </table>
+ <table width="690" border="0" cellpadding="0" cellspacing="1" bgcolor="#ffffff">
+ <tr>
+ <td bgcolor="ffffff"><img src="images/transparent.gif" height="4"/><br/>
+ <table width="690" border="0" cellpadding="0" cellspacing="0" bgcolor="#ffffff">
+ <tr>
+<!--Button-->
+ <td valign="top" align="right"><input type="submit" value="Search" class="button"/></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+</form>
+<!--END content-->
+ <table width="690" border="0" cellpadding="0" cellspacing="1" bgcolor="#336699">
+ <tr>
+ <td bgcolor="ffffff">
+ <table width="690" border="0" cellpadding="0" cellspacing="2" bgcolor="#ffffff">
+ <tr>
+ <td width="200"><img src="images/transparent.gif" height="4"/></td>
+ <td colspan="3" class="subheadform" align="left">Add TModel</td>
+ </tr>
+ <tr>
+ <td width="200" height="1"><img src="images/transparent.gif" width="200" height="1"/></td>
+ <td width="10"><img src="images/transparent.gif" width="10" height="1"/></td>
+ <td width="460"><img src="images/transparent.gif" width="10" height="1"/></td>
+ <td width="20"><img src="images/transparent.gif" width="10" height="1"/></td>
+ </tr>
+<form action="tm_selectTModel" method="post">
+<input type="hidden" name="inquiryURL" value="{//session/uddi/inquiryURL}"/>
+ <tr>
+ <td width="200">Search</td>
+ <td width="10" align="right"><img src="images/transparent.gif" width="10"/></td>
+ <td width="460"><input type="text" name="query" value="%" class="input200"/></td>
+ <td width="20"><input type="image" value="Search" alt="Search TModel" src="images/bu_search.gif"/></td>
+ </tr>
+</form>
+ </table>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+</body>
+</html>
+</xsl:template>
+
+<xsl:template match="//session/tModelSearch/categoryBag/keyedReference">
+ <xsl:choose>
+ <xsl:when test="position() mod 2=1">
+ <tr bgcolor="#EBF7FF">
+<input type="hidden" name="tModelKey" value="{@tModelKey}"/>
+<input type="hidden" name="keyValue" value="{@keyValue}"/>
+<input type="hidden" name="keyName" value="{@keyName}"/>
+ <td valign="top"><xsl:value-of select="@keyName"/></td>
+ <td valign="top"><xsl:value-of select="@keyValue"/></td>
+ </tr>
+ </xsl:when>
+ <xsl:otherwise>
+ <tr bgcolor="#ffffff">
+<input type="hidden" name="tModelKey" value="{@tModelKey}"/>
+<input type="hidden" name="keyValue" value="{@keyValue}"/>
+<input type="hidden" name="keyName" value="{@keyName}"/>
+ <td valign="top"><xsl:value-of select="@keyName"/></td>
+ <td valign="top"><xsl:value-of select="@keyValue"/></td>
+ </tr>
+ </xsl:otherwise>
+ </xsl:choose>
+</xsl:template>
+
+</xsl:stylesheet>
\ No newline at end of file
Added: webservices/juddi/extras/browser/web-gui/tm_search.xsp
URL: http://svn.apache.org/viewvc/webservices/juddi/extras/browser/web-gui/tm_search.xsp?view=auto&rev=468925
==============================================================================
--- webservices/juddi/extras/browser/web-gui/tm_search.xsp (added)
+++ webservices/juddi/extras/browser/web-gui/tm_search.xsp Sun Oct 29 07:45:08 2006
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsp:page language="java"
+ xmlns:xsp="http://apache.org/xsp"
+ xmlns:xsp-request="http://apache.org/xsp/request/2.0"
+ xmlns:xsp-session-fw="http://apache.org/xsp/session-fw/1.0"
+ xmlns:soap="http://apache.org/xsp/soap/3.0"
+ xmlns:xscript="http://apache.org/xsp/xscript/1.0"
+ xmlns:log="http://apache.org/xsp/log/2.0"
+ xmlns:session="http://apache.org/cocoon/session/1.0"
+ xmlns:cinclude="http://apache.org/cocoon/include/1.0">
+ <content>
+ <soap:call>
+ <soap:url><xsp-request:get-parameter name="inquiryURL"/></soap:url>
+ <find_tModel generic="2.0" xmlns="urn:uddi-org:api_v2">
+ <findQualifiers>
+ <findQualifier>caseSensitiveMatch</findQualifier>
+ <findQualifier><xsp-request:get-parameter name="findQualifier"/></findQualifier>
+ </findQualifiers>
+ <name><xsp-request:get-parameter name="query_name"/></name>
+ <categoryBag>
+ <xsp:logic>
+ String vTModelKey[] = <xsp-request:get-parameter-values name="tModelKey" as="array"/> ;
+ String vKeyName[] = <xsp-request:get-parameter-values name="keyName" as="array"/> ;
+ String vKeyValue[] = <xsp-request:get-parameter-values name="keyValue" as="array"/> ;
+ <![CDATA[
+ if (vTModelKey!=null && vTModelKey.length > 0) {
+ for(int i=0; i < vKeyName.length; i++) {
+ ]]>
+ <keyedReference>
+ <xsp:attribute name="keyName"><xsp:expr>vKeyName[i]</xsp:expr></xsp:attribute>
+ <xsp:attribute name="keyValue"><xsp:expr>vKeyValue[i]</xsp:expr></xsp:attribute>
+ <xsp:attribute name="tModelKey"><xsp:expr>vTModelKey[i]</xsp:expr></xsp:attribute>
+ </keyedReference>
+ <![CDATA[
+ }
+ }
+ ]]>
+ </xsp:logic>
+ </categoryBag>
+ </find_tModel>
+ </soap:call>
+ <session:getxml context="mycontext" path="/"/>
+ </content>
+</xsp:page>
Added: webservices/juddi/extras/browser/web-gui/tm_search_form.xsp
URL: http://svn.apache.org/viewvc/webservices/juddi/extras/browser/web-gui/tm_search_form.xsp?view=auto&rev=468925
==============================================================================
--- webservices/juddi/extras/browser/web-gui/tm_search_form.xsp (added)
+++ webservices/juddi/extras/browser/web-gui/tm_search_form.xsp Sun Oct 29 07:45:08 2006
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<xsp:page language="java"
+ xmlns:xsp="http://apache.org/xsp"
+ xmlns:xsp-request="http://apache.org/xsp/request/2.0"
+ xmlns:soap="http://apache.org/xsp/soap/3.0"
+ xmlns:xscript="http://apache.org/xsp/xscript/1.0"
+ xmlns:log="http://apache.org/xsp/log/2.0"
+ xmlns:session="http://apache.org/cocoon/session/1.0"
+ xmlns:cinclude="http://apache.org/cocoon/include/1.0">
+ <content>
+ <xsp:logic>
+ String vTModelKey = <xsp-request:get-parameter name="tModelKey"/> ;
+ <![CDATA[
+ if (vTModelKey!=null) {
+ ]]>
+ <session:mergexml context="mycontext" path="/session/tModelSearch/categoryBag">
+ <keyedReference>
+ <xsp:attribute name="tModelKey"><xsp-request:get-parameter name="tModelKey"/></xsp:attribute>
+ <xsp:attribute name="keyName"><xsp-request:get-parameter name="keyName"/></xsp:attribute>
+ <xsp:attribute name="keyValue"><xsp-request:get-parameter name="keyValue"/></xsp:attribute>
+ </keyedReference>
+ </session:mergexml>
+ <![CDATA[
+ }
+ else {
+ ]]>
+ <session:removexml context="mycontext" path="/session/tModelSearch/categoryBag"/>
+ <![CDATA[
+ }
+ ]]>
+ </xsp:logic>
+ <session:getxml context="mycontext" path="/"/>
+ </content>
+</xsp:page>
Added: webservices/juddi/extras/browser/web-gui/tm_searchresult.xsl
URL: http://svn.apache.org/viewvc/webservices/juddi/extras/browser/web-gui/tm_searchresult.xsl?view=auto&rev=468925
==============================================================================
--- webservices/juddi/extras/browser/web-gui/tm_searchresult.xsl (added)
+++ webservices/juddi/extras/browser/web-gui/tm_searchresult.xsl Sun Oct 29 07:45:08 2006
@@ -0,0 +1,91 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:fo="http://www.w3.org/1999/XSL/Format"
+ xmlns:uddi="urn:uddi-org:api_v2"
+ xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
+
+<xsl:template match="text()|@*"/>
+<xsl:template match="/">
+<html>
+<head>
+ <title>TModel Query results</title>
+ <link href="styles.css" type="text/css" rel="stylesheet"/>
+</head>
+<body leftmargin="0" topmargin="0" marginheight="0" marginwidth="0">
+ <table border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td><img src="images/transparent.gif" width="170" height="105" border="0"/></td>
+ <td>
+<!--EMBED header-->
+<xsl:copy-of select="//header/*"/>
+ </td>
+ </tr>
+<!-- STATUS -->
+ <tr>
+ <td><img src="images/transparent.gif" height="18"/></td>
+ <td valign="top" align="left" class="status"><xsl:value-of select="//session/uddi/name"/></td>
+ </tr>
+ <tr>
+ <td valign="top" align="left">
+ <table border="0" cellpadding="0" cellspacing="1">
+ <tr>
+ <td width="170">
+<!-- EMBED navigation -->
+<xsl:copy-of select="//nav/*"/>
+ </td>
+ </tr>
+ </table>
+ </td>
+ <td valign="top" align="left">
+<!--START content-->
+ <table width="690" border="0" cellpadding="0" cellspacing="1" bgcolor="#336699">
+ <tr>
+ <td bgcolor="ffffff"><img src="images/transparent.gif" height="4"/><br/>
+ <span class="headline">TModel Query result<p/></span>
+ <table width="690" border="0" cellpadding="4" cellspacing="1" bgcolor="#ffffff">
+ <tr>
+ <td class="head" bgcolor="#999999" width="640">Name</td>
+ <td bgcolor="#999999"><img src="images/transparent.gif" height="4"/></td>
+ </tr>
+<xsl:apply-templates/>
+ </table>
+ </td>
+ </tr>
+ </table>
+ <p/>
+ <a href="javascript:history.back();">back</a>
+ <p/>
+ </td>
+ </tr>
+ </table>
+</body>
+</html>
+</xsl:template>
+
+<xsl:template match="uddi:tModelInfo">
+ <xsl:choose>
+ <xsl:when test="position() mod 2=1">
+ <tr bgcolor="#EBF7FF">
+<form action="tm_viewrecord" method="post">
+<input type="hidden" name="tModelKey" value="{@tModelKey}" />
+<input type="hidden" name="inquiryURL" value="{//session/uddi/inquiryURL}"/>
+ <td valign="top" align="left"><xsl:value-of select="uddi:name"/></td>
+ <td valign="top" align="left"><input type="image" src="images/bu_info.gif" alt="Infos" align="right"/></td>
+</form>
+ </tr>
+ </xsl:when>
+ <xsl:otherwise>
+ <tr bgcolor="#ffffff">
+<form action="tm_viewrecord" method="post">
+<input type="hidden" name="tModelKey" value="{@tModelKey}" />
+<input type="hidden" name="inquiryURL" value="{//session/uddi/inquiryURL}"/>
+ <td valign="top" align="left"><xsl:value-of select="uddi:name"/></td>
+ <td valign="top" align="left"><input type="image" src="images/bu_info.gif" alt="Infos" align="right"/></td>
+</form>
+ </tr>
+ </xsl:otherwise>
+ </xsl:choose>
+</xsl:template>
+
+</xsl:stylesheet>
\ No newline at end of file
Added: webservices/juddi/extras/browser/web-gui/tm_selectTModel.xsl
URL: http://svn.apache.org/viewvc/webservices/juddi/extras/browser/web-gui/tm_selectTModel.xsl?view=auto&rev=468925
==============================================================================
--- webservices/juddi/extras/browser/web-gui/tm_selectTModel.xsl (added)
+++ webservices/juddi/extras/browser/web-gui/tm_selectTModel.xsl Sun Oct 29 07:45:08 2006
@@ -0,0 +1,160 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:fo="http://www.w3.org/1999/XSL/Format"
+ xmlns:uddi="urn:uddi-org:api_v2">
+
+<xsl:param name="addTModel">leer</xsl:param>
+<xsl:param name="TModels">leer</xsl:param>
+<xsl:param name="inquiryURL" select="//session/uddi/inquiryURL"/>
+<xsl:param name="publishURL" select="//session/uddi/publishURL"/>
+<xsl:param name="businessKey" select="//session/businessEntity/businessKey"/>
+
+<xsl:template match="text()|@*"/>
+<xsl:template match="/">
+<html>
+<head>
+ <title>tModel Select Category</title>
+ <link href="styles.css" type="text/css" rel="stylesheet"/>
+</head>
+<body leftmargin="0" topmargin="0" marginheight="0" marginwidth="0">
+ <table border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td><img src="images/transparent.gif" width="170" height="105" border="0"/></td>
+ <td>
+<!--EMBED header-->
+<xsl:copy-of select="//header/*"/>
+ </td>
+ </tr>
+<!-- STATUS -->
+ <tr>
+ <td><img src="images/transparent.gif" height="18"/></td>
+ <td valign="top" align="left" class="status"><xsl:value-of select="//session/uddi/name"/>
+ <xsl:if test="//uddi:name"> / <xsl:value-of select="//uddi:name"/></xsl:if>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top" align="left">
+ <table border="0" cellpadding="0" cellspacing="1">
+ <tr>
+ <td width="170">
+<!-- EMBED navigation -->
+<xsl:copy-of select="//nav/*"/>
+ </td>
+ </tr>
+ </table>
+ </td>
+ <td valign="top" align="left">
+<!--START content-->
+ <table width="690" border="0" cellpadding="0" cellspacing="1" bgcolor="#336699">
+ <tr>
+ <td bgcolor="ffffff">
+<!-- Headline-->
+ <span class="headline">tModel Search Select Category TModel<p/></span>
+ <table width="690" border="0" cellpadding="4" cellspacing="1" bgcolor="#ffffff">
+ <tr>
+ <td height="1"><img src="images/transparent.gif" height="1"/></td>
+ </tr>
+<xsl:if test="//session/tModelSearch/categoryBag/keyedReference">
+ <tr>
+ <td valign="top">Selected Categories</td>
+ </tr>
+ <tr>
+ <td>
+ <table width="100%" border="0" cellpadding="0" cellspacing="2" bgcolor="#ffffff">
+ <tr>
+ <td width="205" valign="top"><u>Name</u></td>
+ <td width="465" valign="top"><u>Value</u></td>
+ <td width="20" valign="top"><img src="images/transparent.gif" height="1"/></td>
+ </tr>
+<xsl:apply-templates select="//session/tModelSearch/categoryBag/keyedReference"/>
+ </table>
+ </td>
+ </tr>
+</xsl:if>
+ <tr>
+ <td height="1"><img src="images/transparent.gif" height="1"/></td>
+ </tr>
+ <tr>
+ <td valign="top"><b>Add Category</b></td>
+ </tr>
+ <tr>
+ <td>
+ <table width="100%" border="0" cellpadding="0" cellspacing="2" bgcolor="#ffffff">
+ <tr>
+ <td width="205" valign="top"><u>Name</u></td>
+ <td width="465" valign="top"><u>Value</u></td>
+ <td width="20" valign="top"><img src="images/transparent.gif" height="1"/></td>
+ </tr>
+<xsl:apply-templates select="//uddi:tModelInfo"/>
+ </table>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ <p/>
+ <a href="javascript:history.back();">back</a>
+ <p/>
+ </td>
+ </tr>
+ </table>
+</body>
+</html>
+</xsl:template>
+
+<xsl:template match="uddi:tModelInfo">
+ <xsl:choose>
+ <xsl:when test="position() mod 2=1">
+ <tr bgcolor="#EBF7FF">
+<form action="tm_search" method="post">
+<input type="hidden" name="tModelKey" value="{@tModelKey}"/>
+ <td width="205" valign="top">
+ <xsl:choose>
+ <xsl:when test="starts-with(@tModelKey,'uuid:A035A07C-F362-44DD-8F95-E2B134BF43B4')">
+ <input type="text" name="keyName" value="{uddi:name}"/>
+ </xsl:when>
+ <xsl:otherwise>
+<input type="hidden" name="keyName" value="{uddi:name}"/>
+ <xsl:value-of select="uddi:name"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td width="465" valign="top"><input type="text" value="" name="keyValue" class="input120"/></td>
+ <td width="20" valign="top"><input type="image" src="images/bu_select.gif"/></td>
+</form>
+ </tr>
+ </xsl:when>
+ <xsl:otherwise>
+ <tr>
+<form action="tm_search" method="post">
+<input type="hidden" name="tModelKey" value="{@tModelKey}"/>
+ <td width="205" valign="top">
+ <xsl:choose>
+ <xsl:when test="starts-with(@tModelKey,'uuid:A035A07C-F362-44DD-8F95-E2B134BF43B4')">
+ <input type="text" name="keyName" value="{uddi:name}" class="input120"/>
+ </xsl:when>
+ <xsl:otherwise>
+<input type="hidden" name="keyName" value="{uddi:name}"/>
+ <xsl:value-of select="uddi:name"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td width="465" valign="top"><input type="text" value="" name="keyValue" class="input120"/></td>
+ <td width="20" valign="top"><input type="image" src="images/bu_select.gif"/></td>
+</form>
+ </tr>
+ </xsl:otherwise>
+ </xsl:choose>
+</xsl:template>
+
+<xsl:template match="//session/tModelSearch/categoryBag/keyedReference">
+ <tr>
+ <td width="205" valign="top"><xsl:value-of select="@keyName"/></td>
+ <td width="465" valign="top"><xsl:value-of select="@keyValue"/></td>
+ <td width="20" valign="top"><img src="images/transparent.gif" height="1"/></td>
+ </tr>
+</xsl:template>
+
+</xsl:stylesheet>
\ No newline at end of file
Added: webservices/juddi/extras/browser/web-gui/tm_viewrecord.xsl
URL: http://svn.apache.org/viewvc/webservices/juddi/extras/browser/web-gui/tm_viewrecord.xsl?view=auto&rev=468925
==============================================================================
--- webservices/juddi/extras/browser/web-gui/tm_viewrecord.xsl (added)
+++ webservices/juddi/extras/browser/web-gui/tm_viewrecord.xsl Sun Oct 29 07:45:08 2006
@@ -0,0 +1,146 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:fo="http://www.w3.org/1999/XSL/Format"
+ xmlns:uddi="urn:uddi-org:api_v2"
+ xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
+
+<xsl:template match="text()|@*"/>
+<xsl:template match="/">
+<html>
+<head>
+ <title>TModel View Record</title>
+ <link href="styles.css" type="text/css" rel="stylesheet"/>
+</head>
+<body leftmargin="0" topmargin="0" marginheight="0" marginwidth="0">
+ <table border="0" cellpadding="0" cellspacing="0">
+ <tr>
+ <td><img src="images/transparent.gif" width="170" height="105" border="0"/></td>
+ <td>
+<!--EMBED header-->
+<xsl:copy-of select="//header/*"/>
+ </td>
+ </tr>
+<!-- STATUS -->
+ <tr>
+ <td><img src="images/transparent.gif" height="18"/></td>
+ <td valign="top" align="left" class="status"><xsl:value-of select="//uddi:name"/></td>
+ </tr>
+ <tr>
+ <td valign="top" align="left">
+ <table border="0" cellpadding="0" cellspacing="1">
+ <tr>
+ <td width="170">
+<!-- EMBED navigation -->
+<xsl:copy-of select="//nav/*"/>
+ </td>
+ </tr>
+ </table>
+ </td>
+ <td valign="top" align="left">
+ <table width="690" border="0" cellpadding="0" cellspacing="1" bgcolor="#336699">
+ <tr>
+ <td bgcolor="ffffff"><img src="images/transparent.gif" height="4"/><br/>
+<!-- Headline-->
+ <span class="headline">TModel View Record<p/></span>
+ <table width="690" border="0" cellpadding="4" cellspacing="1" bgcolor="#ffffff">
+ <tr>
+ <td width="200" valign="top">TModel Name</td>
+ <td width="10"><img src="images/transparent.gif" width="10"/></td>
+ <td width="480" valign="top" bgcolor="#eeeeee"><xsl:value-of select="//uddi:name"/></td>
+ </tr>
+ <tr>
+ <td width="200" valign="top">TModel Description</td>
+ <td width="10"><img src="images/transparent.gif" width="10"/></td>
+ <td width="480" valign="top" bgcolor="#eeeeee"><xsl:value-of select=".//uddi:description"/></td>
+ </tr>
+ <tr>
+ <td width="200" valign="top">OverviewDoc URL</td>
+ <td width="10"><img src="images/transparent.gif" width="10"/></td>
+ <td width="480" valign="top" bgcolor="#eeeeee"><a href="{//uddi:overviewURL}"><xsl:value-of select="//uddi:overviewURL"/></a></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ <p/>
+<!--Category Information-->
+<xsl:if test="//soapenv:Envelope//uddi:categoryBag/uddi:keyedReference">
+ <table width="690" border="0" cellpadding="0" cellspacing="1" bgcolor="#336699">
+ <tr>
+ <td bgcolor="ffffff"><img src="images/transparent.gif" height="4"/><br/>
+ <table width="690" border="0" cellpadding="4" cellspacing="1" bgcolor="#ffffff">
+ <tr>
+ <td><img src="images/transparent.gif" height="4"/></td>
+ <td class="subheadform" colspan="2">Category Information</td>
+ </tr>
+ <tr>
+ <td colspan="3">
+ <table width="682" border="0" cellpadding="4" cellspacing="1" bgcolor="#ffffff">
+ <tr>
+ <td align="left" valign="top" width="300"><u>Key Name</u></td>
+ <td align="left" valign="top"><u>Key Value</u></td>
+ </tr>
+<xsl:apply-templates/>
+ </table>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+</xsl:if>
+ <table width="690" border="0" cellpadding="0" cellspacing="0" bgcolor="#ffffff">
+ <tr>
+ <td bgcolor="ffffff"><img src="images/transparent.gif" height="4"/><br/>
+ <table width="690" border="0" cellpadding="0" cellspacing="1" bgcolor="#ffffff">
+ <tr>
+<!--Button-->
+ <td valign="top" align="right">
+<form action="tm_edit" method="POST">
+<input type="hidden" name="inquiryURL" value="{//session/uddi/inquiryURL}" />
+<input type="hidden" name="tModelKey" value="{.//uddi:tModel/@tModelKey}" />
+ <input type="submit" value="Edit" class="button"/>
+</form>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ <p/>
+ <a href="javascript:history.back();">back</a>
+ <p/>
+ </td>
+ </tr>
+ </table>
+</body>
+</html>
+</xsl:template>
+
+<xsl:template match="uddi:tModelDetail">
+ <xsl:choose>
+ <xsl:when test="position() mod 2=1">
+ <xsl:for-each select="*">
+ <xsl:for-each select=".//uddi:keyedReference">
+ <tr bgcolor="#EBF7FF">
+ <td valign="top"><xsl:value-of select="@keyName"/></td>
+ <td valign="top"><xsl:value-of select="@keyValue"/></td>
+ </tr>
+ </xsl:for-each>
+ </xsl:for-each>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:for-each select="*">
+ <xsl:for-each select=".//uddi:keyedReference">
+ <tr>
+ <td valign="top"><xsl:value-of select="@keyName"/></td>
+ <td valign="top"><xsl:value-of select="@keyValue"/></td>
+ </tr>
+ </xsl:for-each>
+ </xsl:for-each>
+ </xsl:otherwise>
+ </xsl:choose>
+</xsl:template>
+
+</xsl:stylesheet>
\ No newline at end of file
Added: webservices/juddi/extras/jbossauthenticator/src/org/apache/juddi/auth/JBossAuthenticator.java
URL: http://svn.apache.org/viewvc/webservices/juddi/extras/jbossauthenticator/src/org/apache/juddi/auth/JBossAuthenticator.java?view=auto&rev=468925
==============================================================================
--- webservices/juddi/extras/jbossauthenticator/src/org/apache/juddi/auth/JBossAuthenticator.java (added)
+++ webservices/juddi/extras/jbossauthenticator/src/org/apache/juddi/auth/JBossAuthenticator.java Sun Oct 29 07:45:08 2006
@@ -0,0 +1,107 @@
+/*
+ * Copyright 2001-2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.juddi.auth;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.apache.juddi.error.RegistryException;
+import org.apache.juddi.error.UnknownUserException;
+import org.apache.juddi.util.Config;
+import org.jboss.security.AuthenticationManager;
+
+import javax.naming.Context;
+import javax.naming.InitialContext;
+import javax.naming.NamingException;
+import java.security.Principal;
+
+/**
+ * This is a implementation of jUDDI's Authenticator interface,
+ * that uses the JBoss authentication manager.
+ *
+ * Usage:
+ *
+ * To use this class you must add the following properties
+ * to the juddi.properties file:
+ *
+ * # The JBoss Authenticator
+ * juddi.auth=org.apache.juddi.auth.JBossAuthenticator
+ *
+ * # The security-domain, defined in $JBOSS/default/conf/login-config.xml
+ * juddi.securityDomain=java:/jaas/other
+ *
+ * @author Antoni Reus (areus@ibit.org)
+ */
+public class JBossAuthenticator implements Authenticator
+{
+ // private reference to the jUDDI logger
+ private static Log log = LogFactory.getLog(JBossAuthenticator.class);
+
+ // static default security-domain to use.
+ private static final String SECURITY_DOMAIN_KEY = "juddi.securityDomain";
+ private static final String DEFAULT_SECURITY_DOMAIN = "java:/jaas/other";
+
+ // JBoss authentication manager
+ AuthenticationManager authManager;
+
+ /**
+ *
+ */
+ public JBossAuthenticator()
+ {
+ init();
+ }
+
+ /**
+ *
+ */
+ public String authenticate(final String userID, final String credential)
+ throws RegistryException
+ {
+ if (userID == null) {
+ throw new UnknownUserException("Invalid user ID = "+userID);
+ }
+
+ // Create a principal for the userID
+ Principal principal = new Principal()
+ {
+ public String getName() {
+ return userID;
+ }
+ };
+
+ if (!authManager.isValid(principal, credential)) {
+ throw new UnknownUserException("Invalid credentials");
+ }
+
+ return userID;
+ }
+
+
+ private void init()
+ {
+ String securityDomain = Config.getStringProperty(SECURITY_DOMAIN_KEY,DEFAULT_SECURITY_DOMAIN);
+
+ try {
+ // lookup for the authentication manager.
+ Context ctx = new InitialContext();
+ authManager = (AuthenticationManager) ctx.lookup(securityDomain);
+ ctx.close();
+ } catch (NamingException e) {
+ log.error("JNDI Exception looking for autentication manager: " +
+ securityDomain, e);
+ }
+ }
+}
\ No newline at end of file
Added: webservices/juddi/extras/soapconsole/webapp/META-INF/MANIFEST.MF
URL: http://svn.apache.org/viewvc/webservices/juddi/extras/soapconsole/webapp/META-INF/MANIFEST.MF?view=auto&rev=468925
==============================================================================
--- webservices/juddi/extras/soapconsole/webapp/META-INF/MANIFEST.MF (added)
+++ webservices/juddi/extras/soapconsole/webapp/META-INF/MANIFEST.MF Sun Oct 29 07:45:08 2006
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Class-Path:
+
Added: webservices/juddi/extras/soapconsole/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/webservices/juddi/extras/soapconsole/webapp/WEB-INF/web.xml?view=auto&rev=468925
==============================================================================
--- webservices/juddi/extras/soapconsole/webapp/WEB-INF/web.xml (added)
+++ webservices/juddi/extras/soapconsole/webapp/WEB-INF/web.xml Sun Oct 29 07:45:08 2006
@@ -0,0 +1,71 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+
+<!DOCTYPE web-app PUBLIC
+ "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
+ "http://java.sun.com/dtd/web-app_2_3.dtd">
+
+<web-app>
+
+ <display-name>jUDDI</display-name>
+ <description>
+ jUDDI is Java-based implmementation of a UDDI version 2.0 registry.
+ </description>
+
+ <!--
+ This Servlet is used to create, initialize and cleanup
+ resources used by jUDDI. It ABSOLUTELY MUST be loaded first.
+ -->
+ <servlet>
+ <servlet-name>jUDDIRegistryServlet</servlet-name>
+ <display-name>jUDDI Registry Servlet</display-name>
+ <servlet-class>org.apache.juddi.registry.RegistryServlet</servlet-class>
+ <init-param>
+ <param-name>juddi.propertiesFile</param-name>
+ <param-value>/WEB-INF/juddi.properties</param-value>
+ </init-param>
+ <load-on-startup>1</load-on-startup>
+ </servlet>
+
+ <servlet>
+ <servlet-name>jUDDIAdminService</servlet-name>
+ <display-name>jUDDI Admin Service</display-name>
+ <servlet-class>org.apache.juddi.registry.AdminService</servlet-class>
+ </servlet>
+ <servlet>
+ <servlet-name>UDDIV2InquiryService</servlet-name>
+ <display-name>UDDI Version 2.0 Inquiry Service</display-name>
+ <servlet-class>org.apache.juddi.registry.InquiryService</servlet-class>
+ </servlet>
+ <servlet>
+ <servlet-name>UDDIV2PublishService</servlet-name>
+ <display-name>UDDI Version 2.0 Publish Service</display-name>
+ <servlet-class>org.apache.juddi.registry.PublishService</servlet-class>
+ </servlet>
+
+ <servlet-mapping>
+ <servlet-name>jUDDIAdminService</servlet-name>
+ <url-pattern>/admin</url-pattern>
+ </servlet-mapping>
+ <servlet-mapping>
+ <servlet-name>UDDIV2InquiryService</servlet-name>
+ <url-pattern>/inquiry</url-pattern>
+ </servlet-mapping>
+ <servlet-mapping>
+ <servlet-name>UDDIV2PublishService</servlet-name>
+ <url-pattern>/publish</url-pattern>
+ </servlet-mapping>
+
+ <welcome-file-list id="WelcomeFileList">
+ <welcome-file>index.jsp</welcome-file>
+ <welcome-file>index.html</welcome-file>
+ </welcome-file-list>
+
+ <resource-ref>
+ <description>jUDDI DataSource</description>
+ <res-ref-name>jdbc/juddiDB</res-ref-name>
+ <res-type>javax.sql.DataSource</res-type>
+ <res-auth>Container</res-auth>
+ <res-sharing-scope>Shareable</res-sharing-scope>
+ </resource-ref>
+
+</web-app>
Added: webservices/juddi/extras/soapconsole/webapp/add_publisherAssertions.jsp
URL: http://svn.apache.org/viewvc/webservices/juddi/extras/soapconsole/webapp/add_publisherAssertions.jsp?view=auto&rev=468925
==============================================================================
--- webservices/juddi/extras/soapconsole/webapp/add_publisherAssertions.jsp (added)
+++ webservices/juddi/extras/soapconsole/webapp/add_publisherAssertions.jsp Sun Oct 29 07:45:08 2006
@@ -0,0 +1,72 @@
+<jsp:include page="header.html" />
+
+<%
+ String requestName = "add_publisherAssertions";
+ String requestType = "publish";
+ String requestKey = requestName+":request";
+ String responseKey = requestName+":response";
+ String requestTimeKey = requestName+":time";
+%>
+
+<h3><%= requestName%></h3>
+<div class="link">
+The <a href="uddiv2api.html#_Toc25137731" target="doc">add_publisherAssertions</a> API call
+causes one or more <a href="uddiv2data.html#_Toc25130781" target="doc">publisherAssertions</a>
+to be added to an individual publisher's assertion collection. If an error occurs while processing
+this API call, a <a href="uddiv2api.html#_Toc25137750" target="doc">dispositionReport</a> element
+will be returned to the caller within a <a href="uddiv2api.html#_Toc25137756" target="doc">SOAP
+Fault</a> containing information about the <a href="uddiv2api.html#_Toc25137748" target="doc">error</a> that
+was encountered.
+</div>
+
+<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>
+
+<%
+String requestTime = (String)session.getAttribute(requestTimeKey);
+if (requestTime == null) {
+ requestTime = "0";
+} %>
+<table cellpadding="4" width="100%">
+<tr>
+<td>
+<input type="hidden" name="request_name" value=<%=requestName%>>
+<input type="hidden" name="request_type" value=<%=requestType%>>
+<input type="submit" name="validate_button" value="Validate">
+<input type="submit" name="submit_button" value="Submit">
+<input type="submit" name="reset_button" value="Reset">
+</td>
+<td align="right">
+Time: <strong><%= requestTime%></strong> milliseconds
+</td>
+</tr>
+</table>
+
+<textarea class=msgs id=soap_response name=soap_response rows=25 cols=75 wrap=off><%
+String responseMessage = (String)session.getAttribute(responseKey);
+if (responseMessage != null) {
+ out.print(responseMessage);
+} %>
+</textarea>
+</form>
+
+<jsp:include page="footer.html" />
\ No newline at end of file
Added: webservices/juddi/extras/soapconsole/webapp/controller.jsp
URL: http://svn.apache.org/viewvc/webservices/juddi/extras/soapconsole/webapp/controller.jsp?view=auto&rev=468925
==============================================================================
--- webservices/juddi/extras/soapconsole/webapp/controller.jsp (added)
+++ webservices/juddi/extras/soapconsole/webapp/controller.jsp Sun Oct 29 07:45:08 2006
@@ -0,0 +1,138 @@
+<%@ page language="java"
+ import="java.io.BufferedReader,
+ java.io.InputStreamReader,
+ java.io.PrintWriter,
+ java.net.URL,
+ java.net.URLConnection" %>
+
+<?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">
+<%
+ // Access the UDDI registry on localhost
+ final String HTTP_PROXY_HOST = null;
+ final String HTTP_PROXY_PORT = null;
+ final URL INQUIRY_URL = new URL("http://localhost:8080/juddi/inquiry");
+ final URL PUBLISH_URL = new URL("http://localhost:8080/juddi/publish");
+ final URL ADMIN_URL = new URL("http://localhost:8080/juddi/admin");
+
+ // Access a remote UDDI registry
+ //final String HTTP_PROXY_HOST = "proxy";
+ //final String HTTP_PROXY_PORT = "80";
+ //final URL INQUIRY_URL = new URL("http://[host]:[port]/juddi/inquiry");
+ //final URL PUBLISH_URL = new URL("http://[host]:[port]/juddi/publish");
+ //final URL ADMIN_URL = new URL("http://[host]:[port]/juddi/admin");
+
+ // Pull input parameters from the HTTP request
+ String requestName = request.getParameter("request_name");
+ String requestType = request.getParameter("request_type");
+ String validateAction = request.getParameter("validate_button");
+ String submitAction = request.getParameter("submit_button");
+ String resetAction = request.getParameter("reset_button");
+ String requestMsg = request.getParameter("soap_request");
+
+ // Initialize the Session keys, target page and response message
+ String requestKey = requestName+":request";
+ String responseKey = requestName+":response";
+ String requestTimeKey = requestName+":time";
+ String targetPage = requestName+".jsp";
+ String responseMsg = null;
+
+ // Initialize the response time variables
+ long startTime = 0;
+ long endTime = 0;
+ long totalTime = 0;
+
+ // Determine which action the user selected.
+ if (validateAction != null)
+ {
+ // If user clicked the "Validate" button then check
+ // that the request XML is well-formed and validate
+ // it against the UDDI v2.0 XML Schema.
+
+ responseMsg = "Validation is not implemented yet.";
+ }
+ else if (resetAction != null)
+ {
+ // If user clicked the "Reset" button then initialize
+ // the request & response values to null.
+
+ requestMsg = null;
+ responseMsg = null;
+ }
+ else if (submitAction != null)
+ {
+ // If the user didn't select the "Reset" then they
+ // must have clicked the "Submit" button.
+
+ requestMsg = requestMsg.toString().trim();
+
+ try
+ {
+ // If HTTP proxy values are specified then use them
+ if ((HTTP_PROXY_HOST != null) && (HTTP_PROXY_PORT != null)) {
+ System.setProperty("http.proxyHost",HTTP_PROXY_HOST);
+ System.setProperty("http.proxyPort",HTTP_PROXY_PORT);
+ }
+ else {
+ // In case they were specified but you no longer need them
+ System.setProperty("http.proxyHost","");
+ System.setProperty("http.proxyPort","");
+ }
+
+ // Determine which endpoint the request should use
+ URL targetURL = null;
+ if (requestType.equals("publish"))
+ targetURL = PUBLISH_URL;
+ else if (requestType.equals("inquiry"))
+ targetURL = INQUIRY_URL;
+ else if (requestType.equals("admin"))
+ targetURL = ADMIN_URL;
+
+ // Start the clock
+ startTime = System.currentTimeMillis();
+
+ // Create HTTP Connection
+ URLConnection connection = targetURL.openConnection();
+ connection.setDoOutput(true);
+ connection.setRequestProperty("SOAPAction","");
+ PrintWriter writer = new PrintWriter(connection.getOutputStream());
+
+ // Send the HTTP Request
+ writer.write(requestMsg);
+ writer.close();
+
+ // Read the HTTP Response
+ BufferedReader reader = new BufferedReader(new InputStreamReader(connection.getInputStream()));
+ StringBuffer msg = new StringBuffer();
+ String line;
+ while((line = reader.readLine()) != null)
+ msg.append(line+"\n");
+
+ // Convert reponse to String and trim whitespace
+ responseMsg = msg.toString().trim();
+
+ // Close the HTTP Connection
+ reader.close();
+
+ // Stop the clock & calculate time
+ endTime = System.currentTimeMillis();
+ totalTime = endTime - startTime;
+ }
+ catch (Exception e)
+ {
+ e.printStackTrace();
+
+ // Display the exception msg as the result
+ responseMsg = e.getMessage();
+ }
+ }
+
+ // Set new values into the session
+ session.setAttribute(requestKey,requestMsg);
+ session.setAttribute(responseKey,responseMsg);
+ session.setAttribute(requestTimeKey,String.valueOf(totalTime).trim());
+
+ // Redirect back to the source page
+ request.getRequestDispatcher(targetPage).forward(request,response);
+%>
Added: webservices/juddi/extras/soapconsole/webapp/delete_binding.jsp
URL: http://svn.apache.org/viewvc/webservices/juddi/extras/soapconsole/webapp/delete_binding.jsp?view=auto&rev=468925
==============================================================================
--- webservices/juddi/extras/soapconsole/webapp/delete_binding.jsp (added)
+++ webservices/juddi/extras/soapconsole/webapp/delete_binding.jsp Sun Oct 29 07:45:08 2006
@@ -0,0 +1,68 @@
+<jsp:include page="header.html" />
+
+<%
+ String requestName = "delete_binding";
+ String requestType = "publish";
+ String requestKey = requestName+":request";
+ String responseKey = requestName+":response";
+ String requestTimeKey = requestName+":time";
+%>
+
+<h3><%= requestName%></h3>
+<div class="link">
+The <a href="uddiv2api.html#_Toc25137731" target="doc">delete_binding</a> API call
+causes one or more instances of <a href="uddiv2data.html#_Toc25130769" target="doc">bindingTemplate</a>
+data to be deleted from the UDDI registry. If an error occurs while processing
+this API call, a <a href="uddiv2api.html#_Toc25137750" target="doc">dispositionReport</a> element
+will be returned to the caller within a <a href="uddiv2api.html#_Toc25137756" target="doc">SOAP
+Fault</a> containing information about the <a href="uddiv2api.html#_Toc25137748" target="doc">error</a> that
+was encountered.
+</div>
+
+<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>
+
+<%
+String requestTime = (String)session.getAttribute(requestTimeKey);
+if (requestTime == null) {
+ requestTime = "0";
+} %>
+<table cellpadding="4" width="100%">
+<tr>
+<td>
+<input type="hidden" name="request_name" value=<%=requestName%>>
+<input type="hidden" name="request_type" value=<%=requestType%>>
+<input type="submit" name="validate_button" value="Validate">
+<input type="submit" name="submit_button" value="Submit">
+<input type="submit" name="reset_button" value="Reset">
+</td>
+<td align="right">
+Time: <strong><%= requestTime%></strong> milliseconds
+</td>
+</tr>
+</table>
+
+<textarea class=msgs id=soap_response name=soap_response rows=25 cols=75 wrap=off><%
+String responseMessage = (String)session.getAttribute(responseKey);
+if (responseMessage != null) {
+ out.print(responseMessage);
+} %>
+</textarea>
+</form>
+
+<jsp:include page="footer.html" />
\ No newline at end of file
Added: webservices/juddi/extras/soapconsole/webapp/delete_business.jsp
URL: http://svn.apache.org/viewvc/webservices/juddi/extras/soapconsole/webapp/delete_business.jsp?view=auto&rev=468925
==============================================================================
--- webservices/juddi/extras/soapconsole/webapp/delete_business.jsp (added)
+++ webservices/juddi/extras/soapconsole/webapp/delete_business.jsp Sun Oct 29 07:45:08 2006
@@ -0,0 +1,69 @@
+<jsp:include page="header.html" />
+
+<%
+ String requestName = "delete_business";
+ String requestType = "publish";
+ String requestKey = requestName+":request";
+ String responseKey = requestName+":response";
+ String requestTimeKey = requestName+":time";
+%>
+
+<h3><%= requestName%></h3>
+<div class="link">
+The <a href="uddiv2api.html#_Toc25137733" target="doc">delete_business</a> API call
+is used to remove one or more business registrations (e.g. registered
+<a href="uddiv2data.html#_Toc25130756" target="doc">businessEntity</a> data) and all direct contents
+from a UDDI registry. If an error occurs while processing this API call, a
+<a href="uddiv2api.html#_Toc25137750" target="doc">dispositionReport</a> element
+will be returned to the caller within a <a href="uddiv2api.html#_Toc25137756" target="doc">SOAP
+Fault</a> containing information about the <a href="uddiv2api.html#_Toc25137748" target="doc">error</a> that
+was encountered.
+</div>
+
+<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>
+
+<%
+String requestTime = (String)session.getAttribute(requestTimeKey);
+if (requestTime == null) {
+ requestTime = "0";
+} %>
+<table cellpadding="4" width="100%">
+<tr>
+<td>
+<input type="hidden" name="request_name" value=<%=requestName%>>
+<input type="hidden" name="request_type" value=<%=requestType%>>
+<input type="submit" name="validate_button" value="Validate">
+<input type="submit" name="submit_button" value="Submit">
+<input type="submit" name="reset_button" value="Reset">
+</td>
+<td align="right">
+Time: <strong><%= requestTime%></strong> milliseconds
+</td>
+</tr>
+</table>
+
+<textarea class=msgs id=soap_response name=soap_response rows=25 cols=75 wrap=off><%
+String responseMessage = (String)session.getAttribute(responseKey);
+if (responseMessage != null) {
+ out.print(responseMessage);
+} %>
+</textarea>
+</form>
+
+<jsp:include page="footer.html" />
\ No newline at end of file
Added: webservices/juddi/extras/soapconsole/webapp/delete_publisher.jsp
URL: http://svn.apache.org/viewvc/webservices/juddi/extras/soapconsole/webapp/delete_publisher.jsp?view=auto&rev=468925
==============================================================================
--- webservices/juddi/extras/soapconsole/webapp/delete_publisher.jsp (added)
+++ webservices/juddi/extras/soapconsole/webapp/delete_publisher.jsp Sun Oct 29 07:45:08 2006
@@ -0,0 +1,69 @@
+<jsp:include page="header.html" />
+
+<%
+ String requestName = "delete_publisher";
+ String requestType = "admin";
+ String requestKey = requestName+":request";
+ String responseKey = requestName+":response";
+ String requestTimeKey = requestName+":time";
+%>
+
+<h3><%= requestName%></h3>
+<div class="link">
+The delete_publisher API call causes one or more instances of publisher data
+to be deleted from the jUDDI registry.
+If any error occurs in processing this API call, a dispositionReport element
+will be returned to the caller within a SOAP Fault containing an error number
+indicating an
+<a href="/uddi_errors#E_authTokenExpired">E_authTokenExpired</a> or
+<a href="/uddi_errors#E_authTokenRequired">E_authTokenRequired</a> error was
+encountered.
+</div>
+
+<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="1.0" xmlns="urn:juddi-org:api_v1">
+ <authInfo>*****</authInfo>
+ <publisherID>*****</publisherID>
+ </delete_publisher>
+ </soapenv:Body>
+</soapenv:Envelope>
+<% } %>
+</textarea>
+
+<%
+String requestTime = (String)session.getAttribute(requestTimeKey);
+if (requestTime == null) {
+ requestTime = "0";
+} %>
+<table cellpadding="4" width="100%">
+<tr>
+<td>
+<input type="hidden" name="request_name" value=<%=requestName%>>
+<input type="hidden" name="request_type" value=<%=requestType%>>
+<input type="submit" name="validate_button" value="Validate">
+<input type="submit" name="submit_button" value="Submit">
+<input type="submit" name="reset_button" value="Reset">
+</td>
+<td align="right">
+Time: <strong><%= requestTime%></strong> milliseconds
+</td>
+</tr>
+</table>
+
+<textarea class=msgs id=soap_response name=soap_response rows=25 cols=75 wrap=off><%
+String responseMessage = (String)session.getAttribute(responseKey);
+if (responseMessage != null) {
+ out.print(responseMessage);
+} %>
+</textarea>
+</form>
+
+<jsp:include page="footer.html" />
\ No newline at end of file
Added: webservices/juddi/extras/soapconsole/webapp/delete_publisherAssertions.jsp
URL: http://svn.apache.org/viewvc/webservices/juddi/extras/soapconsole/webapp/delete_publisherAssertions.jsp?view=auto&rev=468925
==============================================================================
--- webservices/juddi/extras/soapconsole/webapp/delete_publisherAssertions.jsp (added)
+++ webservices/juddi/extras/soapconsole/webapp/delete_publisherAssertions.jsp Sun Oct 29 07:45:08 2006
@@ -0,0 +1,72 @@
+<jsp:include page="header.html" />
+
+<%
+ String requestName = "delete_publisherAssertions";
+ String requestType = "publish";
+ String requestKey = requestName+":request";
+ String responseKey = requestName+":response";
+ String requestTimeKey = requestName+":time";
+%>
+
+<h3><%= requestName%></h3>
+<div class="link">
+The <a href="uddiv2api.html#_Toc25137734" target="doc">delete_publisherAssertions</a> API call
+causes one or more <a href="uddiv2data.html#_Toc25130781" target="doc">publisherAssertion</a>
+elements to be removed from a publisher's assertion collection. If an error occurs while processing
+this API call, a <a href="uddiv2api.html#_Toc25137750" target="doc">dispositionReport</a> element
+will be returned to the caller within a <a href="uddiv2api.html#_Toc25137756" target="doc">SOAP
+Fault</a> containing information about the <a href="uddiv2api.html#_Toc25137748" target="doc">error</a> that
+was encountered.
+</div>
+
+<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>
+
+<%
+String requestTime = (String)session.getAttribute(requestTimeKey);
+if (requestTime == null) {
+ requestTime = "0";
+} %>
+<table cellpadding="4" width="100%">
+<tr>
+<td>
+<input type="hidden" name="request_name" value=<%=requestName%>>
+<input type="hidden" name="request_type" value=<%=requestType%>>
+<input type="submit" name="validate_button" value="Validate">
+<input type="submit" name="submit_button" value="Submit">
+<input type="submit" name="reset_button" value="Reset">
+</td>
+<td align="right">
+Time: <strong><%= requestTime%></strong> milliseconds
+</td>
+</tr>
+</table>
+
+<textarea class=msgs id=soap_response name=soap_response rows=25 cols=75 wrap=off><%
+String responseMessage = (String)session.getAttribute(responseKey);
+if (responseMessage != null) {
+ out.print(responseMessage);
+} %>
+</textarea>
+</form>
+
+<jsp:include page="footer.html" />
\ No newline at end of file
Added: webservices/juddi/extras/soapconsole/webapp/delete_service.jsp
URL: http://svn.apache.org/viewvc/webservices/juddi/extras/soapconsole/webapp/delete_service.jsp?view=auto&rev=468925
==============================================================================
--- webservices/juddi/extras/soapconsole/webapp/delete_service.jsp (added)
+++ webservices/juddi/extras/soapconsole/webapp/delete_service.jsp Sun Oct 29 07:45:08 2006
@@ -0,0 +1,68 @@
+<jsp:include page="header.html" />
+
+<%
+ String requestName = "delete_service";
+ String requestType = "publish";
+ String requestKey = requestName+":request";
+ String responseKey = requestName+":response";
+ String requestTimeKey = requestName+":time";
+%>
+
+<h3><%= requestName%></h3>
+<div class="link">
+The <a href="uddiv2api.html#_Toc25137735" target="doc">delete_service</a> API call
+causes one or more instances of <a href="uddiv2data.html#_Toc25130765" target="doc">businessService</a>
+data to be deleted from the UDDI registry and from its containing <a href="uddiv2data.html#_Toc25130756" target="doc">businessEntity</a> parent. If an error
+occurs while processing this API call, a <a href="uddiv2api.html#_Toc25137750" target="doc">dispositionReport</a>
+element will be returned to the caller within a <a href="uddiv2api.html#_Toc25137756" target="doc">SOAP
+Fault</a> containing information about the <a href="uddiv2api.html#_Toc25137748" target="doc">error</a> that
+was encountered.
+</div>
+
+<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>
+
+<%
+String requestTime = (String)session.getAttribute(requestTimeKey);
+if (requestTime == null) {
+ requestTime = "0";
+} %>
+<table cellpadding="4" width="100%">
+<tr>
+<td>
+<input type="hidden" name="request_name" value=<%=requestName%>>
+<input type="hidden" name="request_type" value=<%=requestType%>>
+<input type="submit" name="validate_button" value="Validate">
+<input type="submit" name="submit_button" value="Submit">
+<input type="submit" name="reset_button" value="Reset">
+</td>
+<td align="right">
+Time: <strong><%= requestTime%></strong> milliseconds
+</td>
+</tr>
+</table>
+
+<textarea class=msgs id=soap_response name=soap_response rows=25 cols=75 wrap=off><%
+String responseMessage = (String)session.getAttribute(responseKey);
+if (responseMessage != null) {
+ out.print(responseMessage);
+} %>
+</textarea>
+</form>
+
+<jsp:include page="footer.html" />
\ No newline at end of file
---------------------------------------------------------------------
To unsubscribe, e-mail: juddi-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: juddi-cvs-help@ws.apache.org