Pessoal,
Após ler a documentacao do SOAP Toolkit 3.0 fiz um exemplo SEM autenticação de usuário e funcionou...
Depois coloquei autenticação básica... via browser coloco o usuário e senha e consigo utilizar o Web Service normalmente...
Porém o código abaixo não está funcionando: Dá acesso negado.
Code Snippet
<%
Dim oSOAP
Dim teste
Set oSOAP = Server.CreateObject("MSSOAP.SoapClient30")
oSOAP.mssoapinit("http://localhost/wsec/Wsec.asmx?wsdl")
oSOAP.ConnectorProperty("AuthName") = "wsec_user"
oSOAP.ConnectorProperty("AuthPassword") = "123123"
teste = oSOAP.metodoA("1asfas sdffsdf sdf sdfsd f3")
Response.write(teste & "<BR>")
Response.write(oSOAP.metodoB(teste) & "<BR>")
%>
dá o seguinte erro:
WSDLReader erro '80020009'
WSDLReader:XML Parser failed at linenumber 0, lineposition 0, reason is: Acesso negado. HRESULT=0x1: Função incorreta. - WSDLReader:Loading of the WSDL file failed HRESULT=0x80070057: Parâmetro incorreto. - Client
ne of the parameters supplied is invalid. HRESULT=0x80070057: Parâmetro incorreto.
/testews/testews.asp, line 9
O usuário funciona perfeitamente se colocado diretamente no browser.
Alguém pode me ajudar?
Um abraço a todos.
Mateus.