REST-Api Automationerror

SIPA
Member Posts: 6
Hello everyone,
I'm currently facing an ugly error and I can't find the reason.
The scenario is the following:
Our customer is having a development machine and a live machine.
Both machines are able to access the same database.
If I logg on the development machine and run the code to access a REST-Api which lays beyond the customers network, the API is accessable.
Otherwise while running the same code on the live machine (still the same database) I get the following error:
"The call to member send failed. msxml3.dll returned the following message: Access denied" (Translated from german)
The code is the following:
Although I "debugged" the problem with the API-developers by checking logfiles if any access was logged on the api when getting the error.
The connection didn't reach the api.
I've already tried every Automation Server from Microsoft XML, v3.0 to Microsoft XML, v6.0 and switched classes vom ServerXMLHTTP up to XMLHTTP60.
Most times the error only switched "...msxml6.dll...".
My problem is that I'm not well trained with code outside of NAV and I'm having no idea how to get a more detailed error.
Maybe some of you got any ideas.
Best regards from germany,
SIPA
//EDIT: Both machines got the same NAV build NAV 2009 R2 (Classic) 6.00.32012
I'm currently facing an ugly error and I can't find the reason.
The scenario is the following:
Our customer is having a development machine and a live machine.
Both machines are able to access the same database.
If I logg on the development machine and run the code to access a REST-Api which lays beyond the customers network, the API is accessable.
Otherwise while running the same code on the live machine (still the same database) I get the following error:
"The call to member send failed. msxml3.dll returned the following message: Access denied" (Translated from german)
The code is the following:
Setup.GET;
CLEAR(HTTP);
CREATE(HTTP);
HTTP.open('GET','https:\\myapiurl.de','',MyAPIUserName,MyAPIUserPassword);
CLEAR(XMLInput);
CREATE(XMLInput);
HTTP.send(); //Line where error occurs
XMLInput.load(HTTP.responseXML);
IF HTTP.status <> 200 THEN
ERROR(FORMAT(HTTP.status)+' '+HTTP.statusText);
CLEAR(HTTP);
Although I "debugged" the problem with the API-developers by checking logfiles if any access was logged on the api when getting the error.
The connection didn't reach the api.
I've already tried every Automation Server from Microsoft XML, v3.0 to Microsoft XML, v6.0 and switched classes vom ServerXMLHTTP up to XMLHTTP60.
Most times the error only switched "...msxml6.dll...".
My problem is that I'm not well trained with code outside of NAV and I'm having no idea how to get a more detailed error.
Maybe some of you got any ideas.
Best regards from germany,
SIPA
//EDIT: Both machines got the same NAV build NAV 2009 R2 (Classic) 6.00.32012
0
Answers
-
My guess: Different DNS or firewall settings on the 2 computers0
-
Hi eyolftho,
I've already mentioned this to the internal IT of our customer but they've told me the firewall wouldn't block this request.
Both machines got no direct firewall, so the machines should be secured with a Firewall controling the whole network.
Which differences in DNS-Settings could block this? Any further idea for this? ^^"
Best regards
SIPA0 -
Have you tried to access the service from a browser window on both machines?
If the production machine is a windows server 2003-> the default settings will not allow access to the internet0 -
Yes, I've already checked that - I'm able to access the URL with Internetexplorer on both machines.
Only the Navision automation seems to have this issues while connecting.
The machines are both running on Microsoft Server 2008 R2 Enterprise.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K 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
- 320 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