Quick Question about PortBindingsMaster

Topics: Bindings File, Settings Management and SSO
Feb 16, 2011 at 10:01 PM

Hi ,

I am thinking that this is a straigtforward question.

I am using the latest version of the Deployment framework and looking at the PDF help file regarding ->

Environment-Relative Configuration for Server Deployments

In order to do implement this in my project I am doing the following ->

1) Creating a File called -> PortBindingsMaster.xml  (i.e. created by Exporting bindings from the BTS Admin console).

2) In my Deployment.btdfproj file I am setting the below:

<IncludeMessagingBindings>True </IncludeMessagingBindings>

<IncludeMasterBindings>True </IncludeMasterBindings>

3) Going into the SettingsFileGenerator,xml spreadsheet and placing my custom settings for DEV/QA/PROD columns etc.

4) Then in my PortBindingsMaster.xml file I am setting as below (ie. based on PDF help file): 

<PrimaryTransport>
        <!-- ifdef ${ _xml_preprocess} -->
         <!-- <Address>${FileSendLocation}\%MessageID%.xml</Address> -->
         <!-- else -->
         <Address>C:\temp\BizTalkSample_OutDir\%MessageID%.xml</Address>
         <!-- endif -->

When my PortBindings.xml  file is generated it looks as below:

<PrimaryTransport>
        <!-- ifdef  -->
         <!-- <Address>c:\yes this worked and grabbed setting from spreadsheet\%MessageID%.xml</Address> -->
         <!-- else -->
         <Address>C:\temp\BizTalkSample_OutDir\%MessageID%.xml</Address>
         <!-- endif -->

Therefore the above will always use : <Address>C:\temp\BizTalkSample_OutDir\%MessageID%.xml</Address> , because the replaced tag is still within comments <!--   -->

5) What I am doing in the end is following the example project from -> BasicMasterBindings and  setting my  PortBindingsMaster.xml file as below:

<PrimaryTransport>
           <Address>${FileSendLocation}\%MessageID%.xml</Address>

Then my generated PortBindings.xml is correct as below:

<PrimaryTransport>
                <Address>c:\yes this worked and grabbed setting from spreadsheet\%MessageID%.xml</Address>

6)  Therefore my final question is:

Is it possible to get scenario 4) to work. Therefore if I am using the deployment framework, my PortBindings.xml generated file will look as below

<PrimaryTransport>
        <!-- ifdef -->
         <Address>c:\yes this worked and grabbed setting from spreadsheet\%MessageID%.xml</Address>
         <!-- else -->
          <!-- <Address>C:\temp\BizTalkSample_OutDir\%MessageID%.xml</Address> -->
         <!-- endif -->

If I am not using the Deployment Framework, then I can use my PortBindingsMaster.xml as is and it will use the default (Non Deployment value) for the address in bold:

<PrimaryTransport>
        <!-- ifdef ${ _xml_preprocess} -->
         <!-- <Address>${FileSendLocation}\%MessageID%.xml</Address> -->
         <!-- else -->
         <Address>C:\temp\BizTalkSample_OutDir\%MessageID%.xml</Address>
         <!-- endif -->

Thanks,

Fred

 

Feb 16, 2011 at 10:14 PM

Nevermind,

Was looking around and found that setting:

<RequireXmlPreprocessDirectives>True</RequireXmlPreprocessDirectives>

did the trick and fixed the above.