måndag 13 maj 2013

Testing BizTalk MultiPart messages in VS2010

In order to test that you multipart map in Biztalk does what it is suposed to, it is a nice idea to testit before delivering to test enviroments.

Here is one way to it usring VS2010 map properties.

1. Set Map properties Test Map according the following:


Generate Instance option will genenarte a message instance of the multipart source according the data types of the schemas.

2. Right click you multipart map och click TestMap.

3. On the output window crtl+click the link after TestMap used the following file: ..... as input to the map.

It will look something like this:
<ns0:Root xmlns:ns0="http://schemas.microsoft.com/BizTalk/2003/aggschema"><
InputMessagePart_0><
ns1:Root xmlns:ns1="http://Examples.Schema1"><
CustomerId>CustomerId_0</CustomerId><
FirstName>FirstName_0</FirstName><
LastName>LastName_0</LastName></
ns1:Root></
InputMessagePart_0><
InputMessagePart_1><
ns2:Root xmlns:ns2="http://Examples.Schema2"><
Orders><
Order><
OrderId>OrderId_0</OrderId><
Amount>Amount_0</Amount></
Order></
Orders></
ns2:Root></
InputMessagePart_1></
ns0:Root>
Replace the data and make a test!!

Inga kommentarer:

Skicka en kommentar