Forum Replies Created
-
AuthorPosts
-
In case you hadn’t figured it out already…
-
MessageIn(FILE.FileCreationTime) will return a System.DateTime object. Thus, FileCreatedTime must be created as a System.DateTime variable.
-
FILE.FileCreationTime will only have a value when using a FILE port.
Rich
If you’re trying the correctly set the message encoding on the outgoing message, you can either set it through the XmlAssembler TargetCharset property, or via the XLANG/S property TargetCharset as follows:
outputMsg(XMLNorm.TargetCharset) = "UTF-16";
Charles Young has a good write-up from BizTalk 2004: http://geekswithblogs.net/cyoung/archive/2004/07/04/7584.aspx
Hope that helps?
Nick.
AFAIK, the flat-file disassembler (the bit that translates the file
into Xml and splits) won’t be able to split records between files based
on a particular value – splitting works on nodes, splitting content and
moving on to the new bit of data, rather than maintaining temporary
messages that are built as the message is being parsed as you indicate
in your post).The purpose of a Flat File Receive Pipeline is to take a Flat File and convert it into a BizTalk message according to a schema. The dissassembler has a number of purposes; debatching is one of those purposes. I thought about doing the debatching inside of an Orchestration or inside of a map and it proved to be far more difficult than writing a custom Flat File dissassembler. I was relatevely new to BizTalk when I wrote my dissassembler and it hasn’t given me any problems.
Inside the Flat File Dissassembler (FFD) there are essentially 2 function: Dissassemble and GetNext. Dissassemble is called first by BizTalk after yout Flat File is received by the File Adapter. It is passed a Base Message which is essentially your Flat File stuffed into an XML envelope. I get a copy of the Base Message as a Stream, validate my Flat File, then return.
GetNext() is now called repeatedly by BizTalk until you return NULL, which indicates that there are no more messages in the Flat File.
Criffer,
WMI would be your best-bet – there are a number of tutorials out there, you’ll be particularily interested in the MSBTS_ServiceInstanceSuspendedEvent and MSBTS_ServiceInstance classes for checking suspended messages.
Kent Weare has a good example of using the BizTalk WMI bits on his blog at http://kentweare.blogspot.com/2007/05/biztalk-retrieving-tracked-messages.html
April 1, 2008 at 3:51 AM in reply to: help me point disadvantages of server farm biztalk installation #19214Hi nickh ..
In answers which I receive here, there some points incorrect: I am not going to build or to architect any system/architecrure/etc. The point is that we have a customer, who has some “Server farm”, with many system problems (maybe their administrator is not that good but it doesn’t matter anyway), so we intend to explain to that customer why in their specific case to use BizTalk solutions in their current environment will be disasterous. It’s not that much money counts, but using a correct archtecture.
Using Server farm can save a lot of money, but not when those servers fail once in half of year or change their SQL-Server names (which is also a big problem in certain cases). Anyway, thanx again.
Gregg,
the flat-file component isn’t really intended to split files, it’s intended to convert a flat-file into XML. So, I would be tempted to just convert the incoming into XML and then use a different technique.
There is a technique which can split an incoming message into n messages if the incoming message is structured as envelope and contents – not your case I think.
Also, it would be possible to do this with a map. It’s possible to have a map with multiple output messages – so with a bit of messing about you could do this. But I don’t think I would recommend it.
I think the simplest will be to write a pipeline component to split your message, after it has been converted into XML. Could be done before the conversion I guess, but if it was me I’d prefer to manipulate XML.
John D.
Can you post the destination XSD so we can work with you on that?
Mike
Hi Nick,
I observed that i have had Microsoft.Sdc.Tasks.BizTalk.dll of 2.0.60717.1 version ,Microsoft.Sdc.Tasks.dll of 2.0.60717.1 version ,Microsoft.BizTalk.Deployment.dll of 3.5.1602.2 and Microsoft.BizTalk.ApplicationDeployment.Engine.dll of 3.5.1602.2 version.
Do you think all these are old versions?If so where how can i get latest versions from?
Thanks,
Arun
March 31, 2008 at 11:54 PM in reply to: Can you publishing an orchestration as a WCF service and move the service to a different server? #19209Actually, you don’t have to re-publish your orchestration on the other server, you can simply copy the the virtual directory generated on the biztalk server to the web server and re-configure the receive location to point to http://[web server name]/xyz.svc instead of http://localhost/xyz.svc. Also you’ll have modify the IIS pool identity to be some account that has access to the BizTalk MsgBox database.
[quote user="Cullen"]how does it know how to connect back to the BizTalk server?[/quote]
it shouldn’t know about the BizTalk Server location, rather, the BizTalk server will listen to the web server IIS to get its requests from there (according to the recieve location configuration)
Currently, Do you have any erros/warnings in the application event log while invoking the service?
hope it helps,
Mike
March 31, 2008 at 3:54 PM in reply to: Can you publishing an orchestration as a WCF service and move the service to a different server? #19208Thank you for the suggestion. I have tried that and I can successfully publish the WCF service out to another machine, but I am unable to configure it correctly so that it communicates back to the BizTalk server. It acts like it’s trying to access a receive location on the local server, which doesn’t exist. The WCF service doesn’t appear to know how to make a call to the recieve location on the remote BizTalk server. I cannot find any place in the config file where you specify a different server.
In other words, after the WCF service is published to a different server using the WCF publishing wizard, how does it know how to connect back to the BizTalk server? Where do you configure that?
Cullen
Oops…that will do it! Guess we should have started with the requirements first. Well I’m glad that you found it, good deal and have fun! You’re welcome as well!
-Rich
Rich,
I found the problem and it is that I am working with “WSS adapter Web Service” installed on biztalk machine but which should have been done on machine where WSS is installed. Now I installed that adapter on WSS machine and it is working fine now.
Thanks for all your help.
Hi Gregg
If you’re new to the world of BizTalk flat-files it can be quite daunting, so don’t worry if it is all a bit hard-going to start with!
You should probably start out with http://www.topxml.com/rbnews/BizTalk-2006/re-61406_Debatching-a-flat-file-in-BizTalk-2006.aspx to get a better understanding of flat-file splitting.
With regards to your particular problem, I’m afraid it isn’t quite that easy to acheive…..
AFAIK, the flat-file disassembler (the bit that translates the file into Xml and splits) won’t be able to split records between files based on a particular value – splitting works on nodes, splitting content and moving on to the new bit of data, rather than maintaining temporary messages that are built as the message is being parsed as you indicate in your post).
To achieve what you’re after, you will need to write a receive decode component that will sort your PlanType flat-file records so you have for example Loan records grouped together and then Retirement records; if you could put an identifier at the beginning of the record as well that will help the disassembler (as it won’t have to look deeply into your content to determine the record). The XSD that you define can then be configured to split on these grouped record ‘types’ generating two distinct Xml messages.
I appreciate that the details above may be a bit in-depth – if you have any questions, ask away!
Nick.
Hi Gregg,
I have a similar situation with invoices, where I needed to break the file up by invoice number. The best way to do this from what I read and did was to write a custom flat file disassembler that “debatches” the flat file. Each group of records (for me all the Invoice Detail records with same invoice number) are batched together into a single message.
The custom flat file disassembler, written in C#, reads in each line (delimited by CRLF) from the file. I then examine the Invoice # in the record and compare it with the previous Invoice number (if there was one). If it’s the same invoice number I read the next line from the file, otherwise I take what has been read before the current line and send it to BizTalk as a message.
You’ll have to do some research on writing custom flat file disassemblers and pipeline components. “Pro BizTalk 2006” from APress is a great book and there are lots of articles on this Forum and MSDN about writing custom components. Here is a great MSDN article on the subject:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sdk/htm/ebiz_prog_pipe_eiji.asp
That should give you enough info to start your research. Don’t get discouraged, once you understand the process the code makes sense!
Another area you should check is the configuration of the source and destination Document Libraries…make sure that the “Document Template” drop-downs are also set to ‘none’.
-Rich
-
-
AuthorPosts