Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/sockets/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
BizTalk ListApp命令行_Biztalk - Fatal编程技术网

BizTalk ListApp命令行

BizTalk ListApp命令行,biztalk,Biztalk,我使用c中的以下代码从BizTalk server中部署的应用程序中获取策略\规则 BTSTask.exe ListApp -ApplicationName:"EAISolution" -ResourceSpec:"c:\EAISolution.PolicyInf o.xml" /Server:VHYDTRBELSUP-02 /Database:BizTalkMgmtDb 从上面的命令中,我得到如下输出 <?xml version="1.0" encoding="utf-16" ?>

我使用c中的以下代码从BizTalk server中部署的应用程序中获取策略\规则

BTSTask.exe ListApp -ApplicationName:"EAISolution" -ResourceSpec:"c:\EAISolution.PolicyInf
o.xml" /Server:VHYDTRBELSUP-02 /Database:BizTalkMgmtDb
从上面的命令中,我得到如下输出

<?xml version="1.0" encoding="utf-16" ?> 
<ResourceSpec xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"                              xmlns:xsd="http://www.w3.org/2001/XMLSchema" ApplicationName="EAISolution" xmlns="http://schemas.microsoft.com/BizTalk/ApplicationDeployment/ResourceSpec/2004/12">
<Resources>
<Resource Type="System.BizTalk:BizTalkAssembly" Luid="EAIOrchestration, Version=1.0.0.0, Culture=neutral, PublicKeyToken=97e0f507fd7fd10d" /> 
<Resource Type="System.BizTalk:BizTalkAssembly" Luid="EAIServices, Version=1.0.0.0, Culture=neutral, PublicKeyToken=97e0f507fd7fd10d" /> 
<Resource Type="System.BizTalk:BizTalkAssembly" Luid="FFSchemasTest, Version=1.0.0.0, Culture=neutral, PublicKeyToken=97e0f507fd7fd10d" /> 
<Resource Type="System.BizTalk:Rules" Luid="RULE/ProcessPurchaseOrder/1.0" /> 
<Resource Type="System.BizTalk:BizTalkBinding" Luid="Application/EAISolution" /> 
</Resources>
</ResourceSpec>
我使用BizTalk server管理中的策略导出从BizTalk server获得以下输出

<?xml version="1.0" encoding="utf-8" ?> 
<brl xmlns="http://schemas.microsoft.com/businessruleslanguage/2002">
<ruleset name="ProcessPurchaseOrder">
<version major="1" minor="0" description="" modifiedby="username" date="2013-05- 27T12:04:55.6121122+05:30" /> 
<configuration /> 
<bindings>
<xmldocument ref="xml_31" doctype="RuleTest.PO" instances="16" selectivity="1" instance="0">
<selector>/*[local-name()='PurchaseOrder' and namespace-uri() ='http://EAISolution.PurchaseOrder']/*[local-name()='Item' and namespace-uri()='']</selector> 
<selectoralias>/PurchaseOrder/Item</selectoralias> 
<schema>....\PO.xsd</schema> 
</xmldocument>
<xmldocument ref="xml_32" doctype="RuleTest.PO" instances="16" selectivity="1" instance="0">
<selector>/*[local-name()='PurchaseOrder' and namespace-uri()='http://EAISolution.PurchaseOrder']    
</selector> 
<selectoralias>/PurchaseOrder</selectoralias> 
<schema>....\PO.xsd</schema> 
</xmldocument>
</bindings>
<rule name="ApprovalRule" priority="0" active="true">
<if>
<compare operator="less than or equal to">
<vocabularylink uri="3f0e9bcc-6212-4e6a-853c-e517f157a626" element="d4eb2deb-06d3-42c4-af49-ceb21331b1cc" /> 
<lhs>
<function>
<xmldocumentmember xmldocumentref="xml_31" type="int" sideeffects="false">
<field>*[local-name()='Quantity' and namespace-uri()='']</field> 
<fieldalias>Quantity</fieldalias> 
</xmldocumentmember>
</function>
</lhs>
<rhs>
<constant>
<int>500</int> 
</constant>
</rhs>
</compare>
</if>
<then>
<function>
<xmldocumentmember xmldocumentref="xml_32" type="string" sideeffects="true">
<field>*[local-name()='Status' and namespace-uri()='']</field> 
<fieldalias>Status</fieldalias> 
<argument>
<constant>
<string>Approved</string> 
</constant>
</argument>
</xmldocumentmember>
</function>
</then>
</rule>
</ruleset>
</brl>

因此,请让我知道如何使用命令行获取second的输出。

BTSTask将仅将策略作为MSI的一部分导出,请参见下文。 然后可以提取MSI see以获取策略文件

BTSTask不提供用于导入或导出策略的特定命令;但是,您可以使用BTSTask的ExportApp命令有选择地仅导出您想要的应用程序中的策略,不包括其他应用程序构件。然后,可以使用ImportApp命令将.msi文件导入到其他BizTalk组中的应用程序中。这是本主题中描述的方法。执行此操作时,将在BizTalk组中自动导入和发布策略,并将其添加到指定的应用程序中。 以下步骤将导出策略,但作为MSI的一部分

使用带有/ResourceSpec选项的BTSTask ListApp命令生成一个XML文件,该文件列出BizTalk应用程序中要从中导出策略的构件,如ListApp命令中所述。 编辑在上一步中生成的XML文件,删除除要导出的一个或多个策略之外的所有构件。 使用BTSTask ExportApp命令,并为/ResourceSpec参数指定修改后的XML文件。有关详细信息,请参阅ExportApp命令。 BTSTask将指定的策略及其所有关联词汇表导出到application.msi文件中。