biztalk

Starting mutliple orchestrations from parent orchestration and passing messages to them

Hello, I have a situation where a main orchestration is responsible for processing a convoy of messages. These messages belong to a set of customers, the orchestration will read the messages as they come in, and for each new customer id it finds, it will spin up a new orchestration that is responsible for processing the messages of a par...

How to add WCF Service Reference when using net.msmq

How do you start a WCF client when using the service is only available on net.msmq - when you use the "Add Service Reference", you get an error ... The MetadataExchangeClient instance could not be initialized because no Binding is available for scheme 'net.msmq'. You can supply a Binding in the constructor, or specify a configurationN...

Bizmonade - testing orchestration that receives ANY document

Hello, I have an orchestration that receives any document type in BizTalk (System.Xml.Document). It looks like Bizmonade always wants to use an orchestration that specifies a type of schema that is different from ANY. OrchestrationSimulator.Test<Dummy__Simulated>() .When(MessageReceived.FromFile<CanonicalInvoice>( Path.Combine(AppDom...

Deploy BizTalk Application via MSBuild

I am trying to setup up a continuous integration type environment for BizTalk. When source code is checked in, I need it to build then deploy to a build server. I have found BTSTask.exe but this seems to only be able to install an application from an existing msi. I need a way of basically doing what visual studio does when you right c...

Number of files received by a file receive location

Hi, Is there a way to calculate the number of files received by a receive location using BAM? Thanks ...

BizTalk namespace default prefix

Hello, BizTalk produced namespace default prefix as NS0. Is there a way to override it to generate something different without utilizing an XSLT (it's an overhead when the schema changes, XSLT has to be updated as well)? Something like <pidx:Invoice> and not <ns0:Invoice> This should be simple (after all it's just a namespace pr...

Copy message parts from message to message in BizTalk

Hi, The only way I could find is to write a custom .NET assembly to perform the task. Is there a way to do it within expression in orchestration? I have an input message that has parts and I'd like to copy those to the destination (mapped) message. Thank you. ...

Dispose a stream in a BizTalk pipeline component?

I'm fairly new to BizTalk and creating a custom pipeline component. I have seen code in examples that are similar to the following: public void Disassemble(IPipelineContext pContext, IBaseMessage pInMsg) { Stream originalDataStream = pInMsg.BodyPart.GetOriginalDataStream(); StreamReader strReader = new StreamReader(originalDat...

Serialize XML (via IXmlSerializable) to XmlDocument

I'm trying to write an XmlDocument from an instance of a class to pass to BizTalk (2006 R2, if it matters). I'm implementing IXmlSerializable because I believe it'll give me the most flexibility (this object won't necessarilly always be written to an XmlDocument and passed to BizTalk). So, I have implemented IXmlSerializable, and now I...

Biztalk mapping Date to String

I'm working on a biztalk project and use a map to create the new message. Now i want to map a datefield to a string. I thought i can do it on this way with an Function Script with inline C# public string convertDateTime(DateTime param) { return System.Xml.XmlConvert.ToString(param,ÿyyyMMdd"); } But this doesn't work and i receive ...

Is BizTalk an ESB?

hello, I am looking into architectural patterns, Enterprise Services Bus (ESB) precisely. Upon reading this article Enterprise Integration, and with little to no experience I am wondering if BizTalk has is a ESB or is it just a EAI (Hub/Spokes or Bus)? I found this NServiceBus and Biztalk, describing BizTalk as a central message broker...

Choosing an ESB for .NET

I know that the question has been asked before, but it's been two years and things might have changed. Also I have more specific requirements that I wish to discuss. We have a few systems that need to interoperate. We want to use the Mediator Pattern and a Publish/Subscribe communication model: Some systems will publish information to t...

Howto use BizTalk TestableReceivePipeline when having a schema which has an imported schema

Under Microsoft BizTalk 2009, we want to test the ReceivePipeline(which has a Flat file disassembler) with the built-in TestableReceivePipeline class. It works fine if we use one single Schema, but it throws an error (System.Xml.Schema.XmlSchemaException: The 'ABC' element is not declared.) when we try to use a schema(Schema1) which has ...

Set up notifications when Biztalk send/receive ports stop or are disabled

We have a Biztalk 2006 R2 server, and from time to time, the receive ports will change to "Disabled" status for any one of a number of reasons - most commonly, server maintenance elsewhere on the network causes the file share they point to to become unavailable, so it stops the port. This causes trouble when transmissions we expect to ha...

Return a Message from a Called Orchestration

Hi We have a parent orchestration where we call a child orchestration. However, once the child orchestration has completed, we would like to return a message to the parent orchestration. What is the best / most standard way to do this? A) Just publish the message from the child orchestration to the messagebox and correlate this in th...

Implement Content-Based Routing Using a Business Rules Policy for a Known Message Type does not work using Samples

Hi, I'm fairly new to Biztalk and the ESB Toolkit, We have since tried to implement content based routing via an ESB Itinary but I am having problems with the condition on the business rule not evaluating properly, I've been following the microsoft example in the link below but it just doesn't want to work. http://msdn.microsoft.com...

WCF service and Biztalk service configuration error

Hi, I have a WCF web service which calls a biztalk service( ie Orchestration). When i do the unit test i am getting following error: Test method Goudse.BcVerzekering.Bts2006.InkCol.Business.UnitTests.UnitTest1.VerzekeringFacade_Goed threw exception: System.ServiceModel.FaultException: The binding at system.serviceModel/bindings/wsHttp...

What are some best practices for basic workflow using biztalk 2009?

I'm working on a Biztalk 2009 proof of concept project and would like to setup a basic approval workflow. Request Vacation. Step 1. Request Vacation. Step 2. Route Request to Manager. Step 3. Manager Approve / Denies Vacation. Step 4. Update Vacation Calender / Notify Originator of Approval. Outside of Biztalk I'll have to provide an...

Creating BizTalk 2006 adapters programmatically

I'm writing a configuration script for a BizTalk server I need to create a few adapters. In the "BizTalk Server Administration" application this is done by going to Biztalk Server Group / Platform Settings / Adapters and choosing New / Adapter from the right-click menu. I'd like to automate this process somehow, using a Powershell sc...

Problem deploying Biztalk Application - Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

Any idea why I would be getting this Access Denied Exception? I'm deploying a very basic Biztalk 2009 project from Visual Studio. error DEPLOY: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) error DEPLOY: at Microsoft.BizTalk.Gac.Fusion.IAssemblyCache.InstallAssembly(AssemblyCacheInstallFlag flags, String m...