Error while calling COM objects method - RTC
sridhar
Member Posts: 171
Hi,
I am getting an error message "This message is for C/AL programmers: The call to member TextCase failed: Method
Adapter.AddressService.ValidateRequest.TextCase not found"
Where TextCase is of type Enum.
Actually the codeunit I am using is calling a method of COM object (dll) which in turn calls the webservice method.
I am not seeing this kind of error message in the Classic Version. Please guide me to resolve this error.
Thanks,
N.Sridhar
I am getting an error message "This message is for C/AL programmers: The call to member TextCase failed: Method
Adapter.AddressService.ValidateRequest.TextCase not found"
Where TextCase is of type Enum.
Actually the codeunit I am using is calling a method of COM object (dll) which in turn calls the webservice method.
I am not seeing this kind of error message in the Classic Version. Please guide me to resolve this error.
Thanks,
N.Sridhar
0
Answers
-
Any idea on this issue?
Additional Info: TextCase is of Enum type at the dll side and I am passing integer value to the TextCase at the Nav end.
Thanks.0 -
Is this issue is because of the Enum datatype used in methods of dll?0
-
hi did you resolve your problems with working with events?0
-
I haven't resolved...I haven't tried working with event too..0
-
mm it's pity, I suppose from your topic we have same problems. I hope you will be able to help, anyway thanks a lot0
-
enum is not supported in the RTC. you will have to create a new function/method in the DLL which takes/return integer values instead of the enum0
-
ah...unfortunately enum variables place a major part in the methods of dll...
any ways thanks for the reply.0 -
I have a similar problem...
First time I've encountered it was while using a StringBuilder as a parameter for calling an automation method:public int decodeToFile(StringBuilder base64String, string filename) {...}
There's no problem using this function with the classic client. It works. Calling it on the RTC it leads to the error "method not found". It did work some time ago. But something changed and since then it doesn't work anymore. So I've changed the method signature topublic string decode(Object base64String, string filename)
Casting the object to string in the method stub. Works fine.
Today I've tried to use another automations library, which is rather large on the RTC. Most of the funtion have a signature like this:public string getProperties(out PropertyQueue properties)
where PropertyQueue is an automation of its own. Using this on the classic client works fine. On the RTC again the error message. It seems to me, that the Service Tier does not support complex data types as parameters besides "Object". If there were only one or two methods, I'd change them using Object, but there are plenty of them and I'd like to keep the type safety.
Another thing that doesn't work on the Service Tier is overloading methods.
Is there any solution / suggestion for this problem?0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 328 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions