Dynamics Nav Soap Web Services Codeunit Javascript
Posted By admin On 22.08.19I`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.
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!
Here is the SOAP request:
Here is the SOAP response:
Here is the service as exposed by Nav:
Dynamics Nav Soap Web Services Codeunit Javascript File
1 Answer
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.