Options

WCF and NAV 2009

HediHedi Member Posts: 16
edited 2010-04-05 in NAV Three Tier
Hi All,
I need to know is it possible that NAV2009 can call a WCF Service from the codeunit

Thanks for Help

Comments

  • Options
    ara3nara3n Member Posts: 9,255
    what communication protocols are you going to use. if SOAP+HTTP (web services), then yes you can use MSDOM automation and there are many examples on how to do that in NAV.

    Here is an example of WCF service running as windows service hosting a webservice.

    http://mibuso.com/blogs/ara3n/2009/05/0 ... b-service/
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • Options
    HediHedi Member Posts: 16
    So as my enderstand, you that we must Hosting the WCF Service as a basic WebService to be consumed from the NAV Codeunit.
  • Options
    ara3nara3n Member Posts: 9,255
    Could you tell us what are you trying to do?
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • Options
    HediHedi Member Posts: 16
    Im trying fo to call a WCF Services from NAV2009 to integrate the NAV with others systems like MSCRM and an extranet.
    so we have a WCF Layer that expose many services to be consumed.
  • Options
    ara3nara3n Member Posts: 9,255
    what communication protocol is that WCF is using?

    Write your code for the communication in .NET, then make that COM visible dll file. In NAV you can reference and instantiate the dll and pass any relevant info to MSCRM.

    I suggest to use already solution that are available. SCRIBE is one of them.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • Options
    HediHedi Member Posts: 16
    Thanks,

    I create a DLL that use my WCF Services and NAV can call it from NAV Form and the codeunit. The DLL works fine,
    but Im trying now to use complex data:
    I have a methode named "CreateCRMProduct" this methode take some parameter and return an Object of Type CRMProduct
    that contain some properties like name, productnumber,ProductGuid..., NAV can see the CRMProduct type but I cant access to the properties, why? may be the is a way to format the WCF format of data into NAV format?

    Thanks for Help
  • Options
    ara3nara3n Member Posts: 9,255
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
Sign In or Register to comment.