Hi,
We run an ecomm website on magento platform and have recently shifted the server for the same domain. We use NAV 2013 R2 to consume all new orders from Magento using SOAP API and then process them on NAV and generate csv files that Magento then consumes and updates status of orders. The rest of the NAV processes should work fine, its just that first step of connection is not happening to get data
Due to the recent shift in server, the URL for our SOAP API has slightly changed and so has the IP Address. We have changed the URL in the code unit associated with getting the new orders however the we are still getting an error as below with a reference to old IP address like
Error - a call to system.net.httpwebrequest.getrequeststream failed with this message: a connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond: (old IP):80
How do we resolve this issue? I believe we would have to edit the new IP address in some file or change the URL in some other file maybe?
Very new to NAV so excuse any lack of info or confusion
Thank you!
*This post is locked for comments
Hi Newbienav,
Can you access the WSDL of the soap api in the browser?
You can test your connection with the api using the PowerShell ISE:
$webserviceURL = "yourmagentosite/.../v2_soap"; $webservice = New-WebServiceProxy -Uri $webserviceURL
You can also try to login and run some methods
$sessionId = $webservice.login('yourusername', 'yourapikey') $webservice.magentoInfo($sessionId)
If you are you sure that the connection works, can you ask for developer help to debug the NAV Process so you can find the URL that NAV calls?
Sohail Ahmed
2
mmv
2
Amol Salvi
2