axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject svn commit: r641584 [2/2] - in /webservices/axis2/trunk/java/modules: jaxws-integration/ jaxws-integration/test-resources/wsdl/ jaxws-integration/test/org/apache/axis2/jaxws/sample/ jaxws-integration/test/org/apache/axis2/jaxws/sample/asyncdoclit/ jaxw...
Date Wed, 26 Mar 2008 21:31:54 GMT
Added: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/asyncdoclit/server/META-INF/async_doclitwr2.wsdl
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/asyncdoclit/server/META-INF/async_doclitwr2.wsdl?rev=641584&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/asyncdoclit/server/META-INF/async_doclitwr2.wsdl
(added)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/asyncdoclit/server/META-INF/async_doclitwr2.wsdl
Wed Mar 26 14:31:52 2008
@@ -0,0 +1,400 @@
+<?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 xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+	xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+	xmlns:tns="http://org/test/asyncdoclit"
+	xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="async"
+	targetNamespace="http://org/test/asyncdoclit">
+	
+	<wsdl:types>
+		<xsd:schema
+			targetNamespace="http://org/test/asyncdoclit"
+			xmlns:tns="http://org/test/asyncdoclit"
+			xmlns:xsd="http://www.w3.org/2001/XMLSchema">		
+			
+			<xsd:element name="ping">
+				<xsd:complexType>
+					<xsd:sequence>
+						<xsd:element name="message" type="xsd:string" />						
+					</xsd:sequence>
+				</xsd:complexType>
+			</xsd:element>		
+			
+			<xsd:element name="pingResponse">
+				<xsd:complexType>
+					<xsd:sequence>
+						<xsd:element name="response" type="xsd:string" />
+					</xsd:sequence>
+				</xsd:complexType>
+			</xsd:element>
+			
+			<xsd:element name="sleep">
+				<xsd:complexType>
+					<xsd:sequence>
+						<xsd:element name="message" type="xsd:string" />						
+					</xsd:sequence>
+				</xsd:complexType>
+			</xsd:element>		
+			
+			<xsd:element name="sleepResponse">
+				<xsd:complexType>
+					<xsd:sequence>
+						<xsd:element name="message" type="xsd:string" />
+					</xsd:sequence>
+				</xsd:complexType>
+			</xsd:element>		
+
+			<xsd:element name="isAsleep">
+				<xsd:complexType />
+			</xsd:element>	
+
+			<xsd:element name="isAsleepResponse">
+				<xsd:complexType>
+					<xsd:sequence>
+						<xsd:element name="message" type="xsd:string" />
+					</xsd:sequence>
+				</xsd:complexType>
+			</xsd:element>	
+
+			<xsd:element name="wakeUp">
+				<xsd:complexType />
+			</xsd:element>	
+
+			<xsd:element name="wakeUpResponse">
+				<xsd:complexType>
+					<xsd:sequence>
+						<xsd:element name="message" type="xsd:string" />						
+					</xsd:sequence>
+				</xsd:complexType>
+			</xsd:element>	
+
+			<xsd:element name="invokeAsync">
+				<xsd:complexType>
+					<xsd:sequence>
+						<xsd:element name="request" type="xsd:string" />						
+					</xsd:sequence>
+				</xsd:complexType>
+			</xsd:element>
+
+			<xsd:element name="invokeAsyncResponse">
+				<xsd:complexType>
+					<xsd:sequence>
+						<xsd:element name="response" type="xsd:string" />						
+					</xsd:sequence>
+				</xsd:complexType>
+			</xsd:element>
+
+			<xsd:element name="customAsync">
+				<xsd:complexType>
+					<xsd:sequence>
+						<xsd:element name="request" type="xsd:string" />						
+					</xsd:sequence>
+				</xsd:complexType>
+			</xsd:element>
+
+			<xsd:element name="customAsyncResponse">
+				<xsd:complexType>
+					<xsd:sequence>
+						<xsd:element name="response" type="xsd:string" />						
+					</xsd:sequence>
+				</xsd:complexType>
+			</xsd:element>
+
+			<xsd:element name="another">
+				<xsd:complexType>
+					<xsd:sequence>
+						<xsd:element name="request" type="xsd:string" />						
+					</xsd:sequence>
+				</xsd:complexType>
+			</xsd:element>
+
+			<xsd:element name="anotherResponse">
+				<xsd:complexType>
+					<xsd:sequence>
+						<xsd:element name="response" type="xsd:string" />						
+					</xsd:sequence>
+				</xsd:complexType>
+			</xsd:element>
+
+			<xsd:element name="throwException">
+				<xsd:complexType>
+					<xsd:sequence>
+						<xsd:element name="exceptionType" type="tns:ExceptionTypeEnum" />
+					</xsd:sequence>
+				</xsd:complexType>
+			</xsd:element>		
+
+			<xsd:simpleType name="ExceptionTypeEnum">
+				<xsd:restriction base="xsd:string">
+					<xsd:enumeration value="NPE" />
+					<xsd:enumeration value="DivideByZero" />
+					<xsd:enumeration value="WSE" />
+					<xsd:enumeration value="SoapFault" />
+					<xsd:enumeration value="WsdlFault" />
+				</xsd:restriction>
+			</xsd:simpleType>	
+			
+			<xsd:element name="throwExceptionFaultBean">
+				<xsd:complexType>
+					<xsd:sequence>
+						<xsd:element name="text" type="xsd:string" />
+					</xsd:sequence>
+				</xsd:complexType>
+			</xsd:element>			
+			
+			<xsd:element name="throwExceptionResponse">
+				<xsd:complexType>
+					<xsd:sequence>
+						<xsd:element name="response" type="xsd:string" />
+					</xsd:sequence>
+				</xsd:complexType>
+			</xsd:element>
+
+		</xsd:schema>
+	</wsdl:types>
+
+	<wsdl:message name="pingRequest">
+		<wsdl:part name="request" element="tns:ping" />
+	</wsdl:message>
+
+	<wsdl:message name="pingResponse">
+		<wsdl:part name="response" element="tns:pingResponse" />
+	</wsdl:message>
+
+	<wsdl:message name="throwExceptionRequest">
+		<wsdl:part name="request" element="tns:throwException" />
+	</wsdl:message>
+
+	<wsdl:message name="throwExceptionResponse">
+		<wsdl:part name="response" element="tns:throwExceptionResponse" />
+	</wsdl:message>
+
+	<wsdl:message name="throwExceptionFault">
+		<wsdl:part name="fault" element="tns:throwExceptionFaultBean" />
+	</wsdl:message>
+
+	<wsdl:message name="sleepRequest">
+		<wsdl:part name="request" element="tns:sleep" />
+	</wsdl:message>
+
+	<wsdl:message name="sleepResponse">
+		<wsdl:part name="response" element="tns:sleepResponse" />
+	</wsdl:message>
+	
+	<wsdl:message name="wakeUpRequest">
+		<wsdl:part name="response" element="tns:wakeUp" />	
+	</wsdl:message>
+
+	<wsdl:message name="wakeUpResponse">
+		<wsdl:part name="response" element="tns:wakeUpResponse" />	
+	</wsdl:message>	
+	
+	<wsdl:message name="isAsleepRequest">
+	<wsdl:part name="response" element="tns:isAsleep" />
+	</wsdl:message>
+
+	<wsdl:message name="isAsleepResponse">
+		<wsdl:part name="response" element="tns:isAsleepResponse" />	
+	</wsdl:message>		
+	
+	<wsdl:message name="invokeAsyncRequest">
+		<wsdl:part name="request" element="tns:invokeAsync" />
+	</wsdl:message>
+
+	<wsdl:message name="invokeAsyncResponse">
+		<wsdl:part name="response" element="tns:invokeAsyncResponse" />
+	</wsdl:message>	
+	
+	<wsdl:message name="customAsyncRequest">
+		<wsdl:part name="request" element="tns:customAsync" />
+	</wsdl:message>
+
+	<wsdl:message name="customAsyncResponse">
+		<wsdl:part name="response" element="tns:customAsyncResponse" />
+	</wsdl:message>		
+	
+	<wsdl:message name="anotherRequest">
+		<wsdl:part name="request" element="tns:another" />
+	</wsdl:message>
+
+	<wsdl:message name="anotherResponse">
+		<wsdl:part name="response" element="tns:anotherResponse" />
+	</wsdl:message>		
+	
+	<wsdl:portType name="AsyncPort">
+		
+		<!-- simple ping operation that will be used for DocLitWrapped async test-->
+		<wsdl:operation name="ping">
+			<wsdl:input  message="tns:pingRequest" />
+			<wsdl:output message="tns:pingResponse" />
+		</wsdl:operation>		
+		
+		<!-- request for the server to goto sleep until release is called-->
+		<wsdl:operation name="sleep">
+			<wsdl:input  message="tns:sleepRequest" />
+			<wsdl:output message="tns:sleepResponse" />
+		</wsdl:operation>
+		
+		<!-- check to see if the sleep operation has been called yet -->
+		<wsdl:operation name="isAsleep">
+			<wsdl:input  message="tns:isAsleepRequest" />
+			<wsdl:output message="tns:isAsleepResponse" />
+		</wsdl:operation>			
+		
+		<!-- force the sleep operation to stop sleeping -->
+		<wsdl:operation name="wakeUp">
+			<wsdl:input  message="tns:wakeUpRequest" />
+			<wsdl:output message="tns:wakeUpResponse" />
+		</wsdl:operation>		
+			
+			
+			
+		<!-- Second suite of tests for Async operation naming:
+			 will test for how the implementation responds to
+		     methods ending in Async with async binding enabled
+		 -->
+		<wsdl:operation name="invokeAsync">
+			<wsdl:input  message="tns:invokeAsyncRequest" />
+			<wsdl:output message="tns:invokeAsyncResponse" />
+		</wsdl:operation>			
+			
+		<!-- will test for how the implementation responds to
+		     methods ending in async with async binding enabled
+		 -->			
+		<wsdl:operation name="customAsync">
+			<wsdl:input  message="tns:customAsyncRequest" />
+			<wsdl:output message="tns:customAsyncResponse" />
+		</wsdl:operation>
+		
+		<!-- we will map this operation to a java method ending in Async
+		 -->		
+		<wsdl:operation name="another">
+			<wsdl:input  message="tns:anotherRequest" />
+			<wsdl:output message="tns:anotherResponse" />
+		</wsdl:operation>
+		
+		<!-- test for varios exceptions, to test exception handling with asyncMEP
+			 enabled
+		 -->		
+		<wsdl:operation name="throwException">
+			<wsdl:input  message="tns:throwExceptionRequest" />
+			<wsdl:output message="tns:throwExceptionResponse" />
+			<wsdl:fault name="throwExceptionFault" message="tns:throwExceptionFault" />			
+		</wsdl:operation>			
+			
+	</wsdl:portType>
+	
+	<wsdl:binding name="Async" type="tns:AsyncPort">
+		<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
+		
+		<wsdl:operation name="ping">
+			<soap:operation soapAction="http://org/test/asyncdoclit/ping" />
+			<wsdl:input>
+				<soap:body use="literal"  />
+			</wsdl:input>
+			<wsdl:output>
+				<soap:body use="literal"  />
+			</wsdl:output>
+		</wsdl:operation>		
+		
+		<wsdl:operation name="sleep">
+			<soap:operation soapAction="http://org/test/asyncdoclit/sleep" />
+			<wsdl:input>
+				<soap:body use="literal"  />
+			</wsdl:input>
+			<wsdl:output>
+				<soap:body use="literal"  />
+			</wsdl:output>
+		</wsdl:operation>
+	
+		<wsdl:operation name="isAsleep">
+			<soap:operation soapAction="http://org/test/asyncdoclit/isAsleep" />
+			<wsdl:input>
+				<soap:body use="literal"  />
+			</wsdl:input>
+			<wsdl:output>
+				<soap:body use="literal"  />
+			</wsdl:output>
+		</wsdl:operation>	
+	
+		<wsdl:operation name="wakeUp">
+			<soap:operation soapAction="http://org/test/asyncdoclit/wakeUp" />
+			<wsdl:input>
+				<soap:body use="literal"  />
+			</wsdl:input>
+			<wsdl:output>
+				<soap:body use="literal"  />
+			</wsdl:output>
+		</wsdl:operation>
+	
+		<wsdl:operation name="invokeAsync">
+			<soap:operation soapAction="http://org/test/asyncdoclit/invokeAsync" />
+			<wsdl:input>
+				<soap:body use="literal"  />
+			</wsdl:input>
+			<wsdl:output>
+				<soap:body use="literal"  />
+			</wsdl:output>
+		</wsdl:operation>		
+	
+		<wsdl:operation name="customAsync">
+			<soap:operation soapAction="http://org/test/asyncdoclit/customAsync" />
+			<wsdl:input>
+				<soap:body use="literal"  />
+			</wsdl:input>
+			<wsdl:output>
+				<soap:body use="literal"  />
+			</wsdl:output>
+		</wsdl:operation>		
+	
+		<wsdl:operation name="another">
+			<soap:operation soapAction="http://org/test/asyncdoclit/another" />
+			<wsdl:input>
+				<soap:body use="literal"  />
+			</wsdl:input>
+			<wsdl:output>
+				<soap:body use="literal"  />
+			</wsdl:output>
+		</wsdl:operation>
+		
+		<wsdl:operation name="throwException">
+			<soap:operation soapAction="http://org/test/asyncdoclit/throwException" />
+			<wsdl:input>
+				<soap:body use="literal"  />
+			</wsdl:input>
+			<wsdl:output>
+				<soap:body use="literal"  />
+			</wsdl:output>
+			<wsdl:fault name="throwExceptionFault">
+				<soap:fault use="literal" name="throwExceptionFault" />
+			</wsdl:fault>				
+		</wsdl:operation>			
+	
+	</wsdl:binding>
+	
+	<wsdl:service name="AsyncService">
+		<wsdl:port binding="tns:Async" name="AsyncPort">
+			<soap:address location="http://localhost:9080/jaxws.asyncdoclit/services/AsyncDocLitWrappedService"
/>
+		</wsdl:port>
+	</wsdl:service>
+	
+</wsdl:definitions>

