.comment-link {margin-left:.6em;}

Ben Cops

Wednesday, September 29, 2004

Microsoft BizTalk Server: BizTalk Adapter for MQSeries v2.0

Microsoft BizTalk Server: BizTalk Adapter for MQSeries v2.0

The MQ adapter for 2004 is out, and suddenly its free...

Wednesday, September 08, 2004

SWIFT BRE deployment utility

The SWIFT BRE deployment utility *can* be run automatically/from the command line/from my NAnt script.

A swift <koff>decompile reveals that popping the assembly name to inspect + deploy on the command line executes the deploy, and exits the utility


if (cmdLine.Length > 0)
{
MainForm.silentInstall = true;
for (num1 = 0; (num1 < cmdLine.Length); num1 = (num1 + 1))
{
form1.AddAssembly(cmdLine[num1]);

}
form1.Show();
form1.Refresh();
form1.btnDeploy_Click(null, null);
Application.Exit();

}
else
{ Application.Run(form1);

}

so you can just do a:
Microsoft.Solutions.FinancialServices.SWIFT.BREDeploymentUtility.exe SWIFTSchemas



UPDATE: For SWIFT 2.1 this changed so that the syntax was:
Microsoft.Solutions.FinancialServices.SWIFT.BREDeploymentUtility.exe deploy SWIFTSchemas
or
Microsoft.Solutions.FinancialServices.SWIFT.BREDeploymentUtility.exe undeploy SWIFTSchemas

Orchestration Namespace problems...

My orchestrations stopped compiling. First I got this error:

"'': can only call or exec a service"

…for each call orchestration call shape, and a matching error saying it can’t resolve the orchestration name (although the dropdowns and intellisense,etc, appear to be perfectly capable of resolving the orchestration name – they’re all in the one project after all). If I removed all of the call orchestration shapes I got this error

The namespace '.BizTalk.Orchestrations.Service' already contains a definition for '_MODULE_PROXY_'

One for each namespace node involved. Looking at the interim files generated there is indeed an empty, sealed class called _MODULE_PROXY_ in the generated code.

This was I think, in the end, a visual studio bug.
I have my (30 odd) orchestrations sorted by type into folders. At a certain point (I haven’t established the exact conditions) vstudio starts defaulting the namespace property of the individual orchestration to the wrong namespace – instead of <orchestration>.<foldername>.orchestration, it sometimes just puts module1 in for foldername or just leaves the foldername out altogether.
Any deviance from the “right way” gives the errors detailed below. What really caused problems for me was that you don’t get to the namespace property of the orchestration by looking at the properties window for the orchestration file, but by opening the orchestration, and clicking on the whitespace in the orchestration designer, then looking at the properties window. I'd thought of a namespace problem first, but discounted it because I couldn't find a namespace property for an individual orchestration, and so assumed it couldn't be set per orch. Live and learn…