23 March, 2010

Re: BizTalk Config Settings

Try creating a helper class that reads the settings from your config file. You should be able to call that from within a message assignment shape in a construct block with no problems.

2 comments:

  1. There's a thought. I'd just need to tag the helper class as 'Serializable' (yes?), and expose the values themselves instead of the NameValueCollection.

    I think, though, that I like moving everything to the beginning of the orchestration rather than creating and deploying another custom dll.

    Or perhaps I'm missing something else-- can I create a helper class within a Biztalk project?

    ReplyDelete
  2. Yep - you need to mark it as serializable.

    And no create a VB / C# class project separate to your BizTalk project.

    The thing is, you only need to create one - and then just reference it in any projects you need it for.

    ReplyDelete