Making SOAP client on Unity but getting SOAP exception
I am making SOAP client on unity for .net web service, but I am receiving an Access denied error i.e.
SoapException: Server was unable to process request. ---> Authentication to host '104.130.222.145' for user 'tapblueapp' using method 'mysql_native_password' failed with message: Access denied for user 'tapblueapp'@'showoff-new' (using password: YES) ---> Access denied for user 'tapblueapp'@'showoff-new' (using password: YES)
I have generated proxy class for the service by name SampleService.cs. And calling GetModelOption() by creating an instance of the partial class WebService(which is in SampleService.cs) which invokes GetModelOption operation.
The back-end is connected to database which returns data against the request. I have followed
http://gyanendushekhar.com/2017/02/18/call-asp-net-web-service-unity3d-asmx-service/
to create proxy class.
My code for calling the service is :
NetworkCredential credential = new NetworkCredential("username", "password", "ip:port");
CredentialCache myCache = new CredentialCache();
myCache.Add(new System.Uri("http://builderapi.showoff.com/WebService.asmx"), "Negotiate", credential);
WebService webService = new WebService();
webService.Credentials = myCache;
webService.GetModelOption();
Your answer
Follow this Question
Related Questions
Unity .NET 4.6 framework causing SqlConnection ConnectionString to throw exception. 1 Answer
spawn a different prefab on client 0 Answers
How do I resolve, get_isActiveAndEnabled can only be called from the main thread error 1 Answer
Unet: [Command] not running 1 Answer
Replace C# Lambda Operator 1 Answer