MS Dynamics Nav 2009 web service + PHP

LobachevEB
Member Posts: 3
I have a web service running on MS Dynamics Nav 2009 and a PHP script to operate with the web service.
The script uses NTLM authentication and works fine from the test web-server (Apache2 + PHP7).
The problem is my script does not work from the client web-server (Apache2 + PHP5). Both web-servers are external, with the SOAP and CURL configuration are equal in both PHP.ini.
My question is: what might be wrong with the second web-server?
The script uses NTLM authentication and works fine from the test web-server (Apache2 + PHP7).
The problem is my script does not work from the client web-server (Apache2 + PHP5). Both web-servers are external, with the SOAP and CURL configuration are equal in both PHP.ini.
My question is: what might be wrong with the second web-server?
0
Answers
-
Can you elaborate on 'does not work'? Do you have any error or warning that might be a lead?0
-
Can you elaborate on 'does not work'? Do you have any error or warning that might be a lead?
Web service get XML as input parameter and also returns XML. In the test web server this exchange works good, but in the production server I've got following exception on the code line "$result = new NTLMSoapClient($baseURL);": "Caught exception: SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://my_URL' : Document is empty"
0 -
[Topic moved from 'NAV Tips & Tricks' forum to 'NAV Three Tier' forum]
Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
@LobachevEB
Have you replaced the real production web service URL with 'my_URL' or could that be the issue?
I think you can debug this issue outside your PHP script. You should be able to call the NAV webservice URL in an internet browser on the machine where you're running your PHP script.
When you open the webservice URL in the browser you should see a SOAP WSDL page. Your error is literally that your script cannot find that page. So make sure the script is working with a valid URL. Test the URL you use for the test environment. I expect you would see a WSDL page. If that succeeds try the URL for the production environment. I would expect that there is something wrong with reaching that web service. You can continue debugging from there.1 -
@LobachevEB
Have you replaced the real production web service URL with 'my_URL' or could that be the issue?
I think you can debug this issue outside your PHP script. You should be able to call the NAV webservice URL in an internet browser on the machine where you're running your PHP script.
When you open the webservice URL in the browser you should see a SOAP WSDL page. Your error is literally that your script cannot find that page. So make sure the script is working with a valid URL. Test the URL you use for the test environment. I expect you would see a WSDL page. If that succeeds try the URL for the production environment. I would expect that there is something wrong with reaching that web service. You can continue debugging from there.
Thank you for your answer.
I use the same URL in a both environments as I do connect to the same server from two places. I think the reason might be in a clients firewall configuration that allows test env. IP and disallow the work one.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