can we use windows scheduler to execute webservice?

julkifli33julkifli33 Member Posts: 1,092
edited 2011-12-12 in NAV Three Tier
hi all
since i'm not familiar using NAS
and my customer not willing to buy granule for execute NAS
i want to use another way... by using windows scheduler to automatic import
my question is.... can we use windows scheduler to automatic import from web services?
thanks in advance

Comments

  • vrushankvrushank Member Posts: 16
    Yes, that is possible.
    I presume you will be consuming the web service using a codeunit. If thats the case i'm pretty sure you can set it by making a dummy form and calling the codeunit from that form.
    A day without the sun is like night
  • julkifli33julkifli33 Member Posts: 1,092
    vrushank wrote:
    Yes, that is possible.
    I presume you will be consuming the web service using a codeunit. If thats the case i'm pretty sure you can set it by making a dummy form and calling the codeunit from that form.

    so for the import process, i should do it in codeunit?
    not in c#?
    thanks
  • vrushankvrushank Member Posts: 16
    I'm not sure about the C# bit mate!
    A day without the sun is like night
  • deV.chdeV.ch Member Posts: 543
    Hmm if i got your point, you would create a .net program that invokes the webservice, this program would be triggered by the win-scheduler.
    This should work and enable you to do your automatic import job (or any other job you call in the webservice method).

    Don't forget to run the scheduler task under an network account that has NAV permissions!
  • julkifli33julkifli33 Member Posts: 1,092
    deV.ch wrote:
    Hmm if i got your point, you would create a .net program that invokes the webservice, this program would be triggered by the win-scheduler.
    This should work and enable you to do your automatic import job (or any other job you call in the webservice method).

    Don't forget to run the scheduler task under an network account that has NAV permissions!
    so it means the import process i still do it in NAV,is it?
    thanks for the advice
  • deV.chdeV.ch Member Posts: 543
    Yes importing in NAV like it would be with a NAS.
    Webservice / Win-Scheduler is just used to call your import.
  • julkifli33julkifli33 Member Posts: 1,092
    deV.ch wrote:
    Yes importing in NAV like it would be with a NAS.
    Webservice / Win-Scheduler is just used to call your import.
    Ok then...
    thanks for the share
Sign In or Register to comment.