AnsweredAssumed Answered

AuthenticationService Error System.InvalidOperationException

Question asked by gukguk on May 6, 2011
Hi !
I'm a newbie in Alfresco web service.
I tried to login to alfresco community by calling authenticationService startSession but it keep throwing an error
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
   at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
   at TZ.FMS.Alfresco.AuthenticationWebService.AuthenticationServiceWse.startSession(String username, String password)

Client found response content type of '', but expected 'text/xml'.
The request failed with an empty response.


AuthenticationServiceWse authenticationService = new AuthenticationServiceWse();
authenticationService.Url = "http://localhost:8080/alfresco/wsdl/authentication-service.wsdl";
AuthenticationResult results = authenticationService.startSession(userName, password);
Can anybody help me please ?
Thanks

Outcomes