
{"id":860,"date":"2011-08-09T17:54:27","date_gmt":"2011-08-09T21:54:27","guid":{"rendered":"http:\/\/www.ikriv.com\/blog\/?p=860"},"modified":"2011-08-09T17:54:27","modified_gmt":"2011-08-09T21:54:27","slug":"jax-ws-and-xmlrootelement","status":"publish","type":"post","link":"https:\/\/ikriv.com\/blog\/?p=860","title":{"rendered":"JAX-WS and @XmlRootElement"},"content":{"rendered":"<p>Just finished a fight with JAX-WS. It turns out that if I have a method like this:<\/p>\n<p><code><\/p>\n<pre>\n@WebService(targetNamespace=...)\n@SOAPBinding(parameterStyle = SOAPBINDING.ParameterStyle.BARE \/* don't ask *\/)\nclass MyWebService\n{\n    @WebMethod\n    MyClass getMyStuff();\n}<\/pre>\n<p><\/code><\/p>\n<p>then generated WSDL depends on whether <code>NyClass<\/code> has @XmlRootElement annotation. If it does, you&#8217;re going to have a WSDL with empty input (client sends empty SOAP body with no indication of request kind whatsoever). If it does not, then everything is OK, request body is not empty.<\/p>\n<p>I am sure there is a simple, logical explanation to all this&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Just finished a fight with JAX-WS. It turns out that if I have a method like this: @WebService(targetNamespace=&#8230;) @SOAPBinding(parameterStyle = SOAPBINDING.ParameterStyle.BARE \/* don&#8217;t ask *\/) class MyWebService { @WebMethod MyClass <a href=\"https:\/\/ikriv.com\/blog\/?p=860\" class=\"more-link\">[&hellip;]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"Layout":"","footnotes":""},"categories":[13],"tags":[],"class_list":["entry","author-ikriv","post-860","post","type-post","status-publish","format-standard","category-java"],"_links":{"self":[{"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/860","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=860"}],"version-history":[{"count":0,"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/860\/revisions"}],"wp:attachment":[{"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=860"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=860"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=860"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}