|
Home > Archive > BizTalk Server Orchestration > May 2004 > Programmatically set orchestration bindings (inbound ports, outbound ports and host) t
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 ports, outbound ports and host) t
|
|
| Niklas E 2004-05-30, 10:47 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:47 am |
| Use Biztalk Explorer Object Model to do this.
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 ports,
outbound ports and host) to <None>
| >>Date: Thu, 27 May 2004 11:13:46 +0200
| >>Lines: 17
| >>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: <eTGsrr8QEHA.628@TK2MSFTNGP11.phx.gbl>
| >>Newsgroups: microsoft.public.biztalk.orchestration
| >>NNTP-Posting-Host: cgey1.capgemini.se 193.234.247.50
| >>Path:
cpmsftngxa10.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP11
.phx.gbl
| >>Xref: cpmsftngxa10.phx.gbl microsoft.public.biztalk.orchestration:6295
| >>X-Tomcat-NG: microsoft.public.biztalk.orchestration
| >>
| >>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:47 am |
| Thanks a lot. I found it 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:vaaIQIEREHA.3960@cpmsftngxa10.phx.gbl...
> Use Biztalk Explorer Object Model to do this.
> 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 ports,
> outbound ports and host) to <None>
> | >>Date: Thu, 27 May 2004 11:13:46 +0200
> | >>Lines: 17
> | >>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: <eTGsrr8QEHA.628@TK2MSFTNGP11.phx.gbl>
> | >>Newsgroups: microsoft.public.biztalk.orchestration
> | >>NNTP-Posting-Host: cgey1.capgemini.se 193.234.247.50
> | >>Path:
>
cpmsftngxa10.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP11
> phx.gbl
> | >>Xref: cpmsftngxa10.phx.gbl microsoft.public.biztalk.orchestration:6295
> | >>X-Tomcat-NG: microsoft.public.biztalk.orchestration
> | >>
> | >>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
> | >>
> | >>
> | >>
>
|
|
|
|
|