Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

NAV request to changed magento server is getting an error

(0) ShareShare
ReportReport
Posted on by

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

  • Suggested answer
    Marcellus Profile Picture
    2,735 on at
    RE: NAV request to changed magento server is getting an error

    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?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Microsoft Dynamics NAV (Archived)

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2

#1
mmv Profile Picture

mmv 2

#1
Amol Salvi Profile Picture

Amol Salvi 2

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans