HI,
I have external service referenced in c#class library. i have added dll in dynamics ax folder and added dll references to dynamics ax. I have global variable ServiceReference1.NtosServiceSoapClient se;
if I add code se = new ServiceReference1.NtosServiceSoapClient() in c# class library; dynamics ax throws error CLR Object couldn't be created , on that line.
I tried to use different approach and initialized variable like this
var remoteAddress = new System.ServiceModel.EndpointAddress("www.revenue.mof.ge/.../ntosservice.asmx");
System.ServiceModel.BasicHttpBinding binding = new System.ServiceModel.BasicHttpBinding();
binding.MaxReceivedMessageSize = Int32.MaxValue;
se= new ServiceReference1.NtosServiceSoapClient(binding, remoteAddress);
if I declare variable like this , code works, But It throws exception after calling service methods too many times in a little timespan
SERVER closes connection , because too many http requests are made. Production server uses ForeFront TMG to restrics service calls;
i am interested if there is any chance to declare variaible without specifying http service reference in variable initialization;
I need to call c# class methods from x++ , that calls service methods in c# . I don't want to call service methods from x++;
can anyone tell me why this error might occuring ?CLR Object couldn't be created . I have a guess, that code doesn't see config file , but I have added config file with dll , in bin folder