views:

813

answers:

2

How do I get username and password in webservice when I use vbscript code as below.

call oXMLHTTP.open("POST","http://localhost:11883/ServiceCall.asmx/GetEmloyee,false,testUser,testPasword)
+1  A: 

Your code example is correct.

From the MSDN Reference:

oXMLHttpRequest.open(bstrMethod, bstrUrl, varAsync, bstrUser, bstrPassword);

+1  A: 

You must also call the send method after calling open.

William Brendel