Martijn's blog - E-Commerce, EAI, BizTalk and .NET

2004/09/30

Testing the unzipcomponent sample

Recently, some people have requested a usage example of the UnzipComponent pipeline component example posted here. I've create a sample solution, containing the UnZipComponent itself and a BizTalk project consisting of a simple receive pipeline witht the UnZipComponent in it.

The UnZipComponent uses a build action to copy itself to "C:\Program Files\Microsoft BizTalk Server 2004\Pipeline Components", so if you have installed BizTalk Server 2004 somewhere else, please alter the location by right-clicking the project, choosing "Build Events", navigating to "Post-build Event Commmand Line" and pressing the three dots button on the right.

A binding file has been included which you can import with the BizTalk Deployment Wizard or from the command-line using "btsdeploy.exe" from the BizTalk Server 2004 installation folder.

The binding file contains folder references, which probably don't match your testbed setup. Alter them after importing them by using BizTalk Explorer (whichever version :p)

The sample project does nothing other than decompressing the inbound zipfile and submitting 1 message for each file within the zipfile. I've included a file called "test.zip", which contains 2 simple XML files consisting of very interesting data, which will be put into the output folder configured. Nothing else.

UPDATED: NEW DOWNLOAD LOCATION

The sample project can be found here. (Don't forget to alter the AssemblyInfo.cs and project properties of the BizTalk project to refer to your own strong name key file.)

Please remember that the btsntsvc.exe process (the BizTalk service) locks the pipeline component when in use. So if you alter anything, stop the service, compile and start the service, otherwise the post-built event will fail)

One more thing... Pipeline components should normally not be within the same solution as the projects that use these components, as the components get loaded by the pipeline designer and locked, so compilation would become rather hard...

Hope you enjoy this!

10 Comments:

  • i'm sure this works but i'm buggered if i can get it to work. i continually get this error in hat:

    Could not find a matching subscription for the message. The message engine failed to process a message submitted by adapter:FILE Source URL:C:\test\in\*.zip. Details: Could not find a matching subscription for the message. This error occurs if the subscribed orchestration schedule or send port has not been started, or if some of the message properties necessary for subscription evaluation have not been promoted. Please refer to Health and Activity Tracking tool for more detailed information on this failure.

    :(

    By Blogger Sean Rock, at 9:26 PM  

  • Please send me your solution and support files to http://martijnh.blogspot.com/2004/07/e-mail-address.html and I'll have a look at it :-)

    By Blogger Martijn Hoogendoorn, at 10:40 AM  

  • I was using the sample project from your site.

    By Blogger Sean Rock, at 4:31 PM  

  • ah! sorted it. i wasn't setting up the subscription on the send port (as the error kept telling me!). thanks - great component!

    By Blogger Sean Rock, at 5:13 PM  

  • Hi Martijn

    I have used the sample - it works great. Thanks

    Still, I do have a problem:
    When Im using CBR it's working.
    but, When Im using orchestration
    Im getting the following error:
    Could not find a matching subscription for the message. The message engine failed to process a message submitted by adapter....
    I think that the code didn't set the message-type on the
    message-context.
    If so...

    How and when should I set the MessageType [on message context]?

    If you think this could be other problem - I'l be more then happy to here your suggestions?

    Thanks.

    By Anonymous simchap@gmail.com, at 6:17 PM  

  • Hi,

    New insight taught me the component actually shouldn't be a disassembler. Refactor the code to be placed in a different stage (the Decode stage) and let the XmlDisassembler (or any other disassembler component) do the job for you, the MessageType will be set by the disassembler component. If you need more help, let me know, I'll be able to refactor the component for you, but I'm quite busy at the moment ;-o

    By Blogger Martijn Hoogendoorn, at 9:22 PM  

  • I would gold für wow cultivate courage.buy wow gold “Nothing is so mild wow gold cheap and gentle as courage, nothing so cruel and pitiless as cowardice,” syas a wise author. We too often borrow trouble, and anticipate that may never appear.”wow gold kaufen The fear of ill exceeds the ill we fear.” Dangers will arise in any career, but presence of mind will often conquer the worst of them. Be prepared for any fate, and there is no harm to be freared. If I were a boy again, I would look on the cheerful side. life is very much like a mirror:sell wow gold if you smile upon it,maple mesos I smiles back upon you; but if you frown and look doubtful on it,cheap maplestory mesos you will get a similar look in return. Inner sunshine warms not only the heart of the owner,world of warcraft power leveling but of all that come in contact with it. “ who shuts love out ,in turn shall be shut out from love.” If I were a boy again, I would school myself to say no more often.billig wow gold I might cheap mesos write pages maple meso on the importance of learning very early in life to gain that point where a young boy can stand erect, and decline doing an unworthy act because it is unworthy.wow powerleveling If I were a boy again, I would demand of myself more courtesy towards my companions and friends,wow leveling and indeed towards strangers as well.Maple Story Account The smallest courtesies along the rough roads of life are wow powerleveln like the little birds that sing to us all winter long, and make that season of ice and snow more endurable. Finally,maple story powerleveling instead of trying hard to be happy,archlord online gold as if that were the sole purpose of life, I would , if I were a boy again, I would still try harder to make others happy.

    By Blogger ghkj, at 3:03 AM  

  • Do you know the maple mesos? It is very interesting and if you have enough mesos,you can be strong. So i often go to play the game to get more and more cheap mesos, sometimes i can get the maplestory mesos from my friends who i know in the game. However i like the game very much because of the maple story mesos, i want to play the game more often.

    By Anonymous Anonymous, at 1:25 AM  

  • By Blogger Adi, at 6:46 AM  

  • Oes Tsetnoc one of the ways in which we can learn seo besides Mengembalikan Jati Diri Bangsa. By participating in the Oes Tsetnoc or Mengembalikan Jati Diri Bangsa we can improve our seo skills. To find more information about Oest Tsetnoc please visit my Oes Tsetnoc pages. And to find more information about Mengembalikan Jati Diri Bangsa please visit my Mengembalikan Jati Diri Bangsa pages. Thank you So much.
    Oes Tsetnoc | Semangat Mengembalikan Jati Diri Bangsa

    By Blogger Adi, at 10:54 AM  

Post a Comment

Links to this post:

Create a Link

<< Home