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;
- create/enable receive port , location straight administration console (forget visualstudio now).
- pass in xml (or whatever)
- use management console see if message created , status is.
create orchestration includes
system.diagnostics.debug.writeline()
statements, subscribe receive port.
- drop in message , use debugview see output writeline method calls.
Comments
Post a Comment