How to return xml message as a string from an orchestration published as web service?

Home Page Forums BizTalk 2004 – BizTalk 2010 How to return xml message as a string from an orchestration published as web service?

Viewing 2 reply threads
  • Author
    Posts
    • #19505

      I have published my biztalk orchestration as a web service. It takes an xml from the user and based on the values in that and some other data in db it forms a new xml using biztalk mapper. I have to return this newly formed xml to the client. Is there any way that I can convert the newly created xml message to a string and pass the string as output?

      Thanks

      Sidhu

    • #19511

      Hi Sidhu,

       I think it would suitable to place this piece of code (converting XML to string) in a send pipeline. by doing this you will leave the orchestraion untouched

      Hope it rings any bells,

      Mike

    • #19513

      Hi Sidhu,

      Look at this link. http://www.objectsharp.com/cs/blogs/matt/archive/2007/04/17/biztalk-message-helper-methods.aspx

      It has a helper method GetStringFromBTSMessageBody, you send the message and get a string.

      Hope this helps.
      Gokul

      • #19522

        Thanks all,

         It’s working.

        • #19527

          Hi Sidhu,
          What did you to get it working. Let others know it may help someone in future.

          Thanks,
          Grd

          • #19544

            I just used the Message Assignment example given in the above link i.e. using a DOM object

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