geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r559306 - in /geronimo/server/trunk/testsuite/webservices-testsuite/jaxrpc-tests/jaxrpc-war/src/main/webapp: JAXRPCClient.jsp WEB-INF/geronimo-web.xml WEB-INF/jaxrpcmapping.xml WEB-INF/web.xml
Date Wed, 25 Jul 2007 03:42:10 GMT
Author: gawor
Date: Tue Jul 24 20:42:09 2007
New Revision: 559306

URL: http://svn.apache.org/viewvc?view=rev&rev=559306
Log:
added jax-rpc jsp client

Added:
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxrpc-tests/jaxrpc-war/src/main/webapp/JAXRPCClient.jsp
  (with props)
Modified:
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxrpc-tests/jaxrpc-war/src/main/webapp/WEB-INF/geronimo-web.xml
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxrpc-tests/jaxrpc-war/src/main/webapp/WEB-INF/jaxrpcmapping.xml
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxrpc-tests/jaxrpc-war/src/main/webapp/WEB-INF/web.xml

Added: geronimo/server/trunk/testsuite/webservices-testsuite/jaxrpc-tests/jaxrpc-war/src/main/webapp/JAXRPCClient.jsp
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/webservices-testsuite/jaxrpc-tests/jaxrpc-war/src/main/webapp/JAXRPCClient.jsp?view=auto&rev=559306
==============================================================================
--- geronimo/server/trunk/testsuite/webservices-testsuite/jaxrpc-tests/jaxrpc-war/src/main/webapp/JAXRPCClient.jsp
(added)
+++ geronimo/server/trunk/testsuite/webservices-testsuite/jaxrpc-tests/jaxrpc-war/src/main/webapp/JAXRPCClient.jsp
Tue Jul 24 20:42:09 2007
@@ -0,0 +1,51 @@
+<?xml version="1.0"?>
+<!--
+    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.
+-->
+<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="1.2">
+<jsp:directive.page contentType="text/html"/>
+
+<jsp:directive.page import="java.io.IOException"/>
+<jsp:directive.page import="javax.naming.InitialContext"/>
+<jsp:directive.page import="javax.xml.rpc.Service"/>
+<jsp:directive.page import="org.apache.hello_world_soap_http.Greeter"/>
+
+<html><head><title>JAX-RPC Client JSP</title></head>
+<body>
+
+<jsp:scriptlet>
+        try {
+            String name = request.getParameter("name");
+            if (name == null) {
+                name = "Unknown";
+            }
+            System.out.println(name);
+            InitialContext ctx = new InitialContext();
+            Service service = (Service)ctx.lookup("java:comp/env/services/Greeter");
+            Greeter greeter = (Greeter)service.getPort(Greeter.class);
+            out.println("WebService returned: " + greeter.greetMe(name));
+        } catch (Exception e) {
+            e.printStackTrace();
+            IOException exception = new IOException("Error");
+            exception.initCause(e);
+            throw exception;
+        }
+</jsp:scriptlet>
+
+</body></html>
+</jsp:root>

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxrpc-tests/jaxrpc-war/src/main/webapp/JAXRPCClient.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: geronimo/server/trunk/testsuite/webservices-testsuite/jaxrpc-tests/jaxrpc-war/src/main/webapp/WEB-INF/geronimo-web.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/webservices-testsuite/jaxrpc-tests/jaxrpc-war/src/main/webapp/WEB-INF/geronimo-web.xml?view=diff&rev=559306&r1=559305&r2=559306
==============================================================================
--- geronimo/server/trunk/testsuite/webservices-testsuite/jaxrpc-tests/jaxrpc-war/src/main/webapp/WEB-INF/geronimo-web.xml
(original)
+++ geronimo/server/trunk/testsuite/webservices-testsuite/jaxrpc-tests/jaxrpc-war/src/main/webapp/WEB-INF/geronimo-web.xml
Tue Jul 24 20:42:09 2007
@@ -26,4 +26,16 @@
       <dep:type>car</dep:type>
     </dep:moduleId>
   </dep:environment>
+
+ <service-ref>
+   <service-ref-name>services/Greeter</service-ref-name>
+   <port>
+      <port-name>GreeterPort</port-name>
+      <protocol>http</protocol>
+      <host>localhost</host>
+      <port>8080</port>
+      <uri>/jaxrpc-war-2.1-SNAPSHOT/servlet</uri>
+   </port>
+ </service-ref>
+
 </web-app>

