c# - Using a BizTalk orchestration to call .NET class library to read xml when there is new xml file in the directory -


i have set receive message , receive port monitor xml files. added expression shape execute .net class library using

system.diagnostics.process.start         (@"c:\temp\xmlreader\xmlreader\bin\release\xmlreader.exe"); 

when deploy biztalk, new file gets received on receive location, file disappears , nothing happens. have other orchestration project receive , send port file disappears , not move send location

i not sure following logic. however, assuming have correctly set subscription between orchestration , message published receive port. by time orchestration activated, original file system xml gone forever. in fact gone once receive location enabled , consumes it. if trying manually read original xml file off file system, orchestration, not successful.

biztalk has pitfalls, when in doubt, stick incremental approach;

  1. create/enable receive port , location straight administration console (forget visualstudio now).
  2. pass in xml (or whatever)
  3. use management console see if message created , status is.
  4. create orchestration includes

    system.diagnostics.debug.writeline()

    statements, subscribe receive port.

  5. drop in message , use debugview see output writeline method calls.

Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -