You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by ec...@apache.org on 2008/04/08 08:41:00 UTC

svn commit: r645776 [9/9] - in /geronimo/samples/branches/1.1: ./ migration-ejb-bmp/ migration-ejb-bmp/config/ migration-ejb-bmp/config/geronimo/ migration-ejb-bmp/config/jboss/ migration-ejb-bmp/src/ migration-ejb-bmp/src/META-INF/ migration-ejb-bmp/s...

Added: geronimo/samples/branches/1.1/migration-webservices/web/WEB-INF/wsdl/search-phones-service.wsdl
URL: http://svn.apache.org/viewvc/geronimo/samples/branches/1.1/migration-webservices/web/WEB-INF/wsdl/search-phones-service.wsdl?rev=645776&view=auto
==============================================================================
--- geronimo/samples/branches/1.1/migration-webservices/web/WEB-INF/wsdl/search-phones-service.wsdl (added)
+++ geronimo/samples/branches/1.1/migration-webservices/web/WEB-INF/wsdl/search-phones-service.wsdl Mon Apr  7 23:40:31 2008
@@ -0,0 +1,83 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You 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.
+-->
+<wsdl:definitions targetNamespace="http://geronimo.org/j2g/webservices"
+        xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+        xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+        xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+        xmlns:tns="http://geronimo.org/j2g/webservices"
+        xmlns:types="http://geronimo.org/j2g/webservices/types">
+
+    <wsdl:types>
+        <xsd:schema targetNamespace="http://geronimo.org/j2g/webservices/types">
+            <xsd:complexType name="PersonPhone">
+                <xsd:sequence>
+                    <xsd:element name="personName" type="xsd:string"/>
+                    <xsd:element name="phoneNumber" type="xsd:string"/>
+                </xsd:sequence>
+            </xsd:complexType>
+            <xsd:element name="search">
+                <xsd:complexType>
+                    <xsd:sequence>
+                        <xsd:element name="personName" type="xsd:string"/>
+                    </xsd:sequence>
+                </xsd:complexType>
+            </xsd:element>
+            <xsd:element name="searchResponse">
+                <xsd:complexType>
+                    <xsd:sequence>
+                        <xsd:element maxOccurs="unbounded" name="personPhone" type="types:PersonPhone"/>
+                    </xsd:sequence>
+                </xsd:complexType>
+            </xsd:element>
+        </xsd:schema>
+    </wsdl:types>
+
+    <wsdl:message name="searchRequest">
+        <wsdl:part element="types:search" name="parameters"/>
+    </wsdl:message>
+    <wsdl:message name="searchResponse">
+        <wsdl:part element="types:searchResponse" name="result"/>
+    </wsdl:message>
+
+    <wsdl:portType name="SearchPhonesPortType">
+        <wsdl:operation name="search">
+            <wsdl:input message="tns:searchRequest" name="searchRequest"/>
+            <wsdl:output message="tns:searchResponse" name="searchResponse"/>
+        </wsdl:operation>
+    </wsdl:portType>
+
+    <wsdl:binding name="SearchPhonesBinding" type="tns:SearchPhonesPortType">
+        <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
+        <wsdl:operation name="search">
+            <soap:operation soapAction=""/>
+            <wsdl:input>
+                <soap:body use="literal"/>
+            </wsdl:input>
+            <wsdl:output>
+                <soap:body use="literal"/>
+            </wsdl:output>
+        </wsdl:operation>
+    </wsdl:binding>
+
+    <wsdl:service name="SearchPhonesService">
+        <wsdl:port binding="tns:SearchPhonesBinding" name="SearchPhonesService">
+            <soap:address location="http://localhost:8080/phonebook/server"/>
+        </wsdl:port>
+    </wsdl:service>
+
+</wsdl:definitions>

