Return-Path: Delivered-To: apmail-geronimo-scm-archive@www.apache.org Received: (qmail 53233 invoked from network); 18 Dec 2006 03:35:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Dec 2006 03:35:48 -0000 Received: (qmail 4122 invoked by uid 500); 18 Dec 2006 03:35:55 -0000 Delivered-To: apmail-geronimo-scm-archive@geronimo.apache.org Received: (qmail 4114 invoked by uid 500); 18 Dec 2006 03:35:55 -0000 Mailing-List: contact scm-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list scm@geronimo.apache.org Received: (qmail 4103 invoked by uid 99); 18 Dec 2006 03:35:55 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 17 Dec 2006 19:35:55 -0800 X-ASF-Spam-Status: No, hits=-8.6 required=10.0 tests=ALL_TRUSTED,INFO_TLD,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 17 Dec 2006 19:35:47 -0800 Received: by eris.apache.org (Postfix, from userid 65534) id C7F0E1A981A; Sun, 17 Dec 2006 19:34:59 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r488110 - in /geronimo/server/trunk: ./ testsuite/itests/cxfPojoWS/war/ testsuite/itests/cxfPojoWS/war/src/main/java/ testsuite/itests/cxfPojoWS/war/src/main/java/org/ testsuite/itests/cxfPojoWS/war/src/main/java/org/apache/ testsuite/itest... Date: Mon, 18 Dec 2006 03:34:59 -0000 To: scm@geronimo.apache.org From: dims@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20061218033459.C7F0E1A981A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: dims Date: Sun Dec 17 19:34:58 2006 New Revision: 488110 URL: http://svn.apache.org/viewvc?view=rev&rev=488110 Log: - Update to M1 release - Copy the pojo sample (stripped down!) instead of loading it from cxf-testutils [to get rid of the hardcoded wsdl path in the pojo's annotations mentioned here - http://www.mail-archive.com/dev@geronimo.apache.org/msg38745.html] TODO: - Need to fix the wsdl in the webapp to reflect the stripped down pojo. - Now there is no deploy error, can't figure out what the url for the service is supposed to be. (oh well!) Added: geronimo/server/trunk/testsuite/itests/cxfPojoWS/war/src/main/java/ geronimo/server/trunk/testsuite/itests/cxfPojoWS/war/src/main/java/org/ geronimo/server/trunk/testsuite/itests/cxfPojoWS/war/src/main/java/org/apache/ geronimo/server/trunk/testsuite/itests/cxfPojoWS/war/src/main/java/org/apache/hello_world_soap_http/ geronimo/server/trunk/testsuite/itests/cxfPojoWS/war/src/main/java/org/apache/hello_world_soap_http/Greeter.java geronimo/server/trunk/testsuite/itests/cxfPojoWS/war/src/main/java/org/apache/hello_world_soap_http/GreeterImpl.java Modified: geronimo/server/trunk/pom.xml geronimo/server/trunk/testsuite/itests/cxfPojoWS/war/pom.xml Modified: geronimo/server/trunk/pom.xml URL: http://svn.apache.org/viewvc/geronimo/server/trunk/pom.xml?view=diff&rev=488110&r1=488109&r2=488110 ============================================================================== --- geronimo/server/trunk/pom.xml (original) +++ geronimo/server/trunk/pom.xml Sun Dec 17 19:34:58 2006 @@ -973,7 +973,7 @@ org.apache.cxf cxf-api - 2.0-incubator-RC-SNAPSHOT + 2.0-incubator-M1 javax.annotation @@ -988,7 +988,7 @@ org.apache.cxf cxf-metacode - 2.0-incubator-RC-SNAPSHOT + 2.0-incubator-M1 javax.annotation @@ -1003,7 +1003,7 @@ org.apache.cxf cxf-common-utilities - 2.0-incubator-RC-SNAPSHOT + 2.0-incubator-M1 javax.annotation @@ -1018,7 +1018,7 @@ org.apache.cxf cxf-rt-core - 2.0-incubator-RC-SNAPSHOT + 2.0-incubator-M1 javax.annotation @@ -1033,7 +1033,7 @@ org.apache.cxf cxf-rt-bindings-xml - 2.0-incubator-RC-SNAPSHOT + 2.0-incubator-M1 javax.annotation @@ -1048,7 +1048,7 @@ org.apache.cxf cxf-rt-bindings-soap - 2.0-incubator-RC-SNAPSHOT + 2.0-incubator-M1 javax.annotation @@ -1063,7 +1063,7 @@ org.apache.cxf cxf-rt-databinding-jaxb - 2.0-incubator-RC-SNAPSHOT + 2.0-incubator-M1 javax.annotation @@ -1078,7 +1078,7 @@ org.apache.cxf cxf-rt-frontend-jaxws - 2.0-incubator-RC-SNAPSHOT + 2.0-incubator-M1 javax.annotation @@ -1093,7 +1093,7 @@ org.apache.cxf cxf-rt-frontend-simple - 2.0-incubator-RC-SNAPSHOT + 2.0-incubator-M1 javax.annotation @@ -1108,7 +1108,7 @@ org.apache.cxf cxf-rt-transports-http - 2.0-incubator-RC-SNAPSHOT + 2.0-incubator-M1 javax.annotation @@ -1123,7 +1123,7 @@ org.apache.cxf cxf-tools-common - 2.0-incubator-RC-SNAPSHOT + 2.0-incubator-M1 javax.annotation Modified: geronimo/server/trunk/testsuite/itests/cxfPojoWS/war/pom.xml URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/itests/cxfPojoWS/war/pom.xml?view=diff&rev=488110&r1=488109&r2=488110 ============================================================================== --- geronimo/server/trunk/testsuite/itests/cxfPojoWS/war/pom.xml (original) +++ geronimo/server/trunk/testsuite/itests/cxfPojoWS/war/pom.xml Sun Dec 17 19:34:58 2006 @@ -44,19 +44,25 @@ - org.apache.cxf - cxf-testutils - 2.0-incubator-M1-SNAPSHOT + javax.xml.ws + jaxws-api + 2.0 - javax.annotation - jsr250-api - - - javax.jws - jsr181-api + javax.xml.bind + jsr173_api + + + org.apache.geronimo.specs + geronimo-annotation_1.0_spec + 1.0-SNAPSHOT + + + org.apache.geronimo.specs + geronimo-ws-metadata_2.0_spec + 1.1-SNAPSHOT Added: geronimo/server/trunk/testsuite/itests/cxfPojoWS/war/src/main/java/org/apache/hello_world_soap_http/Greeter.java URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/itests/cxfPojoWS/war/src/main/java/org/apache/hello_world_soap_http/Greeter.java?view=auto&rev=488110 ============================================================================== --- geronimo/server/trunk/testsuite/itests/cxfPojoWS/war/src/main/java/org/apache/hello_world_soap_http/Greeter.java (added) +++ geronimo/server/trunk/testsuite/itests/cxfPojoWS/war/src/main/java/org/apache/hello_world_soap_http/Greeter.java Sun Dec 17 19:34:58 2006 @@ -0,0 +1,47 @@ +/** + * 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. + */ + +package org.apache.hello_world_soap_http; + +import javax.jws.WebParam.Mode; +import javax.jws.WebParam; +import javax.jws.WebService; +import javax.jws.soap.SOAPBinding.Style; +import javax.jws.soap.SOAPBinding; +import java.util.concurrent.Future; +import javax.jws.Oneway; +import javax.jws.WebMethod; +import javax.jws.WebResult; +import javax.xml.ws.AsyncHandler; +import javax.xml.ws.RequestWrapper; +import javax.xml.ws.Response; +import javax.xml.ws.ResponseWrapper; + +@WebService(targetNamespace = "http://apache.org/hello_world_soap_http", name = "Greeter") + +public interface Greeter { + @ResponseWrapper(targetNamespace = "http://apache.org/hello_world_soap_http/types", className = "org.apache.hello_world_soap_http.types.GreetMeResponse", localName = "greetMeResponse") + @RequestWrapper(targetNamespace = "http://apache.org/hello_world_soap_http/types", className = "org.apache.hello_world_soap_http.types.GreetMe", localName = "greetMe") + @WebResult(targetNamespace = "http://apache.org/hello_world_soap_http/types", name = "responseType") + @WebMethod(operationName = "greetMe") + public java.lang.String greetMe( + @WebParam(targetNamespace = "http://apache.org/hello_world_soap_http/types", name = "requestType") + java.lang.String requestType + ); +} Added: geronimo/server/trunk/testsuite/itests/cxfPojoWS/war/src/main/java/org/apache/hello_world_soap_http/GreeterImpl.java URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/itests/cxfPojoWS/war/src/main/java/org/apache/hello_world_soap_http/GreeterImpl.java?view=auto&rev=488110 ============================================================================== --- geronimo/server/trunk/testsuite/itests/cxfPojoWS/war/src/main/java/org/apache/hello_world_soap_http/GreeterImpl.java (added) +++ geronimo/server/trunk/testsuite/itests/cxfPojoWS/war/src/main/java/org/apache/hello_world_soap_http/GreeterImpl.java Sun Dec 17 19:34:58 2006 @@ -0,0 +1,56 @@ +/** + * 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. + */ + +package org.apache.hello_world_soap_http; + + +import java.io.IOException; +import java.util.concurrent.Future; +import java.util.logging.Logger; + +import javax.annotation.Resource; + +import javax.jws.WebService; +import javax.xml.ws.AsyncHandler; +import javax.xml.ws.Response; +import javax.xml.ws.WebServiceContext; + +@WebService(serviceName = "SOAPService", + portName = "SoapPort", + endpointInterface = "org.apache.hello_world_soap_http.Greeter", + targetNamespace = "http://apache.org/hello_world_soap_http") +public class GreeterImpl implements Greeter { + + private static final Logger LOG = Logger.getLogger(GreeterImpl.class.getName()); + + @Resource + private WebServiceContext context; + + private int invocationCount; + + public WebServiceContext getContext() { + return context; + } + + public String greetMe(String me) { + LOG.info("Invoking greetMe " + me); + invocationCount++; + return "Hello " + me; + } +}