Home Page › Forums › BizTalk 2004 – BizTalk 2010 › Message Assignment – Biztalk Expression Editor
- This topic has 8 replies, 1 voice, and was last updated 5 years, 2 months ago by
B4u Foundation.
-
AuthorPosts
-
-
March 26, 2009 at 1:05 AM #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
-
March 26, 2009 at 9:02 AM #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-
March 26, 2009 at 11:19 PM #22023
Thank you
-
-
March 26, 2009 at 12:11 PM #22002
You could also use the xpath function in the message assignment rather than using your own C# class
-
March 26, 2009 at 11:18 PM #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
-
-
March 26, 2009 at 11:15 PM #22021
Thanks,
The problem is solved. I have overlooked that I not have made the class public.
– Dag
-
October 15, 2020 at 10:04 PM #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.
-
November 5, 2020 at 6:37 AM #49230
biztalkgurus
Empire of Lies by Raymond Khoury • 9781250210968
-
November 27, 2020 at 5:43 AM #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.
-
-
AuthorPosts
- The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.