You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by tl...@apache.org on 2006/11/03 07:41:52 UTC
svn commit: r470689 - in /incubator/cxf/trunk/testutils/src/main:
java/org/apache/hello_world_xml_http/wrapped/GreeterFaultImpl.java
resources/wsdl/hello_world_xml_wrapped.wsdl
Author: tli
Date: Thu Nov 2 22:41:51 2006
New Revision: 470689
URL: http://svn.apache.org/viewvc?view=rev&rev=470689
Log:
CXF-196 applied Ajay's patch and modify xml wrap systest to include this scenario
Added:
incubator/cxf/trunk/testutils/src/main/java/org/apache/hello_world_xml_http/wrapped/GreeterFaultImpl.java (with props)
Modified:
incubator/cxf/trunk/testutils/src/main/resources/wsdl/hello_world_xml_wrapped.wsdl
Added: incubator/cxf/trunk/testutils/src/main/java/org/apache/hello_world_xml_http/wrapped/GreeterFaultImpl.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/testutils/src/main/java/org/apache/hello_world_xml_http/wrapped/GreeterFaultImpl.java?view=auto&rev=470689
==============================================================================
--- incubator/cxf/trunk/testutils/src/main/java/org/apache/hello_world_xml_http/wrapped/GreeterFaultImpl.java (added)
+++ incubator/cxf/trunk/testutils/src/main/java/org/apache/hello_world_xml_http/wrapped/GreeterFaultImpl.java Thu Nov 2 22:41:51 2006
@@ -0,0 +1,49 @@
+/**
+ * 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_xml_http.wrapped;
+
+
+@javax.jws.WebService(serviceName = "XMLService",
+ portName = "XMLFaultPort",
+ endpointInterface = "org.apache.hello_world_xml_http.wrapped.Greeter",
+ targetNamespace = "http://apache.org/hello_world_xml_http/wrapped")
+
+@javax.xml.ws.BindingType(value = "http://cxf.apache.org/bindings/xformat")
+
+public class GreeterFaultImpl implements Greeter {
+
+ public static final String RUNTIME_EXCEPTION_MESSAGE = "test throw out runtime exception";
+ public String greetMe(String me) {
+ return "Hello " + me;
+ }
+
+ public void greetMeOneWay(String me) {
+ System.out.println("Executing operation greetMeOneWay\n");
+ System.out.println("Hello there " + me);
+ }
+
+ public String sayHi() {
+ return "Bonjour";
+ }
+
+ public void pingMe() throws PingMeFault {
+ throw new RuntimeException(GreeterFaultImpl.RUNTIME_EXCEPTION_MESSAGE);
+ }
+}
Propchange: incubator/cxf/trunk/testutils/src/main/java/org/apache/hello_world_xml_http/wrapped/GreeterFaultImpl.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/cxf/trunk/testutils/src/main/java/org/apache/hello_world_xml_http/wrapped/GreeterFaultImpl.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Modified: incubator/cxf/trunk/testutils/src/main/resources/wsdl/hello_world_xml_wrapped.wsdl
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/testutils/src/main/resources/wsdl/hello_world_xml_wrapped.wsdl?view=diff&rev=470689&r1=470688&r2=470689
==============================================================================
--- incubator/cxf/trunk/testutils/src/main/resources/wsdl/hello_world_xml_wrapped.wsdl (original)
+++ incubator/cxf/trunk/testutils/src/main/resources/wsdl/hello_world_xml_wrapped.wsdl Thu Nov 2 22:41:51 2006
@@ -178,6 +178,13 @@
<http:address
location="http://localhost:9023/XMLService/RestProviderPort/Customer" />
</wsdl:port>
+
+ <wsdl:port binding="tns:Greeter_XMLBinding" name="XMLFaultPort">
+ <http:address
+ location="http://localhost:9033/XMLService/XMLFaultPort" />
+ </wsdl:port>
+
</wsdl:service>
+
</wsdl:definitions>