|
Home > Archive > BizTalk Server Applications Integration > June 2004 > How to build "Script functoid" with external assembly call?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
How to build "Script functoid" with external assembly call?
|
|
|
| Hello,
I am new in BT2004 and doing my first map,so I am really
sorry for silly question.
Does anybody know the "Step by Step" way to create a
functoid with external assembly call with step-by-step
instractions how to create an external assembly and how to
register it in GAC?
I will appretiate for any info.
Alex.
| |
| Gilles [MSFT] 2004-06-29, 5:51 pm |
| Hello,
>I am new in BT2004 and doing my first map,so I am really sorry for silly question.
>Does anybody know the "Step by Step" way to create a functoid with external assembly call with
>step-by-step instractions how to create an external assembly and how to register it in GAC?
BizTalk SDK contains a sample functoid and this page is a step by step giude on how to run it:
http://msdn.microsoft.com/library/e....asp?frame=true
Instead of doing the steps under "How to run the sample", I suggest you do the following:
1) From a Visual Studio.NET BizTalk project, right-click the Toolbox, and select Add/Remove Toolbox Items....
2) In the Customize Toolbox dialog box, select the Functoids tab.
3)Click Browse, and navigate to <bts directory>\Developer Tools\Mapper Extensions and select your assembly.
4) Click OK to close all dialogs.
5) Close the current solution (if any) and create a new BizTalk poroject
6) Add a new item of type map
7) Switch to the toolbox when the map is visible in visual studio
OBSERVE: your functoid has been installed under "string functoid".
To GAC an assembly: in a Visual Studio command prompt
(Start->Program Files->Microsoft Visual Studio .NET 2003->Visual Studio .NET Tools->Visual Studio .NET 2003 Command prompt)
enter the command: gacutil /if <fullpath to the assembly to gac>
Thanks.
-Gilles.
| |
| Gilles [MSFT] 2004-06-29, 5:51 pm |
| Hello,
Ahaha, pressed "sent" too quickly.
[...]
>To GAC an assembly: in a Visual Studio command prompt
>(Start->Program Files->Microsoft Visual Studio .NET 2003->Visual Studio .NET Tools->Visual Studio .NET 2003 Command prompt)
>enter the command: gacutil /if <fullpath to the assembly to gac>
You can then use the following page to learn everything about the scripting functoid:
http://msdn.microsoft.com/library/e....asp?frame=true
Thanks.
-Gilles.
| |
|
| I did not want to build a "Custom Functoid", I just try to
use my "External Assembly" as a Script type for my
Standatd "Script functoid".
So Far, I found an information how to do so, but still
have not sucseeded.
Here what I did:
1. To my BizTalk2004 Solution - /Add New Project/VBProject-
Class Library
2. Develope .VB file(I just posted a text from .VB I
already completed and tested at other solution, so I am
sure it will work with no errors)
3. Rebuild solution
4. Created Strong name with "sn" utility: sn -k mykey.snk
5. Changed AssemblyInfo.vb to reflect version and key info:
<Assembly: AssemblyVersion("1.0.0.1")>
<Assembly: AssemblyKeyFile("C:\Development\BizTalk2004\SAP
Project\SAP\GetData\mykey.snk")>
6. Rebuild agein
7. Install my Class library to GAC
And now I am stock at this point.
For some reason I could not find my assembly at DropDown
box "Script assembly". I can see it just if I broes
to "C:\WINNTS\assembly" directory,but not in the script
functoid form.
Any help?
Alex.
| |
|
|
I did it!
I forgot to add my project to the reference!
Now I am ok.
Alex.
|
|
|
|
|