{"id":946,"date":"2009-06-01T12:45:20","date_gmt":"2009-06-01T17:45:20","guid":{"rendered":"http:\/\/jianmingli.com\/wp\/?p=946"},"modified":"2009-06-01T14:16:20","modified_gmt":"2009-06-01T19:16:20","slug":"axis2-2","status":"publish","type":"post","link":"https:\/\/jianmingli.com\/wp\/?p=946","title":{"rendered":"Axis2"},"content":{"rendered":"<span id=\"Apache_WS_Evolution\"><h2>Apache WS Evolution<\/h2><\/span>\n<p>First generation: Apache SOAP<br \/>\nSecond generation: Axis<br \/>\nThird generation: Axis2<\/p>\n<span id=\"Axis2_Architecture\"><h2>Axis2 Architecture<\/h2><\/span>\n<span id=\"Core_Modules\"><h3>Core Modules<\/h3><\/span>\n<span id=\"XML_Processing_Module\"><h4>XML Processing Module<\/h4><\/span>\n<p>*AXIOM (Axis Object Model)<br \/>\n&#8211; Based on PULL parser so more control over XML parsing<\/p>\n<span id=\"SOAP_Processing_Module\"><h4>SOAP Processing Module<\/h4><\/span>\n<p>* Handlers: intercept and process part of SOAP message<br \/>\n&#8211; Three scopes: global, service, operation scope<br \/>\n* Phases: logical collection of one or more handlers<br \/>\n&#8211; They&#8217;re handler containers<br \/>\n&#8211; They also order handlers<br \/>\n* Pipers<br \/>\n&#8211; InFlow<br \/>\n~ Last handler is Message Receiver<br \/>\n&#8211; OutFlow<\/p>\n<span id=\"Information_Processing_Module\"><h4>Information Processing Module<\/h4><\/span>\n<p>* Description hierarchy: comes from deployment descriptors<br \/>\nConfiguration<>-ServiceGroup<>-Service<>-Operation<>-Message<br \/>\n* Context hierarchy: keeps run-time data<br \/>\nConfigurationContext<>-ServiceGroupContext<>-ServiceContext<>-OperationContext<>-MessageContext<\/p>\n<span id=\"Deployment_Module\"><h4>Deployment Module<\/h4><\/span>\n<p>* Axis2 supports:<br \/>\n&#8211; Hot deployment<br \/>\n&#8211; Hot update<br \/>\n* Service extension by modules<br \/>\nA module contains:<br \/>\n&#8211; Handlers<br \/>\n&#8211; Third party libraries<br \/>\n&#8211; Module related resources<br \/>\n&#8211; Moduel config file (module.xml)<br \/>\nA module can be deployed as a .mar file<br \/>\n* Axis2 can be deployed as<br \/>\n&#8211; Archive file: a .aar file<br \/>\n&#8211; POJO deployment<br \/>\n&#8211; Custom deployer<\/p>\n<span id=\"Client_API_Module\"><h4>Client API Module<\/h4><\/span>\n<p>* ServiceClient API: used to access SOAP body (payload)<br \/>\nsendRobust(): one way but traps exception<br \/>\nfireAndForget(): one way and don&#8217;t care exception<br \/>\nsendReceive(): sunc two way<br \/>\nsendReceiveNonBlocking(): async two way<\/p>\n<p>* OperationClient API: used to modify SOAP header<br \/>\nCreate ServiceClient -> Create OperationClient -> Create SOAPEnvelope -> Create MessageContext -> Add SOAPEnvelope to MessageContext -> Add MessageContext to OperationClient -> Invoke OperationClient &#8211; (if response) -> Get response MessageContext form OperationClient<\/p>\n<span id=\"Transport_Module\"><h4>Transport Module<\/h4><\/span>\n<p>Supports:<br \/>\n* HTTP\/HTTPS<br \/>\n* TCP: needs WS-Addressing<br \/>\n* SMTP<br \/>\n* JMS<br \/>\n* XMPP<\/p>\n<span id=\"Non_Core_Modules\"><h3>Non Core Modules<\/h3><\/span>\n<span id=\"Code_Generation_Module\"><h4>Code Generation Module<\/h4><\/span>\n<span id=\"Data_Binding_Module\"><h4>Data Binding Module<\/h4><\/span>\n<p>Supports<br \/>\n* ADB (Axiss Data Binding)<br \/>\n* XMLBeans<br \/>\n* JaxMe: included in XMLBeans<br \/>\n* JibX<br \/>\n<div id=\"attachment_950\" style=\"width: 310px\" class=\"wp-caption alignleft\"><a href=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2009\/06\/axis2-code-generation.gif\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-950\" src=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2009\/06\/axis2-code-generation-300x293.gif\" alt=\"Axis2 Code Generation\" title=\"axis2-code-generation\" width=\"300\" height=\"293\" class=\"size-medium wp-image-950\" srcset=\"https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2009\/06\/axis2-code-generation-300x293.gif 300w, https:\/\/jianmingli.com\/wp\/wp-content\/uploads\/2009\/06\/axis2-code-generation.gif 481w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-950\" class=\"wp-caption-text\">Axis2 Code Generation<\/p><\/div><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Apache WS Evolution First generation: Apache SOAP Second generation: Axis Third generation: Axis2 Axis2 Architecture Core Modules XML Processing Module *AXIOM (Axis Object Model) &#8211; Based on PULL parser so more control over XML parsing SOAP Processing Module * Handlers: &hellip; <a href=\"https:\/\/jianmingli.com\/wp\/?p=946\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","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":[14,41],"tags":[],"class_list":["post-946","post","type-post","status-publish","format-standard","hentry","category-java","category-jax-ws"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8cRUO-fg","_links":{"self":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/946","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=946"}],"version-history":[{"count":7,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/946\/revisions"}],"predecessor-version":[{"id":948,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/946\/revisions\/948"}],"wp:attachment":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=946"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=946"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=946"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}