English 中文(简体)
问题——从标准角度参考和使用BizTalk Schema项目。 NET WCF项目
原标题:Issue - referencing and using BizTalk Schema project from a standard .NET WCF project?
  • 时间:2011-08-29 22:03:32
  •  标签:
  • biztalk

I’m new to BizTalk (2010). I have created a very simple BizTalk schema project with a scheam. The root record name of the schema is “Customer” which has couple of child filed elements (Name & Age). I have a .NET project where I’m referencing the above BizTalk schema. This is how I initialize the schema object:

TestSchema.Customer request = new TestSchema.Customer();

For reasons, I don’t have visibility to any of the child filed elements available in the schema. For example, I’m expecting request.age & request.Name to work fine. But it’s giving compile time exception.

Here is my schema code:

<?xml version="1.0" encoding="utf-16"?>
<xs:schema xmlns="http://TestSchema.Customer"
 xmlns:b="http://schemas.microsoft.com/BizTalk/2003"   
targetNamespace="http://TestSchema.Customer" 
xmlns:xs="http://www.w3.org/2001/XMLSchema">
 <xs:element name="Root">
  <xs:complexType>
   <xs:sequence>
    <xs:element name="Name" type="xs:string" />
   </xs:sequence>
  </xs:complexType>
  </xs:element>
</xs:schema>

Am I doing anything wrong here? Please advice.

问题回答

查阅作为您BizTalk Schema项目一部分而生成的C#类,在民主选举学会中,点击了“所有档案”icon abd, 参看你的文件。

检查你chem子的班级重新读物,你应当确切地看到其结构。

另外,你的根本内容仍然被称为“Root”而不是“Customer”,我期望你通过创建request.Customer.Name......

希望有助于......





相关问题
BizTalk server problem

we have a biztalk server (a virtual one (1!)...) at our company, and an sql server where the data is being kept. Now we have a lot of data traffic. I m talking about hundred of thousands. So I m ...

Create key pair for BizTalk AS2 connection

I need to create an AS2 connection in BizTalk Server 2006 R2 to communicate with a business partner. I ve worked with BizTalk AS2 config before and the BizTalk docs have pretty good walkthroughs about ...

BizTalk mapper and the [ThreadStatic] attribute

I ve recently encountered an issue with the multi-threaded nature of the BizTalk Mapper and how it handles external assemblies. As this quote from MSDN indicates: Important Any code written in an ...

女士们:

我正在分析一项BizTalk(ka orchestration)申请,该申请正在由MSMQ与一个WCF服务机构进行沟通。 我不禁要问,为什么世界气候基金的一个服务执行项目有一个小参数。

热门标签