web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

NAV SOAP Envelop

(0) ShareShare
ReportReport
Posted on by 100

hi I've trying to call the dimensions web service but I'll getting an internal error 500, the windows app logs say invalid SOAP envelop but not much more. Here is the soap request I'll sending:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><ExportDimWS2 xmlns="urn:microsoft-dynamics-schemas/codeunit/wsdefaultdims"><dimCodeFilter>1</dimCodeFilter><dimValueCodeFilter>1</dimValueCodeFilter><onlyActive>false</onlyActive><timeOut>100</timeOut><priority>2</priority><xmlText>1</xmlText></ExportDimWS2></soap:Body></soap:Envelope> 

Can anyone see anything wrong with it? I removed the blank <soap:Header/> element to see if that was causing an issue. I'll also sending the SOAPAction header urn:microsoft-dynamics-schemas/codeunit/WSDefaultDims:ExportDimWS2.

Can anyone send me a working SOAP Envelop example? I'll trying to connect to NAV 2009 SP1.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Roberto Stefanetti Profile Picture
    12,998 on at

    hi,

    only a suggestions, try with XMLPorts, look at this post:

    Using XMLports With Web Services

    community.dynamics.com/.../using-xmlports-with-web-services.aspx

  • Suggested answer
    jcastro Profile Picture
    2,245 on at

    Hello Ahuakau!

    In addition to what Roberto has said, I find that when I have to work with webservices and I can't use the method Roberto has suggested, I choose to get the connection working using SoapUI (you can download it and it's free). It allows you to give it a webservice URL and it will create samples for every function/method it can find. Also, when you go ahead and send a request, you will be able to see exactly what the Header looks like and what the parameters are, so you can copy the structure afterwards.

    Hope it helps!

  • ahuakau Profile Picture
    100 on at

    Thanks I'll have a talk with the Nav consultant

  • ahuakau Profile Picture
    100 on at

    Thanks. SOAP UI is normally my go to, but the version I had didn't support NTLM auth. I'm going to download the latest version. I've also using this in the past restclient-ui-3.1-jar-with-dependencies.jar it has NTLM support but it didn't work for me.

  • ahuakau Profile Picture
    100 on at

    I've got a C# test app and Fiddler installed, so I'm going to try and grab the SOAP calls.

  • Suggested answer
    jcastro Profile Picture
    2,245 on at

    Hello,

    About the use of SOAPUI and NTLM Auth, I have never faced a problem with that. I just use the appropiate credentials including the domain as well where needed when getting the list of methods and also when actually sending the request (for some reason SoapUI does not keep the same credentials for both, it might just be my version though). 

  • ahuakau Profile Picture
    100 on at

    We found SOAPUI would not work because we have using NTML V2 and SOAPUI uses V1

  • Suggested answer
    ahuakau Profile Picture
    100 on at

    After using a custom c# app and Fiddler we intercepted the following SOAP envelop:

    Request header: SOAPAction: "urn:microsoft-dynamics-schemas/codeunit/WSDefaultDims:ExportDimWS2"

    SOAP envelop:

    <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><ExportDimWS2 xmlns="urn:microsoft-dynamics-schemas/codeunit/WSDefaultDims"><dimCodeFilter /><dimValueCodeFilter /><onlyActive>0</onlyActive><timeOut>0</timeOut><priority>0</priority><xmlText /></ExportDimWS2></soap:Body></soap:Envelope>

  • ahuakau Profile Picture
    100 on at

    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans