Remove Namespace – Web Service Response (DotNet 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 – MSXML.DOMDocumentClass.’Microsoft.MSXML, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’

XMLSourceDocument – MSXML.DOMDocumentClass.’Microsoft.MSXML, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’

XMLDestinationDocument – MSXML.DOMDocumentClass.’Microsoft.MSXML, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’

CHEERS.