| Prasad 2004-10-27, 7:46 am |
| Hi
I developed AIC component to use in BizTalk Server 2004. I am passing
receive function xml document, i need to read that xml document which is
passed by input, hence i need to modify xml document. I gone through
Pipelinecomponent example and bulid that like same solution, it is working
fine. But when i am unable to read Xml document data what i was passed in
input. The implemented method to read Xml document shows below method.
Please try to help me how to read input Xml Document data in AIC component.
Public Function Execute(ByVal pContext As
Microsoft.Biztalk.Component.Interop.IPipelineContext, ByVal pInMsg As
Microsoft.Biztalk.Message.Interop.IBaseMessage) As
Microsoft.Biztalk.Message.Interop.IBaseMessage Implements
Microsoft.Biztalk.Component.Interop.IComponent.Execute
Dim bodyPart As IBaseMessagePart = pInMsg.BodyPart
'Dim fi As System.IO.FileInfo = New FileInfo("C:\Exp\One.txt")
'fi.Create()
' Create an instance of StreamWriter to write text to a file.
Dim sw As StreamWriter = New StreamWriter("C:\Exp\One.txt", True)
' Add some text to the file.
Dim stm As Stream = bodyPart.GetOriginalDataStream()
sw.Write("Start IBaseMessagePart ")
sw.Write(stm)
sw.Write("IBaseMessagePart ")
sw.Write(pInMsg.BodyPart)
sw.Write(" End of the code ")
sw.Close()
Return pInMsg
End Function
Thanks & Regards
CH.A.Prasad
|