Skip to main content

Notifications

Small and medium business | Business Central, N...
Suggested answer

Navision Soap Problem with Import Data via XMLport

Posted on by 5

Hello, hope someone get help me with my problem.

Im  using Navison Webservices(SOAP)  with a Codeunit and Xmlport as parameter to communicat between NAV and a .NET-App. In .NET im using Web-References to autom. generate some classes for the Webservices. Everything works fine until iam importing Data from NAV to .NET. But if i will send Data to NAV there will be an error. What i found outis, that the reason is  the XML-File from .NET.

In the Root-Element is the namespace missing and NAV cant find the Element during import.

Hier is a part from the XML-File .NET

<?xml version="1.0"?>
<xmlWeighingHeader xmlns:xsi="">www.w3.org/.../XMLSchema-instance" xmlns:xsd="">www.w3.org/.../XMLSchema" >
<WeighingHeader xmlns="urn:microsoft-dynamics-nav/xmlports/x50055">
<Terminal >NB061</Terminal>
<ItemNo >LS-S15</ItemNo>

and correct it has to be:

<?xml version="1.0"?>
<xmlWeighingHeader xmlns:xsi="">www.w3.org/.../XMLSchema-instance" xmlns:xsd="">www.w3.org/.../XMLSchema" xmlns="urn:microsoft-dynamics-nav/xmlports/x50055">
<WeighingHeader xmlns="urn:microsoft-dynamics-nav/xmlports/x50055">
<Terminal >NB061</Terminal>
<ItemNo >LS-S15</ItemNo>

therefore everything is automated generated from .NET, how can i correct this? 

  • Suggested answer
    Marco Mels Profile Picture
    Marco Mels on at
    RE: Navision Soap Problem with Import Data via XMLport

    Hello,

    We currently do not have dedicated Dev support via the Dynamics 365 Business Central forums, but I wanted to provide you some additional resources to assist.  If you need assistance with debugging or coding I would recommend discussing this on one of our communities.

    www.yammer.com/dynamicsnavdev

    dynamicsuser.net/.../developers

    I will open this up to the community in case they have something to add.

    Thanks.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans