BizTalk Server General - Programmatically set Orchestration bindings (Inbound & Outbound ports and Host) to

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server General > May 2004 > Programmatically set Orchestration bindings (Inbound & Outbound ports and Host) to





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 Programmatically set Orchestration bindings (Inbound & Outbound ports and Host) to
Niklas E

2004-05-30, 10:46 am

Hello,

I can almost fully automatically export settings, delete send ports and
groups, delete receive ports, uninstall BT assemblies, reGAC dependent
assemblies, re-install BT assemblies, re-apply settings from exported
settings, start send port groups & ports and orchestrations, but I am
missing one thing to do:
Programmatically set orchestration bindings (inbound ports, outbound ports
and host) to <None>. If they are not set to none, I cannot delete the send
ports and receive ports by scripts. I have to do that manually each time

Does anyone know how to do this?

Best regards
Niklas E




Narasimhan Padmanabhan

2004-05-30, 10:46 am

Have you tried using the Biztalk Explorer object model? You can write a C#
app that could do this .

Hope this helps!
This posting is provided "AS IS" with no warranties, and confers no rights.

EBusiness Server Team
--------------------
| >>From: "Niklas E" <raven_tln0sp4m@hotmail.com>
| >>Subject: Programmatically set Orchestration bindings (Inbound &
Outbound ports and Host) to <None>
| >>Date: Thu, 27 May 2004 11:13:10 +0200
| >>Lines: 19
| >>X-Priority: 3
| >>X-MSMail-Priority: Normal
| >>X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
| >>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
| >>Message-ID: <uW7EWr8QEHA.2216@TK2MSFTNGP12.phx.gbl>
| >>Newsgroups: microsoft.public.biztalk.general
| >>NNTP-Posting-Host: cgey1.capgemini.se 193.234.247.50
| >>Path:
cpmsftngxa10.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP12
.phx.gbl
| >>Xref: cpmsftngxa10.phx.gbl microsoft.public.biztalk.general:15695
| >>X-Tomcat-NG: microsoft.public.biztalk.general
| >>
| >>Hello,
| >>
| >>I can almost fully automatically export settings, delete send ports and
| >>groups, delete receive ports, uninstall BT assemblies, reGAC dependent
| >>assemblies, re-install BT assemblies, re-apply settings from exported
| >>settings, start send port groups & ports and orchestrations, but I am
| >>missing one thing to do:
| >>Programmatically set orchestration bindings (inbound ports, outbound
ports
| >>and host) to <None>. If they are not set to none, I cannot delete the
send
| >>ports and receive ports by scripts. I have to do that manually each
time
| >>
| >>Does anyone know how to do this?
| >>
| >>Best regards
| >>Niklas E
| >>
| >>
| >>
| >>
| >>

Niklas E

2004-05-30, 10:46 am

Thanks alot. I found it in the help file now:

Best regards
Niklas E

The UnbindOrchestration method shows how to create the root
BTSCatalogExplorer object, set the Configuration database connection string,
reset the orchestration bindings, and commit the changes.

public void UnbindOrchestration()
{
// Create the root object and set the connection string
BtsCatalogExplorer catalog = new BtsCatalogExplorer();
catalog.ConnectionString =
string.Format("SERVER={0};DATABASE={1};Integrated Security=SSPI",
SystemInformation.ComputerName, "BizTalkMgmtDB");

try
{
BtsOrchestrationCollection orchestrations =
catalog.Assemblies[0].Orchestrations;

// Reset the bindings

orchestrations["BizTalkProject.Orchestration1"].Ports["OutboundPort_1"].Send
Port = null;

orchestrations["BizTalkProject.Orchestration1"].Ports["OutboundPort_2"].Send
PortGroup = null;

orchestrations["BizTalkProject.Orchestration1"].Ports["InboundPort_1"].Recei
vePort = null;

// Commit the changes
catalog.SaveChanges();
}
catch(Exception e)
{
catalog.DiscardChanges();
throw e;
}
}
"Narasimhan Padmanabhan (MSFT)" <narpad@online.microsoft.com> wrote in
message news:bEWzXFEREHA.796@cpmsftngxa10.phx.gbl...
> Have you tried using the Biztalk Explorer object model? You can write a C#
> app that could do this .
>
> Hope this helps!
> This posting is provided "AS IS" with no warranties, and confers no

rights.
>
> EBusiness Server Team
> --------------------
> | >>From: "Niklas E" <raven_tln0sp4m@hotmail.com>
> | >>Subject: Programmatically set Orchestration bindings (Inbound &
> Outbound ports and Host) to <None>
> | >>Date: Thu, 27 May 2004 11:13:10 +0200
> | >>Lines: 19
> | >>X-Priority: 3
> | >>X-MSMail-Priority: Normal
> | >>X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
> | >>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
> | >>Message-ID: <uW7EWr8QEHA.2216@TK2MSFTNGP12.phx.gbl>
> | >>Newsgroups: microsoft.public.biztalk.general
> | >>NNTP-Posting-Host: cgey1.capgemini.se 193.234.247.50
> | >>Path:
>

cpmsftngxa10.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP12
> phx.gbl
> | >>Xref: cpmsftngxa10.phx.gbl microsoft.public.biztalk.general:15695
> | >>X-Tomcat-NG: microsoft.public.biztalk.general
> | >>
> | >>Hello,
> | >>
> | >>I can almost fully automatically export settings, delete send ports

and
> | >>groups, delete receive ports, uninstall BT assemblies, reGAC dependent
> | >>assemblies, re-install BT assemblies, re-apply settings from exported
> | >>settings, start send port groups & ports and orchestrations, but I am
> | >>missing one thing to do:
> | >>Programmatically set orchestration bindings (inbound ports, outbound
> ports
> | >>and host) to <None>. If they are not set to none, I cannot delete the
> send
> | >>ports and receive ports by scripts. I have to do that manually each
> time
> | >>
> | >>Does anyone know how to do this?
> | >>
> | >>Best regards
> | >>Niklas E
> | >>
> | >>
> | >>
> | >>
> | >>
>



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com