Using NAV 2013r2 we have a codeunit that calls a dll we authored in C# that simply references a web service. I believe the term is C# "wrapper". It works like a champ on our development server and produces the expected results. We are testing on an Amazon EC2 instance. I installed the dll in the Add-ins directory(s) on that server. When the codeunit is called, it comes back with nothing and no error.
When operating normally, it comes back with an array of orders that has a property called "Length" or "RecordCount". Both of those have a value of zero. The response isSuccessful property is True, and the Errors array is null. I've written a C# form based gadget that duplicates the NAV code and it works without issue on the same Amazon instance.
I have no clue where to go from here with regard to the EC2 instance, and have started working on a VM server. Anybody have any ideas?
Thanks,
Mark Tyler
Pacific City, OR
0
Comments
Pacific City, OR
Just a few remarks:
a) External components could be executed either on the client machine or on the server machine.
b) The user who's executing the component might need permissions to instantiate his user profile even though the component doesn't provide any GUI.
Backgroud: C/Side in NAV throws an error when trying to set values for fields in the Web Service Request that can be null. I had edited the source for ALL of the dates mentioned in the request, (C# wrapper), and removed the web service references that allowed them to be null in the C# wrapper. However, I only needed to change the fields I was setting/using. Lift foot, fire gun. ](*,) - Now the webservice call from inside NAV works like a champ every time. \:D/
See below the Date(s) Completed versus Date(s) Shipped in the C# request:
private System.DateTime dateCompletedFromField;
private System.DateTime dateCompletedToField;
private System.Nullable<System.DateTime> dateShippedFromField;
private System.Nullable<System.DateTime> dateShippedToField;
Pacific City, OR