I moved the webservice from localhost to our QA server. Now I cannot connect at all through the log in, alothough I can test it fine through a browser (get a ticket, return a ds).
What do I need to do to get the web service up and running. I changed the host information from localhost to the servername. I didn't change the namespace from tempuri though.
This is my first attempt at webservices, but I was working fine on localhost connecting to a remote SQL server.
Any thoughts? |
| WinFormsUser |
| could it be a network problem, like the company firewall not letting you through? |
| WinFormsUser |
Not a firewall issue. The guy who handles all the servers is on vacation so I set upd the virtual directory and ftp site myself. Since I can test the WS via the web, I assumed everything was fine. What permissions need to be on the actual folder and virtual dir?
There are literally a million things in the debugger for m_WsAuth. What should I be looking for? It seems to have the domain name correct; and the uri; the port is 80; the namespace is correct; under binding it has to entries for location, one is 'nothing' and the other is "".
Other than that... |
| WinFormsUser |
| The request failed with HTTP status 401: Access Denied. Is this a folder permission? |
| WinFormsUser |
Sorry, didn't dig deep enough in the debugger. Not that I understand this message:
errorMessage"The request failed with HTTP status 401: Access Denied. at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream) at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) at HRCApp.AuthWS.AuthService1.GetAuthorizationTicket(String userName, String password) in C:\Projects\HRCApp\Web References\AuthWS\Reference.vb:line 42 at HRCApp.DataLayer.GetAuthorizationTicket() in C:\Projects\HRCApp\Component\DataLayer.vb:line 82"String |
| WinFormsUser |
| On the web service virtual dir I checked 'Allow anonymous access. and it connected fine. What are the potential dangers of this? This is just a Test server but in terms of the production server? |
| WinFormsUser |
| it means anybody will be able to see the webservice, but unless they have a correct username and password, they won't be able to do anything. |
| WinFormsUser |