Posting invoice using webservice

Dear All,

I am facing a problem of not being able to post invoice from a sharepoint UI using webservice. I have exposed the codeunit no 80 as a webservice. But as it has got a record type parameter the webservice gives an error.

Can anyone help me out to solve the issue. Thanks in advance

regards,

Naval