Jump to content
Seja Membro VIP - Remova Banners de Propagandas, Tenha Liberado Qualquer Download, Além de Acessos em Áreas Exclusivas!! ×

Recommended Posts


  • 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

Posted

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?

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.