Propchange: geronimo/samples/branches/1.1/migration-webservices/web/WEB-INF/wsdl/search-phones-service.wsdl
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/branches/1.1/migration-webservices/web/WEB-INF/wsdl/search-phones-service.wsdl
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/branches/1.1/migration-webservices/web/WEB-INF/wsdl/search-phones-service.wsdl
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/samples/branches/1.1/migration-webservices/web/css/main.css
URL: http://svn.apache.org/viewvc/geronimo/samples/branches/1.1/migration-webservices/web/css/main.css?rev=645776&view=auto
==============================================================================
--- geronimo/samples/branches/1.1/migration-webservices/web/css/main.css (added)
+++ geronimo/samples/branches/1.1/migration-webservices/web/css/main.css Mon Apr  7 23:40:31 2008
@@ -0,0 +1,510 @@
+/*
+* Licensed to the Apache Software Foundation (ASF) under one or more
+* contributor license agreements.  See the NOTICE file distributed with
+* this work for additional information regarding copyright ownership.
+* The ASF licenses this file to You 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.
+*/
+body 
+{
+    /*background-color: #FFFFFF;*/
+}
+
+.BrightTitle
+{
+    color: #FFFFFF;
+    background-color: #5FA3D6;
+    font-size: 11px;
+    font-family: Verdana, Tahoma, Arial, Helvetica, sans-serif;
+}
+
+.BrightTitle a:hover
+{
+    color: #5FA3D6;
+}
+
+.BrightBox
+{
+    border: thin solid #5FA3D6;
+}
+
+td
+{
+    font-size: 11px;
+    font-family: Verdana, Tahoma, Arial, Helvetica, sans-serif;
+}
+
+a:link, a:visited
+{
+    color: #204486;
+}
+
+a:hover 
+{
+    /*color: #5FA3D6;*/
+    color: #CF820A;
+}
+
+.Logo
+{
+    background-image:url("images/head_left_754x86.gif");
+    background-repeat: no-repeat;
+    width: 570px;
+    height: 86px;
+    font-size: 35px;
+    font-family: Verdana, Tahoma, Arial, Helvetica, sans-serif;
+    text-align: right;
+    vertical-align: bottom; 
+    line-height: 30px;
+    font-weight: bold;
+}
+
+.LoginLogo
+{
+    background-image:url("images/head_left_login_586x86.gif");
+    background-repeat: no-repeat;
+    width: 570px;
+    height: 86px;
+    font-size: 35px;
+    font-family: Verdana, Tahoma, Arial, Helvetica, sans-serif;
+    text-align: right;
+    vertical-align: bottom; 
+    line-height: 30px;
+    font-weight: bold;
+}
+
+.Top
+{
+    background-image:url("images/head_bgstretch_1x86.gif");
+    background-repeat: repeat-x;
+    height: 86px;
+    font-size: 11px;
+    font-family: Verdana, Tahoma, Arial, Helvetica, sans-serif;
+    text-align: right;
+    vertical-align: bottom;
+    font-weight: bold;
+}
+
+.Top a:link, .Top a:visited, .Top a:hover
+{
+        color: #FFFFFF;
+        font-size: 11px;
+    font-family: Verdana, Tahoma, Arial, Helvetica, sans-serif;
+        text-decoration: underline;
+        text-align: left;
+        vertical-align: bottom;
+        line-height: 30px;
+        font-weight: bold;
+}
+
+.TopSpacer
+{
+    height: 20px;
+}
+
+.Hidden
+{
+    visibility: hidden;
+    height: 0px;
+    line-height: 0px;
+    display: none;
+}
+
+.Menu .Selection
+{
+        background-color: #F2F2F2;
+    font-size: 12px;
+    font-family: Verdana, Tahoma, Arial, Helvetica, sans-serif;
+}
+
+.Menu .Selection .CollapsedLeft
+{
+    width: 12px;
+    height: 12px;
+    color: #000000;
+        background-color: #F2F2F2;
+}
+
+.Menu .Selection .Indent
+{
+    width: 2px;
+        background-color: #F2F2F2;
+}
+
+.Menu .Selection .CollapsedRight
+{
+    width: 8px;
+    height: 12px;
+        background-color: #F2F2F2;
+}
+
+.Menu .Selection .TopLeft
+{
+    width: 8px;
+    height: 16px;
+        background-color: #F2F2F2;
+}
+
+.Menu .Selection .TopMiddle
+{
+    color: #000000;
+    text-decoration: none;
+        background-color: #F2F2F2;
+}
+
+.Menu .Selection .TopMiddle a:link, 
+.Menu .Selection .TopMiddle a:visited, 
+{
+    color: #000000;
+    line-height: 20px;
+    font-size: 12px;
+    font-family: Verdana, Tahoma, Arial, Helvetica, sans-serif;
+        background-color: #F2F2F2;
+}
+
+.Menu .Selection .TopMiddle a:hover
+{
+    color: #5FA3D6;
+}
+
+.Menu .Selection .TopRight
+{
+    width: 8px;
+    height: 16px;
+        background-color: #F2F2F2;
+}
+
+.Menu .Selection .Spacer
+{
+    height: 5px;
+}
+
+.Menu .Hidden
+{
+    visibility: hidden;
+    height: 0px;
+    display: none;
+}
+
+.Menu .Subselection .Left
+{
+    width: 12px;
+        background-color: #F2F2F2;
+}
+
+.Menu .Subselection .Indent
+{
+    width: 2px;
+        background-color: #F2F2F2;
+}
+
+.Menu .Subselection .Middle
+{
+    font-size: 12px;
+    font-family: Verdana, Tahoma, Arial, Helvetica, sans-serif;
+        background-color: #F2F2F2;
+    color:#000000;
+}
+
+.Menu .Subselection .Middle a:link, 
+.Menu .Subselection .Middle a:visited, 
+{
+    line-height: 20px;
+    color: #000000;
+}
+
+.Menu .Subselection .Middle a:hover
+{
+    color: #5FA3D6;
+}
+
+.Menu .Subselection .Right
+{
+    width: 8px;
+        background-color: #F2F2F2;
+}
+
+.Menu .Subselection .BottomLeft
+{
+    width: 8px;
+    height: 8px;
+        background-color: #F2F2F2;
+}
+
+.Menu .Subselection .BottomMiddle
+{
+    height: 8px;
+        background-color: #F2F2F2;
+}
+
+.Menu .Subselection .BottomRight
+{
+    width: 8px;
+    height: 8px;
+        background-color: #F2F2F2;
+}
+
+.Menu .SelectedSubselection .Middle a{
+    color: #000;
+    text-decoration: none;
+}
+
+.Menu .SelectedSubselection .Middle a:hover{
+    color: #000;
+    text-decoration: underline;
+}
+
+.Gutter
+{
+    width: 5px;
+}
+
+.Content .TopLeft
+{
+    width: 18px;
+    height: 18px;
+    line-height: 18px;
+        background-color: #000000;
+}
+
+.Content .Title
+{
+    font-size: 12px;
+    font-family: Verdana, Tahoma, Arial, Helvetica, sans-serif;
+    background-color: #000000;
+    color: #FFFFFF;
+    height: 18px;
+    line-height: 18px;
+}
+
+.Content .Title a:link, .Content .Title a:hover, .Content .Title a:visited
+{
+    font-size: 12px;
+    font-family: Verdana, Tahoma, Arial, Helvetica, sans-serif;
+    background-color: #000000;
+    color: #FFFFFF;
+    height: 18px;
+    line-height: 18px;
+}
+
+.Content .Title .Indent
+{
+    width: 20px;
+}
+
+.Content .TopRight
+{
+    width: 18px;
+    height: 18px;
+        background-color:#000000;
+}
+
+.Content .CollapsedLeft
+{
+    width: 18px;
+    height: 18px;
+        background-color:#000000;
+}
+
+.Content .CollapsedRight
+{
+    width: 18px;
+    height: 18px;
+        background-color:#000000;
+}
+
+.Content .Left
+{
+    width: 18px;
+    background-color: #FFFFFF;
+}
+
+.Content .Body, .Content .Body td
+{
+    font-size: 12px;
+    font-family: Verdana, Tahoma, Arial, Helvetica, sans-serif;
+    background-color: #FFFFFF;
+    color: #1E1E52;
+}
+
+.Content .Body strong
+{
+    font-weight: bold;  
+    font-size: 12px;
+}
+
+.Content .Body th
+{
+    font-weight: bold;  
+    font-size: 12px;
+}
+
+.Content .Body .LightBackground
+{
+        background-color: #FFFFFF;
+    color:#000000;
+}
+
+.Content .Body .LightBackground .InputField
+{
+  width: 150px;
+}
+
+.Content .Body .MediumBackground
+{
+    background-color: #F2F2F2;
+    color:#000000;
+}
+
+.Content .Body .DarkBackground, 
+.Content .Body .DarkBackground a:link, 
+.Content .Body .DarkBackground a:visited,
+.Content .Body .DarkBackground a:hover
+{
+    background-color: #2581C7;
+    color:#FFFFFF;
+    font-size: 15px;
+    font-family: Verdana, Tahoma, Arial, Helvetica, sans-serif;
+}
+
+.Content .Body .reallyDarkBackground,
+.Content .ReallyDarkBackground,
+.ReallyDarkBackground
+{
+    color: #FFFFFF;
+    background-color: #000000;
+    font-size: 15px;
+    font-family: Verdana, Tahoma, Arial, Helvetica, sans-serif;
+}
+
+.Content .Body .IndentedTitle
+{
+    background-color: #919FBC;
+    color:#FFFFFF;
+}
+
+.Content .Body .LightIndentedBG
+{
+    background-color: #FFFFFF;
+    color:#000000;
+}
+
+.Content .Body .MediumIndentedBG
+{
+    background-color: #DDDDDD;
+    color:#000000;
+}
+
+
+.Content .Body a:link,
+.Content .Body a:visited,
+{
+    font-size: 10px;
+    font-family: Verdana, Tahoma, Arial, Helvetica, sans-serif;
+    text-decoration: underline;
+    color: #546BC7;
+    font-weight: bold;
+}
+
+.Content .Body a:hover
+{
+    color: #5FA3D6;
+}
+
+.Content .Buttons {
+    border-top-width: thin;
+    border-right-width: thin;
+    border-bottom-width: thin;
+    border-left-width: thin;
+    border-top-style: solid;
+    border-right-style: solid;
+    border-bottom-style: solid;
+    border-left-style: solid;
+    border-top-color: #7B7BAE;
+    border-right-color: #7B7BAE;
+    border-bottom-color: #141336;
+    border-left-color: #141336;
+    background-color: #23224C;
+    font-family: Verdana, Tahoma, Arial, Helvetica, sans-serif;
+    font-size: 12px;
+  text-decoration: underline;
+    color: #5FA3D6;
+}
+
+.Content .Right
+{
+    width: 18px;
+    background-color: #FFFFFF;
+}
+
+.Content .BottomLeft
+{
+    width: 18px;
+    height: 12px;
+    line-height: 12px;
+    background-color:#333366;
+}
+
+.Content .Footer
+{
+    line-height: 12px;
+    height: 12px;
+    font-size: 9px;
+    font-family: Verdana, Tahoma, Arial, Helvetica, sans-serif;
+    background-color:#333366;
+    color:#000000;
+}
+
+.Content .Footer a:link,
+.Content .Footer a:visited,
+.Content .Footer a:hover
+{
+    color: #5FA3D6;
+}
+
+.Content .BottomRight
+{
+    width: 18px;
+    line-height: 12px;
+    height: 12px;
+    background-color:#333366;
+}
+
+.Content .Spacer
+{
+    height: 10px;
+}
+
+.BottomSpacer
+{
+}
+
+.Footer
+{
+    font-size: 9px;
+    font-family: Verdana, Tahoma, Arial, Helvetica, sans-serif;
+    height: 20px;
+    background-color: #5FA3D6;
+}
+
+.Footer a:link, 
+.Footer a:visited, 
+.Footer a:hover
+{
+    color: #5FA3D6;
+    text-decoration: underline; 
+}
+
+.Box
+{
+    border: thin solid #000000;
+}

