Dynamics Nav Soap Web Services Codeunit Javascript

Posted By admin On 22.08.19
Dynamics Nav Soap Web Services Codeunit Javascript Rating: 7,5/10 6487 votes

I`m trying to call a Nav 2013 R2 web service codeunit with a custom SOAP command and I get a response indicating that the parameters being passed are null, which they are not.

  1. Dynamics Nav Soap Web Services Codeunit Javascript File

Now I've played about a lot with webservices but it's normally me calling them from NAV rather than calling a NAV one. On top of this, I don't really know JavaScript:-) Anyway, I have a simple NAV webservice which adds a record to a table. I am trying to call it as a SOAP web service but don't mind if there's a better option such as OData.

Does anyone have an answer as to why this is happening or could point me in a direction that could help solve this? Thanks!

Javascript

Here is the SOAP request:

Here is the SOAP response:

Here is the service as exposed by Nav:

Doug J. Huras
Doug J. HurasDoug J. Huras

Dynamics Nav Soap Web Services Codeunit Javascript File

1 Answer

Dynamics nav soap web services codeunit javascript free

Check namespaces in wsdl definition and your request. Namespaces are case sensitive.

wsdl:

urn:microsoft-dynamics-schemas/codeunit/WebTestCodeunit

reqest:

urn:microsoft-dynamics-schemas/Codeunit/WebTestCodeunit

This could throw the exception you see.

Alexander DroginAlexander Drogin
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.

Not the answer you're looking for? Browse other questions tagged htmlweb-servicessoapdynamics-nav or ask your own question.