Passing strings directly to a pipeline

Home Page Forums BizTalk 2004 – BizTalk 2010 Passing strings directly to a pipeline

Viewing 2 reply threads
  • Author
    Posts
    • #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.

    • #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).

    • #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.

       

      • #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.

Viewing 2 reply threads
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.