When you have the Schemas/Orchestration published as WCF Service, specifically during the development updating the metadata using the WCF Service publishing Wizard is a tedious task. Once the Service names and request-response of the service operations are finalized, you can use the Command line version of the BizTalk WCF Service publishing metadata for the updated schemas. The command line tool can be downloaded from http://go.microsoft.com/fwlink/?LinkId=101820.
Syntax:
BtsWcfServicePublishing PathName
[-AdapterName:value][-EnableMetadata][-ReceiveLocation][-Anonymous]
[-ApplicationName:value][-MetadataOnly][-MetadataReceiveLocationName:value]
[-MergePorts][-TargetNamespace:value][-Location:value][-Overwrite]
Sample:
BtsWcfServicePublishing.exe OrderServicePublishing.xml -MetadataOnly -MetadataReceiveLocationName:Contoso.Request.wcf.NetNamedPipe -TargetNamespace:"http://biztalk.contoso.com/Services/Order" -Location:"http://localhost/BizTalkWcfService" -Overwrite -Anonymous
The XML for the WCF service publishing can be pulled either from the WCF Service Summary screen of the publishing wizard or the metadata location something like C:\Inetpub\wwwroot\BizTalkWcfService\App_Data\Temp\WcfServiceDescription.xml where you published the service
