{"id":67418,"date":"2021-07-21T04:10:07","date_gmt":"2021-07-21T08:10:07","guid":{"rendered":"http:\/\/bangla.salearningschool.com\/recent-posts\/apache-axis-installation-application-deployment-soap-message-monitoring-java-short-notes\/"},"modified":"2021-07-21T04:10:07","modified_gmt":"2021-07-21T08:10:07","slug":"apache-axis-installation-application-deployment-soap-message-monitoring-java-short-notes","status":"publish","type":"post","link":"http:\/\/bangla.sitestree.com\/?p=67418","title":{"rendered":"Apache Axis: Installation: Application Deployment: SOAP Message Monitoring #Java Short Notes"},"content":{"rendered":"<p>Apache Axis: Installation: Application Deployment: SOAP Message Monitoring &#8230;.. &#8230;. &#8230;. &#8230;. &#8230;. &#8230; &#8230; &#8230; &#8230;<\/p>\n<ul>\n<li> <a href='http:\/\/justetc.net\/knowledge\/multimedia_training\/displayArticle.php?table=TrainingVideos&amp;articleID=32' target='new' rel=\"noopener\">Video Tutorial Explaining the Concepts in this Short-Note<\/a>   <\/li>\n<li> JAX-RPC is about SOA, SOAP, XML, Remote communications   <\/li>\n<li> Apache Axis implements JAX-RPC API. Hence, when you code to this API, your application will run with other implementation of JAX-RPC API like Sun and BEA   <\/li>\n<li> Axis comes as axis.jar that implements JAX-RPC. jaxrpc.jar and saaj.jar files contain the declarations for JAX-RPC   <\/li>\n<li> From axis distribution you have to copy webapps\/axis to your servlet container (tomcat 6.0\/webapps\/axis) or to your applications (to convert your current application to SOA application)   <\/li>\n<li> Axis needs an XML parser. You can use the default crimson parser that comes with jdk (from 1.4). Though Xerces parser is recommended for Apache Axis   <\/li>\n<li> To add Xerces parser to your axis installation use xml-apis.jar and xercesImpl.jar. Place them under axis\/WEB-INF\/lib directory. Or you can [point your CLASSPATH or AXISCLASSPATH environment variable to these jar files. Otherwise you will get erros like ClassNotFound errors relating to Xerces or DOM   <\/li>\n<li> jaxrpc.jar and saaj.jar contain javax packages. The way jdk loads jar files &#8211; based on the version these jar files may not get loaded sometimes. Sometimes axis (axis\/happyaxis.jsp) may not find these jar files, copying these jar files from axis\/WEB-INF\/lib to CATALINA_HOME\/common\/lib may help.\t\t restarting Tomcat is required   <\/li>\n<li> Weblogic webservices.jar may conflict with Axis&#8217; saaj.jar. Hence, you have to find a way out. Consult Axis and weblogic documentation   <\/li>\n<li> Test apache axis installation: Go to http:\/\/localhost:8080\/axis &#8211; change the port as appropriate &#8211; If you do not see any error message &#8211; axis is working &#8211; you can click on the validation &#8211; you will see notes about your installation   <\/li>\n<li> Test a SOAP endpoint: Go to http:\/\/localhost\/axis\/services\/Version?method=getVersion &#8211; you will see an XML output   <\/li>\n<li> Web services can be deployed as java files or jws web-services. To test a jws endpoint please go to &#8211; at http:\/\/localhost:8080\/axis\/EchoHeaders.jws?method=list and you will see the XML listing of your application headers   <\/li>\n<li> How to add your own Web Service:\n<ul>\n<li> Copy the classes and libraries of your new service into the Axis WAR directory tree        <\/li>\n<li> Tell the AxisEngine about your new services and point to the files. 1. submit XML deployment descriptor via the Admin web-service ( done with AdminClient or  ant task)      <\/li>\n<\/ul>\n<\/li>\n<li> You can deploy your classes under axis\/WEB-INF\/classes directory or you can deploy your application jar files under axis\/WEB-INF\/lib directory [in the Axis installation]   <\/li>\n<li> For your web-services to work java must find the jar files such as: axis.jar, commons-discovery.jar, commons-logging.jar, jaxrpc.jar, saaj.jar, log4j-1.2.8.jar (or another logging jar), and the XML parser jar\t\t(e.g., xerces.jar)   <\/li>\n<li> You can copy  these jars under your web application server (WEB-INF\/lib for Tomcat) so that deployed services get them, you can also bind them as part of your application, or you can use the following (or similar) environment variables<br \/>   Setting environment variables &#8211;  temporary set up &#8211; dos commands<br \/>set AXIS_HOME=c:axis <br \/>set AXIS_LIB=%AXIS_HOME%lib<br \/>set AXISCLASSPATH=%AXIS_LIB%axis.jar;%AXIS_LIB%commons-discovery.jar;<br \/>%AXIS_LIB%commons-logging.jar;%AXIS_LIB%jaxrpc.jar;%AXIS_LIB%saaj.jar;<br \/>%AXIS_LIB%log4j-1.2.8.jar;%AXIS_LIB%xml-apis.jar;%AXIS_LIB%xercesImpl.jar <br \/>You can set them parmanently from: my computer -&gt; properties -&gt; advanced -&gt; environment variables<\/li>\n<li> Example use: java -cp %AXISCLASSPATH% &#8230;<\/li>\n<li> You can provide everything from AXISCLASSPATH to CLASSPATH    <\/li>\n<li> Linux equivalent:<br \/>    set AXIS_HOME=\/usr\/axis <br \/>\tset AXIS_LIB=$AXIS_HOME\/lib <br \/>\tset AXISCLASSPATH=$AXIS_LIB\/axis.jar:$AXIS_LIB\/commons-discovery.jar: <br \/>\t$AXIS_LIB\/commons-logging.jar:$AXIS_LIB\/jaxrpc.jar:$AXIS_LIB\/saaj.jar: <br \/>\t$AXIS_LIB\/log4j-1.2.8.jar:$AXIS_LIB\/xml-apis.jar:$AXIS_LIB\/xercesImpl.jar<br \/>\texport AXIS_HOME; export AXIS_LIB; <br \/>\texport AXISCLASSPATH  <br \/>\tor set them in your user configuration files \t<\/li>\n<li> Deployment descriptor: when you unzip Axis, under axis\/samples\/stock &#8211; you can see deploy.wsdd as the deployment descriptor. Axis uses axis\/WEB-INF\/server-config.wsdd as the deployment descriptor to tell about it&#8217;s own states\t<\/li>\n<li> In axis distribution there are some sample web-services under axis\/samples &#8211; stock is one of them\t<\/li>\n<li> To deploy stock as a web-service under tomcat you can execute<br \/>\tjava -cp %AXISCLASSPATH% org.apache.axis.client.AdminClient -lhttp:\/\/localhost:8080\/axis\/services\/AdminService deploy.wsdd  or <br \/>\tjava  org.apache.axis.client.AdminClient -lhttp:\/\/localhost:8080\/axis\/services\/AdminService deploy.wsdd <br \/>\tDepends how you configured your classpaths. You need all the jar files as mentioned before. Also you need mailapi.jar, activation.jar, and tools.jar in the classpath \t<\/li>\n<li> Then you can execute the GetQuote operation of the stock service as following: <br \/>\tjava -cp .;%AXISCLASSPATH% samples.stock.GetQuote -lhttp:\/\/localhost:8080\/axis\/servlet\/AxisServlet -uuser1 -wpass1 XXX or <br \/>\tjava  samples.stock.GetQuote -lhttp:\/\/localhost:8080\/axis\/servlet\/AxisServlet -uuser1 -wpass1 XXX <br \/>\tDepends how you configured your classpaths. You need all the jar files as mentioned before. Also you need mailapi.jar, activation.jar, and tools.jar in the classpath <br \/>\tAdditionally, you need to be in the right directory &#8211; i.e. just where samples folder starts. change directory to until samples.\t<\/li>\n<li> How to convert your existing web-applications to axis-based SOA applications:\n<ul>\n<li> Add axis to your application. Add axis.jar, wsdl.jar, saaj.jar, jaxrpc.jar and the other dependent libraries to your application\/WAR file\t    <\/li>\n<li> Copy Axis Servlet declarations and mappings from axis\/WEB-INF\/web.xml to your web.xml file\t    <\/li>\n<li> Build and deploy\t    <\/li>\n<li> Run AdminClient against your own webapp [using java  org.apache.axis.client.AdminClient -lhttp:\/\/localhost:8080\/axis\/services\/AdminService deploy.wsdd ][URL change will be required]\t <\/li>\n<\/ul>\n<\/li>\n<li> How to enable SOAP monitor:\n<ul>\n<li>Using SOAP monitor, you can monitor SOAP requests and responses\t  <\/li>\n<li> Go to $AXIS_HOME\/webapps\/axis and compile SOAPMonitorApplet.java . be careful about your classpath\t  <\/li>\n<li> Copy the class files to the root directory of the web application using the SOAP Monitor (e.g. &#8230;\/tomcat 6.0\/webapps\/axis)\t  <\/li>\n<li> create a deploy-monitor.wsdd file with contents as below:\n<p>\t\t v\t\t v\t<\/p>\n<p>    <\/li>\n<li> Deploy the SOAPMonitorService web service using java org.apache.axis.client.AdminClient -lhttp:\/\/localhost\/axis\/services\/AdminService deploy-monitor.wsdd    <\/li>\n<li> For each service that is to be monitored, add request and response flow definitions to the service&#8217;s deployment descriptor and deploy (or redeploy) the service as follows:\n<p>    <\/li>\n<li> Monitor the message flow using: http:\/\/localhost:8080\/axis\/SOAPMonitor<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p> From: http:\/\/sitestree.com\/?p=5082<br \/> Categories:Java Short Notes<br \/>Tags:<br \/> Post Data:2010-07-13 11:09:28<\/p>\n<p>\t\tShop Online: <a href='https:\/\/www.ShopForSoul.com\/' target='new' rel=\"noopener\">https:\/\/www.ShopForSoul.com\/<\/a><br \/>\n\t\t(Big Data, Cloud, Security, Machine Learning): Courses: <a href='http:\/\/Training.SitesTree.com' target='new' rel=\"noopener\"> http:\/\/Training.SitesTree.com<\/a><br \/>\n\t\tIn Bengali: <a href='http:\/\/Bangla.SaLearningSchool.com' target='new' rel=\"noopener\">http:\/\/Bangla.SaLearningSchool.com<\/a><br \/>\n\t\t<a href='http:\/\/SitesTree.com' target='new' rel=\"noopener\">http:\/\/SitesTree.com<\/a><br \/>\n\t\t8112223 Canada Inc.\/JustEtc: <a href='http:\/\/JustEtc.net' target='new' rel=\"noopener\">http:\/\/JustEtc.net (Software\/Web\/Mobile\/Big-Data\/Machine Learning) <\/a><br \/>\n\t\tShop Online: <a href='https:\/\/www.ShopForSoul.com'> https:\/\/www.ShopForSoul.com\/<\/a><br \/>\n\t\tMedium: <a href='https:\/\/medium.com\/@SayedAhmedCanada' target='new' rel=\"noopener\"> https:\/\/medium.com\/@SayedAhmedCanada <\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Apache Axis: Installation: Application Deployment: SOAP Message Monitoring &#8230;.. &#8230;. &#8230;. &#8230;. &#8230;. &#8230; &#8230; &#8230; &#8230; Video Tutorial Explaining the Concepts in this Short-Note JAX-RPC is about SOA, SOAP, XML, Remote communications Apache Axis implements JAX-RPC API. Hence, when you code to this API, your application will run with other implementation of JAX-RPC API &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"http:\/\/bangla.sitestree.com\/?p=67418\">Continue reading<\/a><\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[1917],"tags":[],"class_list":["post-67418","post","type-post","status-publish","format-standard","hentry","category-fromsitestree-com","item-wrap"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":67442,"url":"http:\/\/bangla.sitestree.com\/?p=67442","url_meta":{"origin":67418,"position":0},"title":"Topics that You Need to Learn to Develop Service Oriented Architecture (SOA) based Enterprise Applications #Java Short Notes","author":"Author-Check- Article-or-Video","date":"July 22, 2021","format":false,"excerpt":"Topics that you need to learn to develop Service Oriented Architecture (SOA) based Enterprise Applications.[Knowing what to learn is the first step of learning.] Web Service Overview: SOA, Web-services, Web Service Standards, and Standard Managers XML Syntax: XML vs. HTML, W3C and the XML Specification, XML Syntax XML Namespaces: XML\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":67404,"url":"http:\/\/bangla.sitestree.com\/?p=67404","url_meta":{"origin":67418,"position":1},"title":"How to create apache axis based SOA application #Java Short Notes","author":"Author-Check- Article-or-Video","date":"July 21, 2021","format":false,"excerpt":"Tools required\/Used: J2SE6, Tomcat 6.0.16, Apache Axis 1.4, mailapi.jar and activation.jar. Tools can be downloaded from Apache Axis Based SOA Application Development DID NOT MENTION in the Video: You have to keep tools.jar from J2SE6 in the classpath or make it accessible from the application anyhow Set your CATALINA_HOME and\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":66421,"url":"http:\/\/bangla.sitestree.com\/?p=66421","url_meta":{"origin":67418,"position":2},"title":"Key J2EE  Components : Basic Concepts with Examples #Java Short Notes","author":"Author-Check- Article-or-Video","date":"July 19, 2021","format":false,"excerpt":"Java EE 5 (J2EE 5) uses XML deployment descriptors for the configuration of the web-applications and web-components. What Java EE provides? It provides the internal framework\/structure\/system level capability\/system-level infrastructure to support large enterprise level applications with features like distributed database, distributed computing , security, and transaction management. J2EE also provides\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":75971,"url":"http:\/\/bangla.sitestree.com\/?p=75971","url_meta":{"origin":67418,"position":3},"title":"Introduction to soa and apache axis","author":"Sayed","date":"April 14, 2024","format":false,"excerpt":"https:\/\/youtu.be\/Dw6B-Zft55s","rel":"","context":"In &quot;From Youtube Channel&quot;","block_context":{"text":"From Youtube Channel","link":"http:\/\/bangla.sitestree.com\/?cat=1952"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/img.youtube.com\/vi\/Dw6B-Zft55s\/0.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":65621,"url":"http:\/\/bangla.sitestree.com\/?p=65621","url_meta":{"origin":67418,"position":4},"title":"Introduction to soa and apache axis #Mobile Development #AngularJS","author":"Author-Check- Article-or-Video","date":"July 9, 2021","format":false,"excerpt":"From: http:\/\/sitestree.com\/?p=2744 Categories:Mobile Development, AngularJSTags:soa, apache, axis Post Data:2015-10-25 06:16:19 Shop Online: https:\/\/www.ShopForSoul.com\/ (Big Data, Cloud, Security, Machine Learning): Courses: http:\/\/Training.SitesTree.com In Bengali: http:\/\/Bangla.SaLearningSchool.com http:\/\/SitesTree.com 8112223 Canada Inc.\/JustEtc: http:\/\/JustEtc.net (Software\/Web\/Mobile\/Big-Data\/Machine Learning) Shop Online: https:\/\/www.ShopForSoul.com\/ Medium: https:\/\/medium.com\/@SayedAhmedCanada","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":67476,"url":"http:\/\/bangla.sitestree.com\/?p=67476","url_meta":{"origin":67418,"position":5},"title":"Some New Features in Java EE 6 #Java Short Notes","author":"Author-Check- Article-or-Video","date":"July 23, 2021","format":false,"excerpt":"Some New Features in Java EE 6 Was focused in making the Java EE platform light weight and making the environment easier for the developers Introduced new APIs such as WebBeans 1.0 Made servlet technologies to be more matured Started to prune APIs that are not used much or not\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/67418","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=67418"}],"version-history":[{"count":0,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/67418\/revisions"}],"wp:attachment":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=67418"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=67418"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=67418"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}