BizTalk Server General - Receive Handlers and WMI

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server General > April 2005 > Receive Handlers and WMI





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 Receive Handlers and WMI
somefakeaddress@hotmail.com

2005-04-21, 7:51 am

In the BizTalk Management Console I can easlily add a new Receive
Handler to, for example, the FILE Adapter by simply selecting the FILE
Adapter and choosing New -> Receive Handler...

How do I script the same using WMI?

I looked at the MSBTS_ReceiveHandler.HostNameToSwitchTo property, but
that just switches from one host to another, and I want to add a new
host, so that won't do it...

Thanks
Niklas Uhlin

Jon Flanders[MVP]

2005-04-21, 5:49 pm

Wow - as far as I can see you are right - there is no way to
programmatically create a Receive Handler.

--
Jon Flanders
http://www.masteringbiztalk.com/blogs/jon/

<somefakeaddress@hotmail.com> wrote in message
news:1114081828.168376.325380@f14g2000cwb.googlegroups.com...
> In the BizTalk Management Console I can easlily add a new Receive
> Handler to, for example, the FILE Adapter by simply selecting the FILE
> Adapter and choosing New -> Receive Handler...
>
> How do I script the same using WMI?
>
> I looked at the MSBTS_ReceiveHandler.HostNameToSwitchTo property, but
> that just switches from one host to another, and I want to add a new
> host, so that won't do it...
>
> Thanks
> Niklas Uhlin
>



Sunghwa Jin [MSFT]

2005-04-23, 2:49 am

There is an example for Creating an FTP Receive Handler Using WMI in MSDN:
http://msdn.microsoft.com/library/d...-us/sdk/htm/ebi
z_sdk_wmi_reference_core_swdr.asp?frame=true

You should be able to modify the sample to work with FILE adapter, but let
me know if you run into any problem.

Thanks,
Sunghwa Jin


--------------------
| From: "Jon Flanders[MVP]" <jon.flanders@gmail.com>
| References: <1114081828.168376.325380@f14g2000cwb.googlegroups.com>
| Subject: Re: Receive Handlers and WMI
| Date: Thu, 21 Apr 2005 06:11:18 -0700
| Lines: 24
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| X-RFC2646: Format=Flowed; Original
| Message-ID: <e#oCgOnRFHA.244@TK2MSFTNGP12.phx.gbl>
| Newsgroups: microsoft.public.biztalk.general
| NNTP-Posting-Host: 12.154.248.2
| Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP12.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.biztalk.general:13179
| X-Tomcat-NG: microsoft.public.biztalk.general
|
| Wow - as far as I can see you are right - there is no way to
| programmatically create a Receive Handler.
|
| --
| Jon Flanders
| http://www.masteringbiztalk.com/blogs/jon/
|
| <somefakeaddress@hotmail.com> wrote in message
| news:1114081828.168376.325380@f14g2000cwb.googlegroups.com...
| > In the BizTalk Management Console I can easlily add a new Receive
| > Handler to, for example, the FILE Adapter by simply selecting the FILE
| > Adapter and choosing New -> Receive Handler...
| >
| > How do I script the same using WMI?
| >
| > I looked at the MSBTS_ReceiveHandler.HostNameToSwitchTo property, but
| > that just switches from one host to another, and I want to add a new
| > host, so that won't do it...
| >
| > Thanks
| > Niklas Uhlin
| >
|
|
|

Jon Flanders[MVP]

2005-04-23, 5:49 pm

Thanks!

--
Jon Flanders
http://www.masteringbiztalk.com/blogs/jon/

"Sunghwa Jin [MSFT]" <shjin@online.microsoft.com> wrote in message
news:gO1s9D9RFHA.4976@TK2MSFTNGXA01.phx.gbl...
> There is an example for Creating an FTP Receive Handler Using WMI in MSDN:
> http://msdn.microsoft.com/library/d...-us/sdk/htm/ebi
> z_sdk_wmi_reference_core_swdr.asp?frame=true
>
> You should be able to modify the sample to work with FILE adapter, but let
> me know if you run into any problem.
>
> Thanks,
> Sunghwa Jin
>
>
> --------------------
> | From: "Jon Flanders[MVP]" <jon.flanders@gmail.com>
> | References: <1114081828.168376.325380@f14g2000cwb.googlegroups.com>
> | Subject: Re: Receive Handlers and WMI
> | Date: Thu, 21 Apr 2005 06:11:18 -0700
> | Lines: 24
> | X-Priority: 3
> | X-MSMail-Priority: Normal
> | X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
> | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
> | X-RFC2646: Format=Flowed; Original
> | Message-ID: <e#oCgOnRFHA.244@TK2MSFTNGP12.phx.gbl>
> | Newsgroups: microsoft.public.biztalk.general
> | NNTP-Posting-Host: 12.154.248.2
> | Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP12.phx.gbl
> | Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.biztalk.general:13179
> | X-Tomcat-NG: microsoft.public.biztalk.general
> |
> | Wow - as far as I can see you are right - there is no way to
> | programmatically create a Receive Handler.
> |
> | --
> | Jon Flanders
> | http://www.masteringbiztalk.com/blogs/jon/
> |
> | <somefakeaddress@hotmail.com> wrote in message
> | news:1114081828.168376.325380@f14g2000cwb.googlegroups.com...
> | > In the BizTalk Management Console I can easlily add a new Receive
> | > Handler to, for example, the FILE Adapter by simply selecting the FILE
> | > Adapter and choosing New -> Receive Handler...
> | >
> | > How do I script the same using WMI?
> | >
> | > I looked at the MSBTS_ReceiveHandler.HostNameToSwitchTo property, but
> | > that just switches from one host to another, and I want to add a new
> | > host, so that won't do it...
> | >
> | > Thanks
> | > Niklas Uhlin
> | >
> |
> |
> |
>



somefakeaddress@hotmail.com

2005-04-25, 2:51 am

Works great. Many thanks!

Niklas Uhlin

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com