Forum Replies Created
-
AuthorPosts
-
October 21, 2009 at 1:49 AM in reply to: Parallel convoy with varying number of receive files #23491
Hi ,
You can create internal message for the application. For an example you can create internal message with 3 elements.
1. Status
2. File name
2. Payload
Using custom receive pipeline component you can create the internal message . When you receive the specific file , you can set status field as ‘true’ . You can have 5 receive shapes but you can call sub orchestration/ conditional block if message. Status = true.
try this way , Hope this will help
Nandika
October 20, 2009 at 9:11 AM in reply to: Parallel convoy with varying number of receive files #23488I am assuming there is something about the name and/or extension of the stop file that allows you to identify it without having to open it? Could you give me a sample of what the filenames would be? I think I have a solution, but I want to verify what the filenames look like.
Hi,
validate your test file against your schema through VS . Are you using any custome pipeline component ?
Nandika
October 20, 2009 at 2:13 AM in reply to: Parallel convoy with varying number of receive files #23486It is at least two files, and it can be up to 5 different files. The files are related by having the same file name, but with different extension. The files are created in unknown order, but the stop file is always created as the last one. So the issue is to receive files in unknown order, and when the stop file arrives, then it has got all the files, regardless of the number of files. Then the orchestration continues and sends the information received into the ERP.
I don’t know if there is a delay in the arrival of the files, they are created by an external system.
I think if you use the WCF adapter in BizTalk 2006 R2 or 2009 this is possible. I believe that a messaging only scenario with the Soap adapter is very nearly impossible.
Check out these screen casts
http://www.pluralsight.com/community/blogs/aaron/archive/2007/12/12/49405.aspx
http://www.pluralsight.com/community/blogs/aaron/archive/2007/11/15/49172.aspx
http://www.pluralsight.com/community/blogs/aaron/archive/2007/11/28/49312.aspx
http://www.pluralsight.com/community/blogs/aaron/archive/2007/11/28/49312.aspx
October 19, 2009 at 10:52 AM in reply to: Parallel convoy with varying number of receive files #23481I think you need to solve this with a sequential convoy. The only issue is if you receive the stop file first, we still need to find a way to pick up the remaining files before the orchestration continues. I have a couple of additional questions…
Do you know how many files will be in any given group, based on something in the file or the file name, or is it unknown?
Will these files arrive in the directory at the same time, or is there a delay in between their arrival?
That’s great; thanks Daniel. All works now :).
Hi JB,
Did you install Biztalk before installing Visual Studio on your machine? If so, you will not see the Biztalk project templates when opening VS, so uninstall BizTalk and re-install it. When you open Visual Studio, and go to File -> New Project, you will see an entry for BizTalk Projects, which allows you to create a BizTalk project; when you add an Orchestration object to your project, you will see the Orchestration Design Surface displayed in the center.
Daniel.
Daniel,
Thanks for the response. I actually played with adding in a SeqNode type Record, and stripping it out in a pipeline component. I have to strip it out, as the destination is not my schema. I did not care for this, as I was actually modifying their provided schema, I wanted to have BT confirm to their requirements.
Then on another forum some guys had me try some xslt in a Scripting Functiod within my map. Here is a link to what I have been playing with over the last few days trying to tweak it to get the correct sequence of notes.
I appreciate the input.
mike
Hi,
We are also experiencing the same problem. Did you get any solution for this?Regards,
Sanjay AhujaHi Grant,
Check out this following blog on how to do it: http://forums.asp.net/t/964022.aspx
Daniel.
Hi Mike,
Your target schema should be something like this:
<?xml version=”1.0″ encoding=”utf-16″ ?>
<xs:schema xmlns:b=”http://schemas.microsoft.com/BizTalk/2003” xmlns=”http://Test_Project.Schema2” targetNamespace=”http://Test_Project.Schema2” xmlns:xs=”http://www.w3.org/2001/XMLSchema“>
<xs:element name=”OrderInfo”>
<xs:complexType>
<xs:sequence>
<xs:element minOccurs=”1″ maxOccurs=”unbounded” name=”SeqNode”>
<xs:complexType>
<xs:sequence>
<xs:element name=”ProductInfo”>
<xs:complexType>
<xs:sequence>
<xs:element name=”LineNumber” type=”xs:string” />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name=”CommentLine”>
<xs:complexType>
<xs:sequence>
<xs:element name=”CommentText” type=”xs:string” />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>Then, in your map, link the element fields in your source schema to the element fields in the destination schema, put a Looping functoid in the map, and connect the left-hand side to the Lines node in your source schema, and connect the right-hand side to the SeqNode node in the destination schema, and you should be all set…
Daniel.
It worked
ChildOrder property value must be Postfix.
-
AuthorPosts