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.
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