{"id":150,"date":"2008-10-21T15:08:21","date_gmt":"2008-10-21T19:08:21","guid":{"rendered":"http:\/\/jianmingli.com\/wp\/?p=150"},"modified":"2009-01-24T12:20:59","modified_gmt":"2009-01-24T17:20:59","slug":"jax-ws-client-handler","status":"publish","type":"post","link":"https:\/\/jianmingli.com\/wp\/?p=150","title":{"rendered":"JAX-WS Client Handler"},"content":{"rendered":"<p><strong>Write a handler class implementing SOAPHandler<\/strong><br \/>\n<strong>Define handler chain in the client bindings XML file<\/strong><\/p>\n<pre lang=\"xml\">\r\n<bindings xmlns:xsd=\"http:\/\/www.w3.org\/2001\/XMLSchema\"\r\n    xmlns:wsdl=\"http:\/\/schemas.xmlsoap.org\/wsdl\/\"\r\n    wsdlLocation=\"http:\/\/localhost:8080\/jaxws-fromjavahandler\/addnumbers?wsdl\"\r\n    xmlns=\"http:\/\/java.sun.com\/xml\/ns\/jaxws\">\r\n    <bindings node=\"wsdl:definitions\" xmlns:jws=\"http:\/\/java.sun.com\/xml\/ns\/javaee\">\r\n        <jws:handler-chains>\r\n            <jws:handler-chain>\r\n                <jws:handler>\r\n                    <jws:handler-class>fromjavahandler.common.LoggingHandler<\/jws:handler-class>\r\n                <\/jws:handler>\r\n            <\/jws:handler-chain>\r\n        <\/jws:handler-chains>\r\n    <\/bindings>\r\n<\/bindings><\/pre>\n<p><strong>Add binding config file to generate-client Ant target<\/strong><\/p>\n<pre lang=\"xml\">\r\n<target name=\"generate-client\" depends=\"setup\">\r\n  <wsimport\r\n    debug=\"true\"\r\n    verbose=\"${verbose}\"\r\n    keep=\"true\"\r\n    binding=\"${basedir}\/etc\/custom-client.xml\"\r\n    destdir=\"${build.classes.home}\"\r\n    package=\"fromjavahandler.client\"\r\n    wsdl=\"http:\/\/localhost:8080\/jaxws-fromjavahandler\/addnumbers?wsdl\">\r\n  <\/wsimport>\r\n<\/target>\r\n<\/pre>\n<p><strong>Build client and run<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Write a handler class implementing SOAPHandler Define handler chain in the client bindings XML file fromjavahandler.common.LoggingHandler Add binding config file to generate-client Ant target Build client and run<\/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":[41,22],"tags":[],"class_list":["post-150","post","type-post","status-publish","format-standard","hentry","category-jax-ws","category-soa"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8cRUO-2q","_links":{"self":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/150","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=150"}],"version-history":[{"count":1,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/150\/revisions"}],"predecessor-version":[{"id":289,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/150\/revisions\/289"}],"wp:attachment":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=150"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=150"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=150"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}