Message
From
22/12/2016 01:50:49
 
General information
Fórum:
Visual FoxPro
Category:
Miscellaneous
ID da thread:
01645753
ID da mensagem:
01645865
Views:
63
>
>I am getting Authorization Denied message. So something is wrong but not with your code. Thank you.

Were you given credentials to access the service? A username and password? Normally, you have 3 choices to send them to the WebService

1. As an header (through m.HttpRequest.SetRequestHeader);

2. As a parameter (since you're using GET, that would be in the querystring, that is, value pairs after a ? in the URL);

3. Or, more simply, as username and password parameters of the m.HttpRequest.Open method: m.HttpRequest.Open("GET", m.HttpResponseEndPoint, .F., m.UsertName, m.Password) - of course, m.UserName and m.Password being previously set.
----------------------------------
António Tavares Lopes
Previous
Next
Responder
Mapa
View