Added: webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/asyncdoclit/server/ThrowExceptionFault.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/asyncdoclit/server/ThrowExceptionFault.java?rev=641584&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/asyncdoclit/server/ThrowExceptionFault.java
(added)
+++ webservices/axis2/trunk/java/modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/asyncdoclit/server/ThrowExceptionFault.java
Wed Mar 26 14:31:52 2008
@@ -0,0 +1,52 @@
+//
+// Generated By:JAX-WS RI IBM 2.1.1 in JDK 6 (JAXB RI IBM JAXB 2.1.3 in JDK 1.6)
+//
+
+
+package org.apache.axis2.jaxws.sample.asyncdoclit.server;
+
+import javax.xml.ws.WebFault;
+import org.test.asyncdoclit.ThrowExceptionFaultBean;
+
+@WebFault(name = "throwExceptionFaultBean", targetNamespace = "http://org/test/asyncdoclit")
+public class ThrowExceptionFault
+    extends Exception
+{
+
+    /**
+     * Java type that goes as soapenv:Fault detail element.
+     * 
+     */
+    private ThrowExceptionFaultBean faultInfo;
+
+    /**
+     * 
+     * @param faultInfo
+     * @param message
+     */
+    public ThrowExceptionFault(String message, ThrowExceptionFaultBean faultInfo) {
+        super(message);
+        this.faultInfo = faultInfo;
+    }
+
+    /**
+     * 
+     * @param faultInfo
+     * @param message
+     * @param cause
+     */
+    public ThrowExceptionFault(String message, ThrowExceptionFaultBean faultInfo, Throwable
cause) {
+        super(message, cause);
+        this.faultInfo = faultInfo;
+    }
+
+    /**
+     * 
+     * @return
+     *     returns fault bean: org.test.asyncdoclit.ThrowExceptionFaultBean
+     */
+    public ThrowExceptionFaultBean getFaultInfo() {
+        return faultInfo;
+    }
+
+}

Modified: webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/server/dispatcher/JavaDispatcher.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/server/dispatcher/JavaDispatcher.java?rev=641584&r1=641583&r2=641584&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/server/dispatcher/JavaDispatcher.java
(original)
+++ webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/server/dispatcher/JavaDispatcher.java
Wed Mar 26 14:31:52 2008
@@ -121,6 +121,7 @@
         }
         
         public Object call() throws Exception {
+        	if (true) throw new RuntimeException("MIKE - this should do it");
             try {
                 if (log.isDebugEnabled()) {
                     log.debug("Invoking target endpoint via the async worker.");



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message