I was following this training guide that I found on google. Oddly enough I can’t find it via the actual website.
Anyways, I’ve gotten so close on getting my program to work in VS. I was following the example in this file for exporting warehouses starting on page 11.
I keep getting this error. I’ve tried everything I can think of.
System.Web.Services.Protocols.SoapException
HResult=0x80131501
Message=System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> PX.Data.PXException: API Login Limit
at PX.LicensePolicy.PXLicensePolicy.CheckApiUsersLimits()
at PX.Data.PXLogin.PX.Data.IPXLogin.LoginUser(String& userName, String password)
at PX.Api.Services.LoginService.Login(String login, String password, String company, String branch, String locale, String prefix)
at PX.Api.ContractBased.ILoginServiceExtensions.LoginForSoapApi(ILoginService loginService, IMultiFactorService multiFactorService, String login, String password, String company, String branch, String locale)
at PX.Api.Soap.Screen.ScreenGate.Login(String name, String password)
--- End of inner exception stack trace ---
Source=System.Web.Services
StackTrace:
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Objecto] parameters)
at ConsoleApplication.apitest.Screen.Login(String name, String password) in C:\Users\icebird\source\repos\ConsoleApplication\Web References\apitest\Reference.cs:line 623
at ConsoleApplication.Program.Main(Stringl] args) in C:\Users\icebird\source\repos\ConsoleApplication\Program.cs:line 18
This exception was originally thrown at this call stack:
rExternal Code]
ConsoleApplication.Program.Main(stringC]) in Program.cs
Below is a snippet including the login line with the * in front. Could someone help me see what I’m missing?
apitest.Screen context = new apitest.Screen();
context.CookieContainer = new System.Net.CookieContainer();
context.AllowAutoRedirect = true;
context.EnableDecompression = true;
context.Timeout = 1000000;
context.Url = "http://localhost/WebAPIVirtual/Soap/APITEST.asmx";
*** LoginResult result = context.Login("admin@Company:PRODWHOLE", "testtest");
IN204000Content IN204000 = context.IN204000GetSchema();
context.IN204000Clear();
stringt]x] IN204000result = context.IN204000Export