Codeunit Web Service (WSDL)

I have a simple Nav 2017 codeunit which compiles well on Nav Development. I then go forward to Publish and Expose it. But when i paste the URL on my browser (IE) its not showing my Functions. What could be wrong ? Please help.

http://abm-nav2017.abm.co.ke:7047/DynamicsNAV100/WS/Chloride Exide Kenya Ltd/Codeunit/MPESAC2B
___________________________________________________________________________________________________________________

<definitions xmlns="http://schemas.xmlsoap.org/wsdl/&quot; xmlns:tns="urn:microsoft-dynamics-schemas/codeunit/MPESAC2B" targetNamespace="urn:microsoft-dynamics-schemas/codeunit/MPESAC2B">

<types>

<schema xmlns="http://www.w3.org/2001/XMLSchema&quot; elementFormDefault="qualified" targetNamespace="urn:microsoft-dynamics-schemas/codeunit/MPESAC2B"/>

</types>

<portType name="MPESAC2B_Port"/>

<binding name="MPESAC2B_Binding" type="tns:MPESAC2B_Port">

<binding xmlns="http://schemas.xmlsoap.org/wsdl/soap/&quot; transport="http://schemas.xmlsoap.org/soap/http"/&gt;

</binding>

<service name="MPESAC2B">

<port name="MPESAC2B_Port" binding="tns:MPESAC2B_Binding">

<address xmlns="http://schemas.xmlsoap.org/wsdl/soap/&quot; location="http://abm-nav2017.abm.co.ke:7047/DynamicsNAV100/WS/Chloride Exide Kenya Ltd/Codeunit/MPESAC2B&quot;/&gt;

</port>

</service>

</definitions>

Comments

  • robbonickrobbonick Member Posts: 40
    Make sure your functions are Global Functions, not Local.
  • xenosxenos Member Posts: 16
    Open the CodeUnit. ALT+V+B or CTRL+G. Then go to the functions TAB and "stand" on the relevant function name. Open properties (SHIT+F4) and set Local to No.
Sign In or Register to comment.