Modified: geronimo/server/trunk/testsuite/webservices-testsuite/jaxrpc-tests/jaxrpc-war/src/main/webapp/WEB-INF/jaxrpcmapping.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/webservices-testsuite/jaxrpc-tests/jaxrpc-war/src/main/webapp/WEB-INF/jaxrpcmapping.xml?view=diff&rev=559306&r1=559305&r2=559306
==============================================================================
--- geronimo/server/trunk/testsuite/webservices-testsuite/jaxrpc-tests/jaxrpc-war/src/main/webapp/WEB-INF/jaxrpcmapping.xml
(original)
+++ geronimo/server/trunk/testsuite/webservices-testsuite/jaxrpc-tests/jaxrpc-war/src/main/webapp/WEB-INF/jaxrpcmapping.xml
Tue Jul 24 20:42:09 2007
@@ -15,9 +15,47 @@
    See the License for the specific language governing permissions and
    limitations under the License.
 -->
-
 <java-wsdl-mapping
 	xmlns="http://java.sun.com/xml/ns/j2ee"
 	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+        xmlns:greeter="http://org.apache.org/greeter"
 	version="1.1">
+  <package-mapping>
+    <package-type>org.apache.hello_world_soap_http</package-type>
+    <namespaceURI>urn:geronimo-samples</namespaceURI>
+  </package-mapping>
+  <service-interface-mapping>
+	<service-interface>
+		org.apache.hello_world_soap_http.Greeter;
+	</service-interface>
+    <wsdl-service-name>greeter:GreeterService</wsdl-service-name>
+    <port-mapping>
+      <port-name>GreeterPort</port-name>
+      <java-port-name>GreeterPort</java-port-name>
+    </port-mapping>
+  </service-interface-mapping>
+  <service-endpoint-interface-mapping>
+    <service-endpoint-interface>org.apache.hello_world_soap_http.Greeter</service-endpoint-interface>
+    <wsdl-port-type>greeter:Greeter</wsdl-port-type>
+    <wsdl-binding>greeter:GreeterSOAPBinding</wsdl-binding>
+    <service-endpoint-method-mapping>
+      <java-method-name>greetMe</java-method-name>
+      <wsdl-operation>greetMe</wsdl-operation>
+      <method-param-parts-mapping>
+        <param-position>0</param-position>
+        <param-type>java.lang.String</param-type>
+        <wsdl-message-mapping>
+          <wsdl-message>greeter:greetMeRequest</wsdl-message>
+          <wsdl-message-part-name>in</wsdl-message-part-name>
+          <parameter-mode>IN</parameter-mode>
+        </wsdl-message-mapping>
+      </method-param-parts-mapping>
+      <wsdl-return-value-mapping>
+        <method-return-value>java.lang.String</method-return-value>
+        <wsdl-message>greeter:greetMeResponse</wsdl-message>
+        <wsdl-message-part-name>out</wsdl-message-part-name>
+      </wsdl-return-value-mapping>
+    </service-endpoint-method-mapping>
+  </service-endpoint-interface-mapping>
 </java-wsdl-mapping>
+

Modified: geronimo/server/trunk/testsuite/webservices-testsuite/jaxrpc-tests/jaxrpc-war/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/webservices-testsuite/jaxrpc-tests/jaxrpc-war/src/main/webapp/WEB-INF/web.xml?view=diff&rev=559306&r1=559305&r2=559306
==============================================================================
--- geronimo/server/trunk/testsuite/webservices-testsuite/jaxrpc-tests/jaxrpc-war/src/main/webapp/WEB-INF/web.xml
(original)
+++ geronimo/server/trunk/testsuite/webservices-testsuite/jaxrpc-tests/jaxrpc-war/src/main/webapp/WEB-INF/web.xml
Tue Jul 24 20:42:09 2007
@@ -33,4 +33,11 @@
         <url-pattern>/servlet</url-pattern>
     </servlet-mapping>
 
+   <service-ref>
+       <service-ref-name>services/Greeter</service-ref-name>
+       <service-interface>javax.xml.rpc.Service</service-interface>
+       <wsdl-file>WEB-INF/wsdl/greeter.wsdl</wsdl-file>
+       <jaxrpc-mapping-file>WEB-INF/jaxrpcmapping.xml</jaxrpc-mapping-file>
+   </service-ref>
+
 </web-app>



Mime
View raw message