问题
I have been searching for over an hour and I give up. On the XML disassembler component, there is a DocumentSpecNames
property. I can find no helpful documentation about what to put there. Is it like target namespace? What is it? An example would be helpful to.
回答1:
DocumentSpecNames are used to validate messages against a specific schema (SchemaList). This is useful if you want to ensure strict messaging acceptance prior to processing a given message in your pipeline. See related blog post.
The property value should be the name of the assembly and class name (from above link).
DBLOG.ValidateMessage.IntegerSchema, DBLOG.ValidateMessage, Version=1.0.0.0, Culture=neutral, PublicKeyToken=349a4171d9432c58
回答2:
Document namespace is a combination of "name", "assembly"
Step-1. To find this you need to go to BizTalk Admin console then navigate to the application where you have deployed your schema Dll.
Step-2. Double click on the schema for which you want the Document Spec Name; you will find "General" tab on the left hand side of the window.
Step-3. On this General tab, "Name", "Assembly" and "Type" would be defined, now to get the Document Spec Name- Copy the "Name" and paste it to a notepad followed by a comma and a space.
Ex. Name- "Microsoft.EAI.SAP.Schema.PurchaseOrder" Assembly- "Microsoft.EAI.SAP.Schema, Version=1.0.0.0, Culture=neutral, PublicKeyToken=078b35dbd180a45k"
So as i defined above, Document Spec Name will be-
Document Name- "Microsoft.EAI.SAP.Schema.PurchaseOrder, Microsoft.EAI.SAP.Schema, Version=1.0.0.0, Culture=neutral, PublicKeyToken=078b35dbd180a45k"
Hope this will clear your doubt :)
Regards Mayank
来源:https://stackoverflow.com/questions/12319987/documentspecnames