BizTalk Server General - Unable to read input Xml Document data using AIC com in BizTalk 20

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server General > October 2004 > Unable to read input Xml Document data using AIC com in BizTalk 20





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Unable to read input Xml Document data using AIC com in BizTalk 20
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
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com