Message from discussion
Pipeline Custom component replace string in a edifact
X-Tomcat-ID: 488723671
References: <#eg0x2ufEHA.384@TK2MSFTNGP10.phx.gbl>
MIME-Version: 1.0
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
From: Gil...@online.microsoft.com (Gilles [MSFT])
Organization: Microsoft, Corp.
Date: Tue, 10 Aug 2004 18:44:31 GMT
Subject: RE: Pipeline Custom component replace string in a edifact
X-Tomcat-NG: microsoft.public.biztalk.general
Message-ID: <dM3hXowfEHA.3636@cpmsftngxa06.phx.gbl>
Newsgroups: microsoft.public.biztalk.general
Lines: 35
NNTP-Posting-Host: TOMCATIMPORT1 10.201.218.122
Path: g2news1.google.com!news1.google.com!news.glorb.com!cyclone.bc.net!msrtrans!TK2MSFTNGP08.phx.gbl!cpmsftngxa06.phx.gbl
Hello,
>Hi i try to make a custom receive pipeline, to replace some strings in the
>edifact file, in the first try, i find that is necessary to implement the
>xml dissasembler and validator, and party ressolution, without that the
>pipeline doesn't work, but when i try to modify the execute method in the
>custom compoenent the system cant change the data in the document and doesnt
>validate.
>Anyone has this issue? or know what im doing wrong? actually the custom
>component i call in the validate just after the xml validate.
I am not sure I understand exactly what you are trying to do. It seems that you are trying to replace some strings in a message.
Usually, the best place to do this (provided that you do not have any constraint) is in a decoder.
A decoder gets to see the mesasge in the pipeline first. You can change things in here and then leave your existing pipeline
unchanged. This way, party resolution and other things will work.
This being said, a common error in writing custom pipelines is to not "rewind" the stream after reading it.
You should be stream.Seek(0, SeekOrigin.Begin); so the next component can read from the beginning.
However, without looking at your code, this is going to be hard,
You could post the relevant part of your code here and we would be better able to help you.
Thanks.
-Gilles.