WebServices.ServiceBrokerException

i try with codeunit 12 and published… and checked thru internet explorer.

localhost:7047DynamicsNAV/WS/CRONUS_International_Ltd/services

working fine and list "GenJnlCodeLine " but

localhost:7047DynamicsNAV/WS/CRONUS_International_Ltd/CodeUnit/GenJnlCodeLine

then face issue.

This XML file does not appear to have any style information associated with it. The document tree is shown below.
<s:Envelope xmlns:s="">schemas.xmlsoap.org/…/">
<s:Body>
<s:Fault>

a:Microsoft.Dynamics.Nav.Service.WebServices.ServiceBrokerException


Parameter newGLReg of the type INavRecordHandle in method GetGLReg in service GenJnlCodeLine is invalid!


schemas.microsoft.com/.../">](http://schemas.microsoft.com/2003/10/Serialization/)
Parameter newGLReg of the type INavRecordHandle in method GetGLReg in service GenJnlCodeLine is invalid!


</s:Fault>
</s:Body>
</s:Envelope>

Codeunit 12 has function receiving records as parameter, which is not allowed in webservices.

If you need it as WS it’s necessary to develop a “wrapping” codeunit to expose which call CU 12.