mostaert Posted January 8, 2018 Topic Count: 1 Topics Per Day: 0.00 Content Count: 1 Content Per Day: 0.00 Reputation: 0 Achievement Points: 15 Solved Content: 0 Days Won: 0 Status: Offline Age: 39 Report Posted January 8, 2018 Prezados, bom dia. Como posso em java consumir o serviço do rm com a autenticação? eu criei o client via código: wsimport -keep -p nomePackage http://ip:8061/wsConsultaSQL/MEX?wsdl e no java, estou tentando: WsConsultaSQLLocator locator = new WsConsultaSQLLocator(); try { IwsConsultaSQL endpoint = locator.getRM_IwsConsultaSQL(); String strRetorno = endpoint.realizarConsultaSQL("TOP_INT9999", 0, "M", ""); System.out.println("Retorno: " + strRetorno); .... mas, não sei em que ponto passo o usuário e senha da autenticação básica, alguém poderia dar um apoio? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.