How to call a .Net function that returns a value
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > BizTalk Server > BizTalk Server General > How to call a .Net function that returns a value




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    How to call a .Net function that returns a value  
bmc410


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-27-05 07:47 AM

Could somebody please help me? I need to call a vb.net function that does
some specific tasks for my organization. The class returns a boolean
indicating the result condition of the function. Is there a way (1) to call
this dll and reutrn a result (in an expression shape?) plus have Biztalk wai
t
for the result and procede into a decision with the result variable?

Thanks in advance for your help!





[ Post a follow-up to this message ]



    RE: How to call a .Net function that returns a value  
carlos


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-27-05 12:56 PM

u can create a vb.net project and place all code that you need, is important
that you define an "strong name" and sign your assembly with it and addtiona
l
you must declare your class as "Serialized"... after compile and create the
assembly you must register it in the gac (use gacutil.exe utility)... if it
not in the gac BTS cannot see it...

in the orchestration, you must add this assembly as reference and create a
"Variable" in you orchestration as this type.  At the last end you must
create an instance of the variable in a Expression shape (C# code)

MyVariable = new MyNamespace.MyClass();

and after this you can use the boolean function (example IsUserValid) inside
a Decision shape...

MyVariable.IsUserValid() == true

regards !

"bmc410" wrote:

> Could somebody please help me? I need to call a vb.net function that does
> some specific tasks for my organization. The class returns a boolean
> indicating the result condition of the function. Is there a way (1) to cal
l
> this dll and reutrn a result (in an expression shape?) plus have Biztalk w
ait
> for the result and procede into a decision with the result variable?
>
> Thanks in advance for your help!





[ Post a follow-up to this message ]



    RE: How to call a .Net function that returns a value  
bmc410


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-27-05 12:56 PM

Thanks Carlos for your help. Will the orchestration "pause" until the
function has completed or will it continue on. In other words, will it wait
on the expression shape until it receives the return value?

Thanks
Bill

"carlos" wrote:
[vbcol=seagreen]
> u can create a vb.net project and place all code that you need, is importa
nt
> that you define an "strong name" and sign your assembly with it and addtio
nal
> you must declare your class as "Serialized"... after compile and create th
e
> assembly you must register it in the gac (use gacutil.exe utility)... if i
t
> not in the gac BTS cannot see it...
>
> in the orchestration, you must add this assembly as reference and create a
> "Variable" in you orchestration as this type.  At the last end you must
> create an instance of the variable in a Expression shape (C# code)
>
> MyVariable = new MyNamespace.MyClass();
>
> and after this you can use the boolean function (example IsUserValid) insi
de
> a Decision shape...
>
> MyVariable.IsUserValid() == true
>
> regards !
>
> "bmc410" wrote:
> 





[ Post a follow-up to this message ]



    Re: How to call a .Net function that returns a value  
carlos


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-27-05 10:50 PM

hi...

the orchestration wait for your function ended the execution and return a
boolean.... but not "pause" thorchestration, I mean that orchestration
doesn't "suspend" its execution.....

an orchestration is represented like a class with methods inside an
assembly, calling a function of your personal class in a "decision shape" is
like working in Win32 application with an if () {} statement...

"bmc410" <bmc410@discussions.microsoft.com> wrote in message
news:6D640388-2665-4AF5-9618-67C893D86D50@microsoft.com...[vbcol=seagreen]
> Thanks Carlos for your help. Will the orchestration "pause" until the
> function has completed or will it continue on. In other words, will it
> wait
> on the expression shape until it receives the return value?
>
> Thanks
> Bill
>
> "carlos" wrote:
> 







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 11:23 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register