Message Assignment – Biztalk Expression Editor

Home Page Forums BizTalk 2004 – BizTalk 2010 Message Assignment – Biztalk Expression Editor

Viewing 6 reply threads
  • Author
    Posts
    • #21986

      Hi

      I want to assign a part of a message (string value) to another message. I made a c# class that I use to extract the value part I want. When i reference my class in the Biztalk Expression Editor it complains that I am missing an assembly reference.

      Request.CORRELATIONID = StringFunctions.StripGUID(MsgReq.gen_refnr);

      Is this possible in Biztalk 2006 R2?

      If not what am I doing wrong?

       

      – Dag

    • #21994

      If you by saying: “I reference my class in the Biztalk Expression Editor” mean “Write the correct namespace path”, you also have to make a reference in your project to your ScriptingFunctions project/assembly.

      Then your assembly also need to exist in the GAC later on when running.

      Kind Regards
      Martin Bring

    • #22002

      You could also use the xpath function in the message assignment rather than using your own C# class

      http://msdn.microsoft.com/en-us/library/ms963270.aspx

      • #22022

        Hi

        Problem solved but I wonder:

        My class look like this:

        public class StringFunctions {

        public static string StripGUID(string inputStr) {
                            return inputStr.Substring(inputStr.IndexOf(“+”) + 1);
        }

        }

        Is this possible to do with XPATH?

         

        -Dag

         

    • #22021

      Thanks,

      The problem is solved. I have overlooked that I not have made the class public.

       

      – Dag

    • #47519
      Carver Leo

        Read this site and there is something about Message Assignment – Biztalk Expression Editor being offered here. I hope essay writing services can be of a great help for all thsoe people who were waiting for that as it was really good for us to learn it there.

      • #49230
        biztalkgurus

          Empire of Lies by Raymond Khoury • 9781250210968

        • #51520
          B4u Foundation

            Pakistan is the world’s sixth largest population country in the world. The people are left alone to survive below the poverty line. Join B4U Foundation to help.

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