svn commit: r1001453 - /axis/axis2/java/core/trunk/src/site/xdoc/articles.xml
Author: deepal Date: Sun Sep 26 15:31:24 2010 New Revision: 1001453 URL: http://svn.apache.org/viewvc?rev=1001453&view=rev Log: adding new articles Modified: axis/axis2/java/core/trunk/src/site/xdoc/articles.xml Modified: axis/axis2/java/core/trunk/src/site/xdoc/articles.xml URL: http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/src/site/xdoc/articles.xml?rev=1001453&r1=1001452&r2=1001453&view=diff == --- axis/axis2/java/core/trunk/src/site/xdoc/articles.xml (original) +++ axis/axis2/java/core/trunk/src/site/xdoc/articles.xml Sun Sep 26 15:31:24 2010 @@ -114,6 +114,11 @@ Invoking Web Services using Apache Axis2 Writing Your Own services.xml for Axis2 Web Services- By Deepal Jayasinghe http://wso2.org/library/2068";> ADB Generated Code in Apache Axis2- By Amila Suriarachchi +http://wso2.org/library/articles/working-rpcserviceclient";>Working with RPCServiceClient- By Deepal Jayasinghe +http://www.developer.com/open/article.php/10930_3777111_2/Embedding-Apache-Axis2-into-Existing-Applications.htm";>Embedding Apache Axis2 into Existing Applications- By Deepal Jayasinghe +http://www.developer.com/java/web/article.php/10935_3863416_2/Using-Axis2-and-Java-for-Asynchronous-Web-Service-Invocation-on-the-Client-Side.htm";>Using Axis2 and Java for Asynchronous Web Service Invocation on the Client Side- By Deepal Jayasinghe + + http://www.ibm.com/developerworks/webservices/library/ws-java2/";>Java Web services, Part 2: Digging into Axis2: AXIOM - By Dennis Sosnoski (30 Nov
svn commit: r1062179 - /axis/axis2/java/core/trunk/modules/kernel/resources/services.xsd
Author: deepal Date: Sat Jan 22 15:43:12 2011 New Revision: 1062179 URL: http://svn.apache.org/viewvc?rev=1062179&view=rev Log: fix for issue - AXIS2-4052 Modified: axis/axis2/java/core/trunk/modules/kernel/resources/services.xsd Modified: axis/axis2/java/core/trunk/modules/kernel/resources/services.xsd URL: http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/kernel/resources/services.xsd?rev=1062179&r1=1062178&r2=1062179&view=diff == --- axis/axis2/java/core/trunk/modules/kernel/resources/services.xsd (original) +++ axis/axis2/java/core/trunk/modules/kernel/resources/services.xsd Sat Jan 22 15:43:12 2011 @@ -36,7 +36,7 @@ - + @@ -51,7 +51,7 @@ - +
svn commit: r1062323 - /axis/axis2/java/core/trunk/modules/codegen/src/org/apache/axis2/wsdl/codegen/writer/FileWriter.java
Author: deepal Date: Sun Jan 23 05:06:11 2011 New Revision: 1062323 URL: http://svn.apache.org/viewvc?rev=1062323&view=rev Log: applying the patch in https://issues.apache.org/jira/browse/AXIS2-4934 Modified: axis/axis2/java/core/trunk/modules/codegen/src/org/apache/axis2/wsdl/codegen/writer/FileWriter.java Modified: axis/axis2/java/core/trunk/modules/codegen/src/org/apache/axis2/wsdl/codegen/writer/FileWriter.java URL: http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/codegen/src/org/apache/axis2/wsdl/codegen/writer/FileWriter.java?rev=1062323&r1=1062322&r2=1062323&view=diff == --- axis/axis2/java/core/trunk/modules/codegen/src/org/apache/axis2/wsdl/codegen/writer/FileWriter.java (original) +++ axis/axis2/java/core/trunk/modules/codegen/src/org/apache/axis2/wsdl/codegen/writer/FileWriter.java Sun Jan 23 05:06:11 2011 @@ -171,7 +171,7 @@ public abstract class FileWriter { * @throws Exception */ public void parse(Document doc, URIResolver resolver) throws Exception { -if (!fileExists) { +if (!fileExists || this.isOverride()) { XSLTTemplateProcessor.parse(this.stream, doc, this.xsltStream,
svn commit: r1082600 - /axis/axis2/java/core/trunk/src/site/xdoc/articles.xml
Author: deepal Date: Thu Mar 17 17:26:50 2011 New Revision: 1082600 URL: http://svn.apache.org/viewvc?rev=1082600&view=rev Log: adding new book to the articles Modified: axis/axis2/java/core/trunk/src/site/xdoc/articles.xml Modified: axis/axis2/java/core/trunk/src/site/xdoc/articles.xml URL: http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/src/site/xdoc/articles.xml?rev=1082600&r1=1082599&r2=1082600&view=diff == --- axis/axis2/java/core/trunk/src/site/xdoc/articles.xml (original) +++ axis/axis2/java/core/trunk/src/site/xdoc/articles.xml Thu Mar 17 17:26:50 2011 @@ -37,7 +37,14 @@ question and answers published on various Web sites on the Apache Axis2 engine. These references will prove to be a great help in boosting your knowledge on Axis2. -Books:http://www.packtpub.com/article/create-quality-web-services-with-quicktstart-apache-axis2";> +Books: + +https://www.packtpub.com/apache-axis2-web-services/book";> +Apache Axis2 Web Services +- By Deepal Jayasinghe and Afkham Azeez +https://www.packtpub.com/sites/default/files/imagecache/productview/1568_Apache%20Axis2cov.jpg";> + +http://www.packtpub.com/article/create-quality-web-services-with-quicktstart-apache-axis2";> Quicktstart Apache Axis2 - By Deepal Jayasinghe http://images.packtpub.com/images/100x123/1847192866.png";>
svn commit: r1139484 - /axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/receivers/AbstractMessageReceiver.java
Author: deepal Date: Sat Jun 25 02:48:11 2011 New Revision: 1139484 URL: http://svn.apache.org/viewvc?rev=1139484&view=rev Log: Fixed the request scope Lifecycle destroy method. Now we call the destroy method after business logic invocation is completed. Modified: axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/receivers/AbstractMessageReceiver.java Modified: axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/receivers/AbstractMessageReceiver.java URL: http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/receivers/AbstractMessageReceiver.java?rev=1139484&r1=1139483&r2=1139484&view=diff == --- axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/receivers/AbstractMessageReceiver.java (original) +++ axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/receivers/AbstractMessageReceiver.java Sat Jun 25 02:48:11 2011 @@ -120,6 +120,10 @@ public abstract class AbstractMessageRec throw fault; } } finally { +//We can call the serviceContext destroy method for request scope services +if (Constants.SCOPE_REQUEST.equals(messageCtx.getAxisService().getScope())) { + DependencyManager.destroyServiceObject(messageCtx.getServiceContext()); +} restoreThreadContext(tc); } }
svn commit: r1154615 - in /axis/axis2/java/core/trunk/modules: integration/test/org/apache/axis2/deployment/ integration/test/org/apache/axis2/engine/ integration/test/org/apache/axis2/integration/ ke
Author: deepal Date: Sat Aug 6 22:32:14 2011 New Revision: 1154615 URL: http://svn.apache.org/viewvc?rev=1154615&view=rev Log: Fixing the replyTo problem. Now if the request contains replyTo address (nonanonymous). then we first send the ACK through the incoming transport and send the application reply through the replyTo address. - We need to build the envelop, so we build it - If message contains MTOM or SWA then we build with attachment. [Added a test case] As part of the fix I had to fix PausingHandlerExecutionTest, because now the flow complete call differently if message contains replyTo. - In handers, - Flow complete for in handler - out handlers - Flow complete for out handler I also fixed TargetResolverServiceTest, I think either test is doing something wrong or TargetResolver itself is doing something wrong. Will bring the dicusssion to the mailing list. Added: axis/axis2/java/core/trunk/modules/integration/test/org/apache/axis2/engine/LongRunningServiceTest.java Modified: axis/axis2/java/core/trunk/modules/integration/test/org/apache/axis2/deployment/TargetResolverServiceTest.java axis/axis2/java/core/trunk/modules/integration/test/org/apache/axis2/engine/Echo.java axis/axis2/java/core/trunk/modules/integration/test/org/apache/axis2/engine/PausingHandlerExecutionTest.java axis/axis2/java/core/trunk/modules/integration/test/org/apache/axis2/integration/UtilServer.java axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/receivers/AbstractMessageReceiver.java Modified: axis/axis2/java/core/trunk/modules/integration/test/org/apache/axis2/deployment/TargetResolverServiceTest.java URL: http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/integration/test/org/apache/axis2/deployment/TargetResolverServiceTest.java?rev=1154615&r1=1154614&r2=1154615&view=diff == --- axis/axis2/java/core/trunk/modules/integration/test/org/apache/axis2/deployment/TargetResolverServiceTest.java (original) +++ axis/axis2/java/core/trunk/modules/integration/test/org/apache/axis2/deployment/TargetResolverServiceTest.java Sat Aug 6 22:32:14 2011 @@ -39,7 +39,7 @@ public class TargetResolverServiceTest e public void receive(MessageContext msgContext) throws AxisFault { // Set the reply to on the server side to test server side // target resolvers - msgContext.setReplyTo(new EndpointReference( + msgContext.setTo(new EndpointReference( "http://ws.apache.org/new/anonymous/address";)); new RawXMLINOutMessageReceiver().receive(msgContext); } Modified: axis/axis2/java/core/trunk/modules/integration/test/org/apache/axis2/engine/Echo.java URL: http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/integration/test/org/apache/axis2/engine/Echo.java?rev=1154615&r1=1154614&r2=1154615&view=diff == --- axis/axis2/java/core/trunk/modules/integration/test/org/apache/axis2/engine/Echo.java (original) +++ axis/axis2/java/core/trunk/modules/integration/test/org/apache/axis2/engine/Echo.java Sat Aug 6 22:32:14 2011 @@ -29,7 +29,7 @@ public class Echo { private static final Log log = LogFactory.getLog(Echo.class); public static final String SERVICE_NAME = "EchoXMLService"; public static final String ECHO_OM_ELEMENT_OP_NAME = "echoOMElement"; - + public Echo() { } @@ -42,7 +42,7 @@ public class Echo { log.info("echoOMElementNoResponse service called."); } - public void echoWithExeption(OMElement omEle) throws Exception { +public void echoWithExeption(OMElement omEle) throws Exception { throw new Exception("Invoked the service"); } @@ -55,6 +55,21 @@ public class Echo { return omEle; } +public OMElement longRunning(OMElement omEle) { +omEle.buildWithAttachments(); +omEle.setLocalName(omEle.getLocalName() + "Response"); +if (omEle.getFirstElement().getText().trim().startsWith("fault")) { +throw new RuntimeException("fault string found in echoOMElement"); +} +try { +Thread.sleep(6); +} catch (Exception ex) { +ex.printStackTrace(); +} +return omEle; +} + + public OMElement echoOM(OMElement omEle) { return omEle; } @@ -68,7 +83,7 @@ public class Echo { } public OMElement echoMTOMtoBase64(OMElement omEle) { -OMText omText = (OMText)(omEle.getFirstElement()).getFirstOMChild(); +OMText omText = (OMText) (omEle.getFirstElement()).getFirstOMCh
svn commit: r1631608 - /axis/axis2/java/core/trunk/modules/transport/http/src/org/apache/axis2/transport/http/AxisServlet.java
Author: deepal Date: Tue Oct 14 03:04:36 2014 New Revision: 1631608 URL: http://svn.apache.org/r1631608 Log: Applying the patch https://issues.apache.org/jira/secure/attachment/12674478/AXIS2-5673.patch Modified: axis/axis2/java/core/trunk/modules/transport/http/src/org/apache/axis2/transport/http/AxisServlet.java Modified: axis/axis2/java/core/trunk/modules/transport/http/src/org/apache/axis2/transport/http/AxisServlet.java URL: http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/transport/http/src/org/apache/axis2/transport/http/AxisServlet.java?rev=1631608&r1=1631607&r2=1631608&view=diff == --- axis/axis2/java/core/trunk/modules/transport/http/src/org/apache/axis2/transport/http/AxisServlet.java (original) +++ axis/axis2/java/core/trunk/modules/transport/http/src/org/apache/axis2/transport/http/AxisServlet.java Tue Oct 14 03:04:36 2014 @@ -87,11 +87,11 @@ import java.util.concurrent.CountDownLat */ public class AxisServlet extends HttpServlet { private static final long serialVersionUID = 3105135058353738906L; - + static final OnDemandLogger log = new OnDemandLogger(AxisServlet.class); public static final String CONFIGURATION_CONTEXT = "CONFIGURATION_CONTEXT"; public static final String SESSION_ID = "SessionId"; - + private static final Set metadataQueryParamNames; protected transient ConfigurationContext configContext; @@ -108,9 +108,9 @@ public class AxisServlet extends HttpSer private boolean closeReader = true; private static final int BUFFER_SIZE = 1024 * 8; - + private boolean initCalled = false; - + private transient AxisServletListener httpListener; private transient AxisServletListener httpsListener; @@ -145,7 +145,7 @@ public class AxisServlet extends HttpSer //set the initial buffer for a larger value response.setBufferSize(BUFFER_SIZE); - + preprocessRequest(request); MessageContext msgContext; @@ -157,9 +157,9 @@ public class AxisServlet extends HttpSer try { // adding ServletContext into msgContext; String url = request.getRequestURL().toString(); - + OutputStream bufferedOut = new BufferedOutputStream(out); - + InvocationResponse pi = HTTPTransportUtils. processHTTPPostRequest(msgContext, new BufferedInputStream(request.getInputStream()), @@ -179,8 +179,8 @@ public class AxisServlet extends HttpSer } // if data has not been sent back and this is not a signal response -if (!TransportUtils.isResponseWritten(msgContext) - && (((RequestResponseTransport) +if (!TransportUtils.isResponseWritten(msgContext) + && (((RequestResponseTransport) msgContext.getProperty( RequestResponseTransport.TRANSPORT_CONTROL)). getStatus() != RequestResponseTransport. @@ -193,7 +193,7 @@ public class AxisServlet extends HttpSer + msgContext .getProperty(Constants.Configuration.CHARACTER_SET_ENCODING)); } - + // Make sure that no data remains in the BufferedOutputStream even if the message // formatter doesn't call flush bufferedOut.flush(); @@ -458,7 +458,7 @@ public class AxisServlet extends HttpSer */ @Override public void init(ServletConfig config) throws ServletException { - + // prevent this method from being called more than once per instance initCalled = true; super.init(config); @@ -516,9 +516,12 @@ public class AxisServlet extends HttpSer "unreliable."); } -ListenerManager listenerManager = new ListenerManager(); -listenerManager.init(configContext); -listenerManager.start(); +// AXIS2-5673: Create a new ListenerManager only if configContext does not have one already. +if (configContext.getListenerManager() == null) { +ListenerManager listenerManager = new ListenerManager(); +listenerManager.init(configContext); +listenerManager.start(); +} } private AxisServletListener getAxisServletListener(String name) { @@ -563,7 +566,7 @@ public class AxisServlet extends HttpSer } else { MultiThreadedHttpConnectionManager.shutdownAll(); } - + } private String getHTTPClientVersion()
svn commit: r1688758 - in /axis/axis2/java/core/trunk/modules: codegen/src/org/apache/axis2/wsdl/codegen/ codegen/test-resources/schemas/custom_schemas/ integration/test/org/apache/axis2/wsdl/ java2ws
Author: deepal Date: Thu Jul 2 02:37:34 2015 New Revision: 1688758 URL: http://svn.apache.org/r1688758 Log: applying pacth for AXIS2-5672 Added: axis/axis2/java/core/trunk/modules/integration/test/org/apache/axis2/wsdl/ axis/axis2/java/core/trunk/modules/integration/test/org/apache/axis2/wsdl/ExtensionTypesTest.java axis/axis2/java/core/trunk/modules/kernel/test-resources/wsdl/Version.wsdl axis/axis2/java/core/trunk/modules/kernel/test/org/apache/axis2/wsdl/ axis/axis2/java/core/trunk/modules/kernel/test/org/apache/axis2/wsdl/WSDLUtilTest.java Modified: axis/axis2/java/core/trunk/modules/codegen/src/org/apache/axis2/wsdl/codegen/CodeGenerationEngine.java axis/axis2/java/core/trunk/modules/codegen/test-resources/schemas/custom_schemas/generated.xsd axis/axis2/java/core/trunk/modules/java2wsdl/test/org/apache/axis2/description/Java2WSDLTest.java axis/axis2/java/core/trunk/modules/jaxws/test/org/apache/axis2/jaxws/description/DescriptionTestUtils2.java axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/description/AxisService.java axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/description/WSDL11ToAxisServiceBuilder.java axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/wsdl/WSDLUtil.java axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/wsdl/util/WSDLWrapperReloadImpl.java axis/axis2/java/core/trunk/modules/kernel/test-resources/wsdl/actionTests.wsdl axis/axis2/java/core/trunk/modules/kernel/test-resources/wsdl/printWSDLreference.wsdl axis/axis2/java/core/trunk/modules/kernel/test-resources/wsdl/testGenerateInterfaceOperationElement11_WSDL.wsdl axis/axis2/java/core/trunk/modules/kernel/test-resources/wsdl/testGenerateInterfaceOperationElement_WSDL.wsdl axis/axis2/java/core/trunk/modules/kernel/test/org/apache/axis2/addressing/wsdl/WSDL11ActionHelperTest.java axis/axis2/java/core/trunk/modules/kernel/test/org/apache/axis2/description/WSDL11ToAxisServiceBuilderTest.java axis/axis2/java/core/trunk/modules/kernel/test/org/apache/axis2/description/WSDLWrapperTest.java axis/axis2/java/core/trunk/modules/metadata/src/org/apache/axis2/jaxws/description/builder/JAXWSRIWSDLGenerator.java axis/axis2/java/core/trunk/modules/metadata/src/org/apache/axis2/jaxws/util/WSDL4JWrapper.java axis/axis2/java/core/trunk/modules/metadata/src/org/apache/axis2/jaxws/wsdl/WSDLReaderConfiguratorImpl.java axis/axis2/java/core/trunk/modules/metadata/test/org/apache/axis2/jaxws/description/DescriptionTestUtils.java axis/axis2/java/core/trunk/modules/metadata/test/org/apache/axis2/metadata/registry/MetadataFactoryRegistryTests.java axis/axis2/java/core/trunk/modules/tool/axis2-eclipse-codegen-plugin/src/main/java/org/apache/axis2/tool/codegen/eclipse/util/WSDLPropertyReader.java axis/axis2/java/core/trunk/modules/tool/axis2-idea-plugin/src/main/java/org/apache/axis2/tools/bean/CodegenBean.java axis/axis2/java/core/trunk/modules/tool/axis2-idea-plugin/src/main/java/org/apache/ideaplugin/frames/WSDLFileSelectionPage.java Modified: axis/axis2/java/core/trunk/modules/codegen/src/org/apache/axis2/wsdl/codegen/CodeGenerationEngine.java URL: http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/codegen/src/org/apache/axis2/wsdl/codegen/CodeGenerationEngine.java?rev=1688758&r1=1688757&r2=1688758&view=diff == --- axis/axis2/java/core/trunk/modules/codegen/src/org/apache/axis2/wsdl/codegen/CodeGenerationEngine.java (original) +++ axis/axis2/java/core/trunk/modules/codegen/src/org/apache/axis2/wsdl/codegen/CodeGenerationEngine.java Thu Jul 2 02:37:34 2015 @@ -28,6 +28,7 @@ import org.apache.axis2.description.WSDL import org.apache.axis2.util.CommandLineOption; import org.apache.axis2.util.CommandLineOptionConstants; import org.apache.axis2.util.CommandLineOptionParser; +import org.apache.axis2.wsdl.WSDLUtil; import org.apache.axis2.wsdl.codegen.emitter.Emitter; import org.apache.axis2.wsdl.codegen.extension.CodeGenExtension; import org.apache.axis2.wsdl.databinding.TypeMapper; @@ -305,18 +306,9 @@ public class CodeGenerationEngine { */ public Definition readInTheWSDLFile(final String uri) throws WSDLException { -WSDLReader reader = WSDLFactory.newInstance().newWSDLReader(); + WSDLReader reader = WSDLUtil.newWSDLReaderWithPopulatedExtensionRegistry(); reader.setFeature("javax.wsdl.importDocuments", true); -ExtensionRegistry extReg = WSDLFactory.newInstance().newPopulatedExtensionRegistry(); -extReg.registerExtensionAttributeType(Input.class, -new QName(AddressingConstants.Final.WSAW_NAMESPACE, AddressingConstants.WSA_ACTION), -AttributeExtensible.STRING_TYPE); -extReg.registerExtensionAttributeType(Output.class, -