Home Page › Forums › BizTalk 2004 – BizTalk 2010 › Passing strings directly to a pipeline
- This topic has 3 replies, 1 voice, and was last updated 9 years, 2 months ago by
community-content.
-
AuthorPosts
-
-
December 18, 2007 at 9:45 AM #18642
%u00bfHow can i pass a string containing a flat file content to a receive pipeline?
I need to obtain the equivalent biztalk message to that string by calling a receive pipeline into an orchestration.
-
December 19, 2007 at 4:41 AM #18652
You should be able to use a message of type RawString for that. Look in the BizTalk documentation, and you’ll find the source code for it alongside the docs for sending out HTML-formnatted messages using the SMTP adapter (the technique for holding a raw string as a message is the same, independent of the adapter or what you do with it).
-
December 19, 2007 at 8:22 AM #18656
Take a look at this thread: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2390531&SiteID=1
I have executed a Send pipeline inside an orchestration and executing a receive pipeline should be very similar. I also used the RawString Formatter as described by Tomas.
-
December 26, 2007 at 9:25 AM #18681
It seems that executing the receive pipeline with a RawString message fails, it gives me the following error:
“System.IO.Stream” —> System.InvalidCastException: System.IO.Stream
at Microsoft.XLANGs.Core.CustomFormattedPart.ProtectedRetrieveAs(Type t)
at Microsoft.XLANGs.Core.Part.RetrieveAs(Type t)
at Microsoft.XLANGs.Pipeline.PipelineXPart.ToBaseMessagePart()
at Microsoft.XLANGs.Pipeline.PipelineXMessage.ToBaseMessage()
at Microsoft.XLANGs.Pipeline.XLANGPipelineManager.ExecutePipeline(ReceivePipeline p, XLANGMessage inMsg)
— End of inner exception stack trace —
at Microsoft.XLANGs.Pipeline.XLANGPipelineManager.ExecutePipeline(ReceivePipeline p, XLANGMessage inMsg)
at Microsoft.XLANGs.Pipeline.XLANGPipelineManager.ExecuteReceivePipeline(Type receivePipelineType, XLANGMessage inMsg)
at HP.MotorEAI_HL7.Orquestaciones.EnviarMensajeHL7.segment4(StopConditions stopOn)
at Microsoft.XLANGs.Core.SegmentScheduler.RunASegment(Segment s, StopConditions stopCond, Exception& exp)
Nevertheless when i use a System.String or a XmlDocument it works fine.
-
-
-
AuthorPosts
- The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.