Propchange: geronimo/samples/branches/1.1/migration-webservices/web/css/main.css
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/branches/1.1/migration-webservices/web/css/main.css
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/branches/1.1/migration-webservices/web/css/main.css
------------------------------------------------------------------------------
    svn:mime-type = text/css

Added: geronimo/samples/branches/1.1/migration-webservices/web/index.jsp
URL: http://svn.apache.org/viewvc/geronimo/samples/branches/1.1/migration-webservices/web/index.jsp?rev=645776&view=auto
==============================================================================
--- geronimo/samples/branches/1.1/migration-webservices/web/index.jsp (added)
+++ geronimo/samples/branches/1.1/migration-webservices/web/index.jsp Mon Apr  7 23:40:31 2008
@@ -0,0 +1,125 @@
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You 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.
+-->
+<%@ page language="java"
+    contentType="text/html; charset=utf-8"
+    pageEncoding="utf-8"
+    import="org.apache.geronimo.samples.phone.client.*"
+%>
+
+<%!
+    /* Name of the reference to the Search Phones service described in the web.xml file */
+    private final static String SERVICE_REF_NAME = "java:comp/env/service/SearchPhones";
+
+    /* Used for making hints to users */
+    private final static org.apache.geronimo.samples.phone.server.PersonPhone[] AVAILABLE_PHONES =
+        org.apache.geronimo.samples.phone.server.SearchPhonesServer.AVAILABLE_PHONES;
+
+    /* Returns the endpoint for calling methods of the web service */
+    public SearchPhonesPortType getService() throws Exception {
+        javax.naming.InitialContext ctx = new javax.naming.InitialContext();
+        SearchPhonesService service = (SearchPhonesService)ctx.lookup(SERVICE_REF_NAME);
+        return service.getSearchPhonesService();
+    }
+%>
+
+<%  String name = request.getParameter("name"); %>
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+           "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">     
+<html>
+
+<head>
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+    <title>Phone Book Application</title>
+    <link rel="stylesheet" href="css/main.css" type="text/css">
+</head>
+
+<body>
+    <br>
+    <div class="Content">
+    <table>
+        <tr>
+            <td class="Title"><strong>Phone Book Application</strong></td>
+        </tr>
+        <tr></tr>
+        <tr>
+            <td class="Body">
+                <p>
+                    This is a Phone Book Web Application. 
+                    Please enter the name of the person whose phone number you wish to find.
+                    <br>
+                </p>
+            </td>
+        </tr>
+        <tr>
+        <td class="Body">
+        <h3>Search criterion</h3>
+        <form action="#">
+            <table>
+            <tr>
+                <td>Person name:</td>
+                <td><input type="text" name="name" value="<%=(name != null ? name : "")%>"/></td>
+            </tr>
+            <tr>
+                <td colspan="2"><input type="submit" value="Search"/></td>
+            </tr>
+            <tr>
+                <td colspan="2">
+                    <br/>
+                    Hint: the following names are hardcoded:<br/>
+    
+                    <% for (int i = 0; i < AVAILABLE_PHONES.length; i++) { %>
+                        <%=AVAILABLE_PHONES[i].getPersonName()%><%=(i < AVAILABLE_PHONES.length - 1 ? ", " : " ")%>
+                    <% } %>
+      
+                </td>
+            </tr>
+            </table>
+        </form>
+    
+    <%  if (name != null && !name.equals("")) {
+            PersonPhone[] foundPhones = getService().search(name); %>
+    
+            <br/>
+            <h3>Search results</h3>
+            <table >
+    
+                <% if (foundPhones == null || foundPhones.length == 0) { %>
+                    <tr><td>No persons which name starts with the specified criterion were found.</td></tr>
+    
+                <% } else { %>
+                    <tr><td colspan="2">The following persons and phones were found:</td></tr>
+    
+                    <% for (int i = 0; i < foundPhones.length; i++) { %>
+                    <tr>
+                        <td><%=foundPhones[i].getPersonName()%></td>
+                        <td><%=foundPhones[i].getPhoneNumber()%></td>
+                    </tr>
+                    <% } %>
+    
+                <% } %>
+    
+            </table>
+    
+    <%  } %>
+    </td>
+    </tr>
+    </table>
+</div>
+</body>
+
+</html>

Propchange: geronimo/samples/branches/1.1/migration-webservices/web/index.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/branches/1.1/migration-webservices/web/index.jsp
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/branches/1.1/migration-webservices/web/index.jsp
------------------------------------------------------------------------------
    svn:mime-type = text/plain