{"id":697,"date":"2011-11-11T13:16:00","date_gmt":"2011-11-11T13:16:00","guid":{"rendered":"http:\/\/www.javacodegeeks.com\/2012\/10\/web-service-learnings-with-apache-cxf.html"},"modified":"2012-10-21T20:41:15","modified_gmt":"2012-10-21T20:41:15","slug":"web-service-learnings-with-apache-cxf","status":"publish","type":"post","link":"https:\/\/www.javacodegeeks.com\/2011\/11\/web-service-learnings-with-apache-cxf.html","title":{"rendered":"Web-service learnings with Apache CXF"},"content":{"rendered":"<div dir=\"ltr\" style=\"text-align: left\">In my last couple of projects I worked with web-services, creating them at some places and consuming them at others. I  felt that the standard tasks like creating a client, creating a web service etc are quite straight forward and there are enough resources if you get stuck. But with web services, it is some trivial  task that can take a lot of your time and you feel quite frustrated when you can not get that simple thing right.<\/p>\n<p><span style=\"font-weight: bold\">Logging<\/span><\/p>\n<p>In one  of the projects, we created web-services using <a href=\"http:\/\/cxf.apache.org\/\">Apache CXF<\/a> and things were working fine. There was just one issue <a href=\"http:\/\/cxf.apache.org\/\">Apache CXF<\/a> uses java.util logger for logging and used to print all sorts of logs. Our application was using Log4J, so task was simple make use of  Log4J for Cxf and control logging.<\/p>\n<p>Configuring the logger to use Log4J is a starightfoward task as mentioned on <a href=\"http:\/\/cxf.apache.org\/docs\/debugging-and-logging.html#DebuggingandLogging-UsingLog4jInsteadofjava.util.logging\">Apache CXF site<\/a>, here is what the page says:<\/p>\n<blockquote>\n<p>Add the file <tt>META-INF\/cxf\/org.apache.cxf.Logger<\/tt> to the classpath and make sure it contains the following content: <span class=\"Apple-style-span\" style=\"font-family: Consolas,Monaco,'Courier New',Courier,monospace;font-size: 12px;line-height: 18px\">org.apache.cxf.common.logging.Log4jLogger<\/span><\/p>\n<\/blockquote>\n<p>Simple you need add a file to the META-INF directory and it will be done. We were having a maven project to generate war, so I created the file in the META-INF folder that gets generated for the war i.e. at src\/main\/webapp\/META-INF.<\/p>\n<p>Now, the file is there but the logging was still out of control, CXF was still using  java logger.  I spent some more time on it to figure out what I have done wrong. Some more effort was required to realize that I have missed and important instruction \u201cin the classpath\u201c.   The META-INF folder that gets generated besides the WEB-INF is not in the classpath and a META-INF folder is required in the classes folder of the war.<div style=\"display:inline-block; margin: 15px 0;\"> <div id=\"adngin-JavaCodeGeeks_incontent_video-0\" style=\"display:inline-block;\"><\/div> <\/div><\/p>\n<p>After words looking back at this issue, it was silly for me to miss the classpath part, but also I could not understand why the CXF guys choose the META-INF folder for their configuration files. META-INF  is there on Java platform for services and class loaders. It becomes quite ambiguous when frameworks start using it for their configurations and then there are multiple folders to play around, which can make things quite unclear.<\/p>\n<p><span style=\"font-weight: bold\">Soap Handlers<\/span><\/p>\n<p>At another place  we had a requirement where we need to intercept the incoming \/ outgoing soap requests and then do something with it.  Apache CXF provides <a href=\"http:\/\/cxf.apache.org\/javadoc\/latest\/org\/apache\/cxf\/interceptor\/package-frame.html\">interceptors<\/a> that can be used to accomplish this task. You can have some inbound and out bound and they will do as asked. But we were using the jaxws implementation that gets shipped with java. Not intending to shift our existing clients to CXF , as we were having quite a few clients, it took us quite some time to figure it out how you can accomplish this with the jaxws.<\/p>\n<p>Basically, according to the JAX-WS specification you can have some <a href=\"http:\/\/download.oracle.com\/javaee\/6\/api\/javax\/xml\/ws\/handler\/soap\/SOAPHandler.html\">SoapHandler<\/a>s that can be configured with the client. The handler will be called every time there is a SOAP message exchange. In the handler you can determine if this is an in-bound message or an out-bound and then do your logic. These are the steps required to configure  a handler :<\/p>\n<p>Create a class extending the SoapHandler interface and implement the handle message method:<\/p>\n<pre class=\"brush:java\">class CustomHandler implements SOAPHandler&lt;SOAPMessageContext&gt;{\r\n \/\/ TODO: implement other methods\r\n public boolean handleMessage(SOAPMessageContext context) {\r\n  \/\/ Check for message status\r\n  Boolean outboundProperty = (Boolean)\r\n   context.get(MessageContext.MESSAGE_OUTBOUND_PROPERTY);\r\n  if (null == outboundProperty || !outboundProperty) {\r\n      log.debug(\"not an outbound message\");\r\n      return true;\r\n  }\r\n }\r\n}\r\n<\/pre>\n<p>Handlers are like servlet filters. They are in a chain and gets called one by one. So we need to create a XML file in which we can configure all the handlers we want.<\/p>\n<pre class=\"brush:xml\">&lt;?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?&gt;\r\n&lt;javaee:handler-chains\r\n     xmlns:javaee=\"http:\/\/java.sun.com\/xml\/ns\/javaee\"\r\n     xmlns:xsd=\"http:\/\/www.w3.org\/2001\/XMLSchema\"&gt;\r\n  &lt;javaee:handler-chain&gt;\r\n    &lt;javaee:handler&gt;\r\n      &lt;javaee:handler-class&gt;pkg.CustomHandler&lt;\/javaee:handler-class&gt;\r\n    &lt;\/javaee:handler&gt;\r\n  &lt;\/javaee:handler-chain&gt;\r\n&lt;\/javaee:handler-chains&gt;\r\n<\/pre>\n<p>Also the configuration file needs to be in the classpath as this will be imported in the web service clients that we create. After this is done, we need to enable this chain of handlers on a web service client.<\/p>\n<pre class=\"brush:java\">@WebServiceClient(.....)\r\n@HandlerChain(file=\"handlerFile.xml\")\r\npublic class SampleServiceImpl extends Service{\r\n}\r\n<\/pre>\n<p>The handler concept is from the jaxws specification and would work on all of its implementations like metro, CXF etc. <\/p>\n<p><strong><i>Reference: <\/i><\/strong><a href=\"http:\/\/devlearnings.wordpress.com\/2011\/04\/23\/web-service-learnings\/\">Web-service learnings<\/a> from our <a href=\"http:\/\/www.javacodegeeks.com\/p\/jcg.html\">JCG partner<\/a>  <a href=\"http:\/\/devlearnings.wordpress.com\/about\/\">Rahul Sharma<\/a> at the <a href=\"http:\/\/devlearnings.wordpress.com\/\">&#8220;The road so far\u2026.&#8221; blog<\/a>.<\/p>\n<div style=\"margin: 0px\"><strong><i>Related Articles :<\/i><\/strong><\/div>\n<ul>\n<li><a href=\"http:\/\/www.javacodegeeks.com\/2011\/06\/apache-cxf-load-balancing-failover.html\">Apache CXF Load Balancing And Failover<\/a><\/li>\n<li><a href=\"http:\/\/www.javacodegeeks.com\/2011\/08\/web-services-ruby-python-java.html\">Web Services in Ruby, Python and Java<\/a> <\/li>\n<li><a href=\"http:\/\/www.javacodegeeks.com\/2010\/11\/jaxws-with-spring-and-maven-tutorial.html\">JAX\u2013WS with Spring and Maven Tutorial<\/a><\/li>\n<li><a href=\"http:\/\/www.javacodegeeks.com\/2010\/06\/spring-3-restful-web-services.html\">Spring 3 RESTful Web Services<\/a><\/li>\n<li><a href=\"http:\/\/www.javacodegeeks.com\/p\/java-tutorials.html\">Java Tutorials and Android Tutorials list<\/a> <\/li>\n<\/ul>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>In my last couple of projects I worked with web-services, creating them at some places and consuming them at others. I felt that the standard tasks like creating a client, creating a web service etc are quite straight forward and there are enough resources if you get stuck. But with web services, it is some &hellip;<\/p>\n","protected":false},"author":79,"featured_media":70,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[171,106],"class_list":["post-697","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-enterprise-java","tag-apache-cxf","tag-web-services"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Web-service learnings with Apache CXF - Java Code Geeks<\/title>\n<meta name=\"description\" content=\"In my last couple of projects I worked with web-services, creating them at some places and consuming them at others. I felt that the standard tasks like\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.javacodegeeks.com\/2011\/11\/web-service-learnings-with-apache-cxf.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Web-service learnings with Apache CXF - Java Code Geeks\" \/>\n<meta property=\"og:description\" content=\"In my last couple of projects I worked with web-services, creating them at some places and consuming them at others. I felt that the standard tasks like\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.javacodegeeks.com\/2011\/11\/web-service-learnings-with-apache-cxf.html\" \/>\n<meta property=\"og:site_name\" content=\"Java Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/javacodegeeks\" \/>\n<meta property=\"article:published_time\" content=\"2011-11-11T13:16:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2012-10-21T20:41:15+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/apache-logo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Rahul Sharma\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:site\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Rahul Sharma\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2011\\\/11\\\/web-service-learnings-with-apache-cxf.html#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2011\\\/11\\\/web-service-learnings-with-apache-cxf.html\"},\"author\":{\"name\":\"Rahul Sharma\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/person\\\/3e76e989ec486fd3942c7b9d6fc44f0b\"},\"headline\":\"Web-service learnings with Apache CXF\",\"datePublished\":\"2011-11-11T13:16:00+00:00\",\"dateModified\":\"2012-10-21T20:41:15+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2011\\\/11\\\/web-service-learnings-with-apache-cxf.html\"},\"wordCount\":702,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2011\\\/11\\\/web-service-learnings-with-apache-cxf.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/apache-logo.jpg\",\"keywords\":[\"Apache CXF\",\"Web Services\"],\"articleSection\":[\"Enterprise Java\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.javacodegeeks.com\\\/2011\\\/11\\\/web-service-learnings-with-apache-cxf.html#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2011\\\/11\\\/web-service-learnings-with-apache-cxf.html\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2011\\\/11\\\/web-service-learnings-with-apache-cxf.html\",\"name\":\"Web-service learnings with Apache CXF - Java Code Geeks\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2011\\\/11\\\/web-service-learnings-with-apache-cxf.html#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2011\\\/11\\\/web-service-learnings-with-apache-cxf.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/apache-logo.jpg\",\"datePublished\":\"2011-11-11T13:16:00+00:00\",\"dateModified\":\"2012-10-21T20:41:15+00:00\",\"description\":\"In my last couple of projects I worked with web-services, creating them at some places and consuming them at others. I felt that the standard tasks like\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2011\\\/11\\\/web-service-learnings-with-apache-cxf.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.javacodegeeks.com\\\/2011\\\/11\\\/web-service-learnings-with-apache-cxf.html\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2011\\\/11\\\/web-service-learnings-with-apache-cxf.html#primaryimage\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/apache-logo.jpg\",\"contentUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/apache-logo.jpg\",\"width\":150,\"height\":150},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2011\\\/11\\\/web-service-learnings-with-apache-cxf.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Java\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/category\\\/java\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Enterprise Java\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/category\\\/java\\\/enterprise-java\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Web-service learnings with Apache CXF\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#website\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\",\"name\":\"Java Code Geeks\",\"description\":\"Java Developers Resource Center\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\"},\"alternateName\":\"JCG\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.javacodegeeks.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/exelixis-logo.png\",\"contentUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/javacodegeeks\",\"https:\\\/\\\/x.com\\\/javacodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/person\\\/3e76e989ec486fd3942c7b9d6fc44f0b\",\"name\":\"Rahul Sharma\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f03d67f185bae80a46999b740a4b3c563e65fd7e72c05c573a40cd45b6598e78?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f03d67f185bae80a46999b740a4b3c563e65fd7e72c05c573a40cd45b6598e78?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f03d67f185bae80a46999b740a4b3c563e65fd7e72c05c573a40cd45b6598e78?s=96&d=mm&r=g\",\"caption\":\"Rahul Sharma\"},\"sameAs\":[\"http:\\\/\\\/devlearnings.wordpress.com\\\/\"],\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/author\\\/Rahul-Sharma\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Web-service learnings with Apache CXF - Java Code Geeks","description":"In my last couple of projects I worked with web-services, creating them at some places and consuming them at others. I felt that the standard tasks like","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.javacodegeeks.com\/2011\/11\/web-service-learnings-with-apache-cxf.html","og_locale":"en_US","og_type":"article","og_title":"Web-service learnings with Apache CXF - Java Code Geeks","og_description":"In my last couple of projects I worked with web-services, creating them at some places and consuming them at others. I felt that the standard tasks like","og_url":"https:\/\/www.javacodegeeks.com\/2011\/11\/web-service-learnings-with-apache-cxf.html","og_site_name":"Java Code Geeks","article_publisher":"https:\/\/www.facebook.com\/javacodegeeks","article_published_time":"2011-11-11T13:16:00+00:00","article_modified_time":"2012-10-21T20:41:15+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/apache-logo.jpg","type":"image\/jpeg"}],"author":"Rahul Sharma","twitter_card":"summary_large_image","twitter_creator":"@javacodegeeks","twitter_site":"@javacodegeeks","twitter_misc":{"Written by":"Rahul Sharma","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.javacodegeeks.com\/2011\/11\/web-service-learnings-with-apache-cxf.html#article","isPartOf":{"@id":"https:\/\/www.javacodegeeks.com\/2011\/11\/web-service-learnings-with-apache-cxf.html"},"author":{"name":"Rahul Sharma","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/person\/3e76e989ec486fd3942c7b9d6fc44f0b"},"headline":"Web-service learnings with Apache CXF","datePublished":"2011-11-11T13:16:00+00:00","dateModified":"2012-10-21T20:41:15+00:00","mainEntityOfPage":{"@id":"https:\/\/www.javacodegeeks.com\/2011\/11\/web-service-learnings-with-apache-cxf.html"},"wordCount":702,"commentCount":0,"publisher":{"@id":"https:\/\/www.javacodegeeks.com\/#organization"},"image":{"@id":"https:\/\/www.javacodegeeks.com\/2011\/11\/web-service-learnings-with-apache-cxf.html#primaryimage"},"thumbnailUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/apache-logo.jpg","keywords":["Apache CXF","Web Services"],"articleSection":["Enterprise Java"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.javacodegeeks.com\/2011\/11\/web-service-learnings-with-apache-cxf.html#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.javacodegeeks.com\/2011\/11\/web-service-learnings-with-apache-cxf.html","url":"https:\/\/www.javacodegeeks.com\/2011\/11\/web-service-learnings-with-apache-cxf.html","name":"Web-service learnings with Apache CXF - Java Code Geeks","isPartOf":{"@id":"https:\/\/www.javacodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.javacodegeeks.com\/2011\/11\/web-service-learnings-with-apache-cxf.html#primaryimage"},"image":{"@id":"https:\/\/www.javacodegeeks.com\/2011\/11\/web-service-learnings-with-apache-cxf.html#primaryimage"},"thumbnailUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/apache-logo.jpg","datePublished":"2011-11-11T13:16:00+00:00","dateModified":"2012-10-21T20:41:15+00:00","description":"In my last couple of projects I worked with web-services, creating them at some places and consuming them at others. I felt that the standard tasks like","breadcrumb":{"@id":"https:\/\/www.javacodegeeks.com\/2011\/11\/web-service-learnings-with-apache-cxf.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.javacodegeeks.com\/2011\/11\/web-service-learnings-with-apache-cxf.html"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.javacodegeeks.com\/2011\/11\/web-service-learnings-with-apache-cxf.html#primaryimage","url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/apache-logo.jpg","contentUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/apache-logo.jpg","width":150,"height":150},{"@type":"BreadcrumbList","@id":"https:\/\/www.javacodegeeks.com\/2011\/11\/web-service-learnings-with-apache-cxf.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.javacodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"Java","item":"https:\/\/www.javacodegeeks.com\/category\/java"},{"@type":"ListItem","position":3,"name":"Enterprise Java","item":"https:\/\/www.javacodegeeks.com\/category\/java\/enterprise-java"},{"@type":"ListItem","position":4,"name":"Web-service learnings with Apache CXF"}]},{"@type":"WebSite","@id":"https:\/\/www.javacodegeeks.com\/#website","url":"https:\/\/www.javacodegeeks.com\/","name":"Java Code Geeks","description":"Java Developers Resource Center","publisher":{"@id":"https:\/\/www.javacodegeeks.com\/#organization"},"alternateName":"JCG","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.javacodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.javacodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/www.javacodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/javacodegeeks","https:\/\/x.com\/javacodegeeks"]},{"@type":"Person","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/person\/3e76e989ec486fd3942c7b9d6fc44f0b","name":"Rahul Sharma","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/f03d67f185bae80a46999b740a4b3c563e65fd7e72c05c573a40cd45b6598e78?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/f03d67f185bae80a46999b740a4b3c563e65fd7e72c05c573a40cd45b6598e78?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f03d67f185bae80a46999b740a4b3c563e65fd7e72c05c573a40cd45b6598e78?s=96&d=mm&r=g","caption":"Rahul Sharma"},"sameAs":["http:\/\/devlearnings.wordpress.com\/"],"url":"https:\/\/www.javacodegeeks.com\/author\/Rahul-Sharma"}]}},"_links":{"self":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/697","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/users\/79"}],"replies":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/comments?post=697"}],"version-history":[{"count":0,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/697\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/media\/70"}],"wp:attachment":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/media?parent=697"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/categories?post=697"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/tags?post=697"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}