{"id":146,"date":"2008-10-17T16:06:18","date_gmt":"2008-10-17T20:06:18","guid":{"rendered":"http:\/\/jianmingli.com\/wp\/?p=146"},"modified":"2009-01-29T22:55:04","modified_gmt":"2009-01-30T03:55:04","slug":"axis2","status":"publish","type":"post","link":"https:\/\/jianmingli.com\/wp\/?p=146","title":{"rendered":"Axis2"},"content":{"rendered":"<p><strong>Deploy Axis2 into Tomcat<\/strong><br \/>\nDownload Axis2 standard binary distribution (axis2-1.4.1-bin.zip) from <a href=\"http:\/\/ws.apache.org\/axis2\/download\/1_4_1\/download.cgi\">here<\/a><\/p>\n<p>Download and install Ant (apache-ant-1.7.0-bin.zip) if it was not already installed<\/p>\n<p>Create Axis2 war file<\/p>\n<pre>axis2-1.4.1\\webapp>ant create.war<\/pre>\n<p>Generated: axis2-1.4.1\\dist\\axis2.war<\/p>\n<p>Copy axis2-1.4.1\\dist\\axis2.war into the tomcat\\webapps directory<\/p>\n<p><strong>Axis2 Home Page<\/strong><br \/>\nURL: http:\/\/localhost:8080\/axis2<br \/>\nDefault admin login: admin\/axis<br \/>\nChange admin user\/pass: axis2.xml<\/p>\n<p><strong>Quick Start: StockQuoteService<\/strong><\/p>\n<p>Generate service<\/p>\n<pre>C:\\Program Files\\axis2-1.4.1\\samples\\quickstart>ant<\/pre>\n<p>Generated build\\StockQuoteService.aar with the structure<\/p>\n<pre>META-INF\\services.xml\r\nsamples\\quickstart\\service\\pojo\\StockQuoteService.class\r\n<\/pre>\n<p>services.xml:<\/p>\n<pre lang=\"xml\">\r\n<service name=\"StockQuoteService\" scope=\"application\" targetNamespace=\"http:\/\/quickstart.samples\/\">\r\n    <description>\r\n        Stock Quote Service\r\n    <\/description>\r\n    <messageReceivers>\r\n        <messageReceiver mep=\"http:\/\/www.w3.org\/2004\/08\/wsdl\/in-only\"\r\n                         class=\"org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver\"\/>\r\n        <messageReceiver mep=\"http:\/\/www.w3.org\/2004\/08\/wsdl\/in-out\"\r\n                         class=\"org.apache.axis2.rpc.receivers.RPCMessageReceiver\"\/>\r\n    <\/messageReceivers>\r\n    <schema schemaNamespace=\"http:\/\/quickstart.samples\/xsd\"\/>\r\n    <parameter name=\"ServiceClass\">samples.quickstart.service.pojo.StockQuoteService<\/parameter>\r\n<\/service><\/pre>\n<p>Copy StockQuoteService.aar to C:\\Program Files\\apache-tomcat-5.5.27\\webapps\\axis2\\WEB-INF\\services<\/p>\n<p><strong>Creating Clients<\/strong><\/p>\n<p><em>Client generating methods<\/em><br \/>\nADB (Axis databinding framework): simple but limited schema bindings. XML&#8211;>Java binding only.<br \/>\nXMLBeans: full schema binding support but more complex. XML&#8211;>Java binding only.<br \/>\nJiBX: full schema binding support, easy to use, two way XML <--> Java binding support. Can be complicated to setup.<\/p>\n<p>I tried XMLBeans method and generated all Java classes but stumbled when creating client to communicate with web services. It doesn&#8217;t seem intuitive at all on how to use the generated classes. I&#8217;m putting Axis2 on the back burner for now and favor JAX-WS reference implementation (Metro). <a href=\"http:\/\/cup-of-java.blogspot.com\/2007\/06\/jax-ws-ri-is-good-good-good.html\">Here<\/a> is an interesting post lauding the Metro.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Deploy Axis2 into Tomcat Download Axis2 standard binary distribution (axis2-1.4.1-bin.zip) from here Download and install Ant (apache-ant-1.7.0-bin.zip) if it was not already installed Create Axis2 war file axis2-1.4.1\\webapp>ant create.war Generated: axis2-1.4.1\\dist\\axis2.war Copy axis2-1.4.1\\dist\\axis2.war into the tomcat\\webapps directory Axis2 Home Page &hellip; <a href=\"https:\/\/jianmingli.com\/wp\/?p=146\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[40,41,22],"tags":[],"class_list":["post-146","post","type-post","status-publish","format-standard","hentry","category-jax-rpc","category-jax-ws","category-soa"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/s8cRUO-axis2","_links":{"self":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/146","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=146"}],"version-history":[{"count":4,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/146\/revisions"}],"predecessor-version":[{"id":316,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/146\/revisions\/316"}],"wp:attachment":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=146"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=146"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=146"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}