svn commit: r990207 - /axis/axis2/java/core/trunk/modules/metadata/src/org/apache/axis2/jaxws/i18n/resource.properties
Author: barrettj Date: Fri Aug 27 16:58:08 2010 New Revision: 990207 URL: http://svn.apache.org/viewvc?rev=990207&view=rev Log: Correct quote marks as required by some translation tools. Patch submitted by Phil Adams. Modified: axis/axis2/java/core/trunk/modules/metadata/src/org/apache/axis2/jaxws/i18n/resource.properties Modified: axis/axis2/java/core/trunk/modules/metadata/src/org/apache/axis2/jaxws/i18n/resource.properties URL: http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/metadata/src/org/apache/axis2/jaxws/i18n/resource.properties?rev=990207&r1=990206&r2=990207&view=diff == --- axis/axis2/java/core/trunk/modules/metadata/src/org/apache/axis2/jaxws/i18n/resource.properties (original) +++ axis/axis2/java/core/trunk/modules/metadata/src/org/apache/axis2/jaxws/i18n/resource.properties Fri Aug 27 16:58:08 2010 @@ -353,5 +353,5 @@ axisEndpointReferenceFactoryErr=Cannot c axisEndpointReferenceFactoryErr2=Cannot create an endpoint reference because the address, service name, and/or port name are null. dispatchInvalidTypeWithMode=Unsupported Dispatch Type: Dispatch type javax.xml.soap.SOAPMessage cannot be used with messages in Payload mode. serviceDelegateConstruct2=An attempt was made to construct the ServiceDelegate object with the {0} service and with WebServicesFeatures, but there are no standard features defined for service creation in the current specification. -MethodRetrieverWarning1=Public method {0} will be exposed as a Web Service operation per JAX-WS 2.2 tooling rules. If you intend to expose only operations that have @WebMethod annotation, set the manifest property 'LegacyWebmethod: true' or set a JVM property 'jaxws.runtime.legacyWebMethod=true'. +MethodRetrieverWarning1=Public method {0} will be exposed as a Web Service operation per JAX-WS 2.2 tooling rules. If you intend to expose only operations that have @WebMethod annotation, set the manifest property ''LegacyWebmethod: true'' or set a JVM property ''jaxws.runtime.legacyWebMethod=true''. generateWSDLNonSoap11=This implementation does not contain a WSDL definition and is not a SOAP 1.1 based binding. Per the JAXWS specification, a WSDL definition cannot be generated for this implementation. The implementation class name is {0} \ No newline at end of file
svn commit: r990229 - in /axis/axis2/java/core/trunk/modules/jaxws-integration/test/org/apache/axis2/jaxws/provider: SourceProviderTests.java source/SourceProvider.java
Author: nthaker Date: Fri Aug 27 18:52:17 2010 New Revision: 990229 URL: http://svn.apache.org/viewvc?rev=990229&view=rev Log: Test case to make sure no payload is returned in response when a user returns empty Source from Provider api. As per JAX-WS 2.2 spec update empty Source can be created by using default constructor for Source example Source s = new StreamSource(). I am adding this test to verify that the function is already working and that we don't regress that in future. Modified: axis/axis2/java/core/trunk/modules/jaxws-integration/test/org/apache/axis2/jaxws/provider/SourceProviderTests.java axis/axis2/java/core/trunk/modules/jaxws-integration/test/org/apache/axis2/jaxws/provider/source/SourceProvider.java Modified: axis/axis2/java/core/trunk/modules/jaxws-integration/test/org/apache/axis2/jaxws/provider/SourceProviderTests.java URL: http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/jaxws-integration/test/org/apache/axis2/jaxws/provider/SourceProviderTests.java?rev=990229&r1=990228&r2=990229&view=diff == --- axis/axis2/java/core/trunk/modules/jaxws-integration/test/org/apache/axis2/jaxws/provider/SourceProviderTests.java (original) +++ axis/axis2/java/core/trunk/modules/jaxws-integration/test/org/apache/axis2/jaxws/provider/SourceProviderTests.java Fri Aug 27 18:52:17 2010 @@ -262,7 +262,25 @@ public class SourceProviderTests extends } } +public void testProviderEmptySource() throws Exception { +TestLogger.logger.debug("---"); +TestLogger.logger.debug("test: " + getName()); + +Dispatch dispatch = getDispatch(); +String request = "ReturnEmpty"; +Source requestSource = getSource(request); +try { +requestSource = getSource(request); +Source responseSource = dispatch.invoke(requestSource); +//Expecting empty response payload back. Nothing underneath soap body. +assertNull(responseSource); +}catch(Exception e){ +e.printStackTrace(); +fail("Caught exception " + e); +} + +} public void testTwoElementsString() throws Exception { TestLogger.logger.debug("---"); TestLogger.logger.debug("test: " + getName()); Modified: axis/axis2/java/core/trunk/modules/jaxws-integration/test/org/apache/axis2/jaxws/provider/source/SourceProvider.java URL: http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/jaxws-integration/test/org/apache/axis2/jaxws/provider/source/SourceProvider.java?rev=990229&r1=990228&r2=990229&view=diff == --- axis/axis2/java/core/trunk/modules/jaxws-integration/test/org/apache/axis2/jaxws/provider/source/SourceProvider.java (original) +++ axis/axis2/java/core/trunk/modules/jaxws-integration/test/org/apache/axis2/jaxws/provider/source/SourceProvider.java Fri Aug 27 18:52:17 2010 @@ -82,7 +82,10 @@ public class SourceProvider implements P text = userFault; } else if (text != null && text.contains("ReturnNull")) { return null; - } + }else if (text!=null && text.contains("ReturnEmpty")){ +TestLogger.logger.debug(">> Return Empty Source: \n" + text); +return new StreamSource(); +} ByteArrayInputStream stream = new ByteArrayInputStream(text.getBytes());