Unable to see any Methods on Codeunit 80

flascubaflascuba Member Posts: 3
edited 2012-10-25 in NAV Three Tier
When I publish codeunit 80 as a Web Service for Microsoft Dynamics NAV 2009 R2, The following error is displayed in the WSDL:
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
- <s:Body>
- <s:Fault>
  <faultcode xmlns:a="urn:microsoft-dynamics-schemas/error">a:Microsoft.Dynamics.Nav.Service.WebServices.ServiceBrokerException</faultcode> 
  <faultstring xml:lang="en-US">Parameter itemJnlLine of the type INavRecordHandle in method PostBOMJnlLine in service Sales_Post_CU is invalid!</faultstring> 
- <detail>
  <string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">Parameter itemJnlLine of the type INavRecordHandle in method PostBOMJnlLine in service Sales_Post_CU is invalid!</string> 
  </detail>
  </s:Fault>
  </s:Body>
  </s:Envelope>

I can publish and use successfully Web Services Page's, can't figure out how to get this to work.

Looking to call it with a Sales Header and Post the Sale. What am I missing?

Thanks in advance!

Comments

  • mdPartnerNLmdPartnerNL Member Posts: 802
    don't use this cu 80 directly. Use a new codeunit and call 80.
  • flascubaflascuba Member Posts: 3
    Other codeunits allow you to address them directly as a web service, codeunit 80 should also. Having to add code is not the correct answer here. Thank you for your response.
  • BeliasBelias Member Posts: 2,998
    In the error, it appears that there's "PostBOMJnlLine" function that cannot be run from webservice. As i don't have this function on my database (localized?customized?) can you please share what are the parameters of that function?it appears there's something wrong with them.
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
Sign In or Register to comment.