Remove Namespace – Web Service Response (Automation Variable)

Hey Everybody,

This Post is about How to Import directly an XML which is coming as Web-Service from different platform like .NET. Whenever we get a response from a .NET Service we usually get Namespaces coming as enclosed in it. Now being a NAV developer  it’s something which becomes a barrier to us while getting it directly Imported from NAV XML Ports. So here we are to how get rid from this.

What exactly you need to do is you have to write below piece of code with the same DotNet variable references which you have used while getting sending a Request.

Capture

When you will save this in the last call your response will get saved without Namespaces. Now you can directly Import it Via your XML Port.

XmlStyleSheet – ‘Microsoft XML, v6.0’.DOMDocument60

XMLSourceDocument – ‘Microsoft XML, v6.0’.DOMDocument60

XMLDestinationDocument – ‘Microsoft XML, v6.0’.DOMDocument60

CHEERS.

Advertisements

4 comments on “Remove Namespace – Web Service Response (Automation Variable)

  1. Pingback: Remove Namespace – Web Service Response (Automation Variable) - Microsoft Dynamics NAV Community

  2. Pingback: Remove Namespace – Web Service Response (Automation Variable) - Dynamics NAV by RockWithNAV - NAV User Group

  3. I have an order xml-file with multiple namespaces that I’m trying to import with an xml-port and I guess I have to remove the namespaces and prefix to get it to work in NAV 2013 R2.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s