Advertisement
bisaggio

Untitled

Oct 14th, 2016
310
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ASP 0.94 KB | None | 0 0
  1. <%
  2. 'Declara as variáveis utilizadas no exemplo
  3.  
  4. Dim objSoapClient : objSoapClient = NULL
  5. Dim strMsg : strMsg = NULL
  6.  
  7. 'Verifica se houve post com algum valor digitado
  8. If (Request.QueryString("Retorno") > "") Then
  9. response.write (Request("Retorno"))
  10. 'Instancia o objeto
  11. Set objSoapClient = Server.CreateObject("MSSOAP.SoapClient30")
  12.  
  13. 'Diz que é um HTTP Request
  14. objSoapClient.ClientProperty("ServerHTTPRequest") = TRUE
  15.  
  16. 'Chama o Web Service, passando URL, NOME do WS
  17. objSoapClient.mssoapinit("http://digitalcerti.com.br:8080/digitalcerti_login/BrandaoServices1?wsdl")
  18.  
  19. 'Consome chamando o método
  20. Set strMsg = objSoapClient.getLogin(Request.QueryString("Retorno"))
  21.  
  22. 'Mostra o retorno na tela
  23. Response.Write strMsg
  24. End If
  25.  
  26. %>
  27.  
  28. ERRO: Client erro '80070057'
  29. Client:Incorrect number of parameters supplied for SOAP request HRESULT=0x80070057: Parâmetro incorreto. - Client:Unspecified client error. HRESULT=0x80070057: Parâmetro incorreto.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement