2010-06-24 1 views
0

이 스키마는 Biztalk 2004 환경에서 사용되었지만 BizTalk 2006 R2에서 컴파일 할 때 오류가 발생합니다.스키마 유효성 검사 (BizTalk 2004에서 2006 R2로 변환)

Error 54 Wildcard '##any' allows element 'customerremarks', and causes the content model to become ambiguous. A content model must be formed such that during validation of an element information item sequence, the particle contained directly, indirectly or implicitly therein with which to attempt to validate each item in the sequence in turn can be uniquely determined without examining the content or attributes of that item, and without any information about the items in the remainder of the sequence. C:\Project\ScheduleRepair.xsd

내가 언급 한 노드에 대해 다른 아무것도 표시되지 않습니다

<?xml version="1.0" encoding="utf-16"?> 
<xs:schema xmlns:b="http://schemas.microsoft.com/BizTalk/2003" xmlns="http://Project.Schemas.External.ScheduleRepair" attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"> 
    <xs:element name="schedulerepair"> 
    <xs:complexType> 
     <xs:complexContent mixed="true"> 
     <xs:extension base="xs:anyType"> 
      <xs:sequence>   
      <xs:element name="customerremarks"> 
       <xs:complexType /> 
      </xs:element> 
      </xs:sequence> 
     </xs:extension> 
     </xs:complexContent> 
    </xs:complexType> 
    </xs:element> 
</xs:schema> 

이제 우리는이 오류가 발생합니다. 그 노드를 지우는 것 외에도, 범인으로서 다른 것을 지적하기 위해 계속 진행할 것입니다. .NET 1.1에서 2.0으로의 변경과 관련이 있지만이 스키마를 어떻게 든 작동시킬 필요가 있다는 것을 알고 있습니다.

제발 도와주세요!

답변

1

와우 StackOverflow, 전문가는 어디 있습니까? 1 일, 질문에 대한 조회수 12 회 및 답변 시도 없음 !!!

필리핀의 개발자로부터 도움을 받았는데,저기서 꼭 일류입니다! 고마워요 로즈!

Hello,

Checking the schema from BizTalk 2004, I see that schedulerepair element is in xs:anyType with Derived By property set to Extension. As far as I recall, we cannot set the Derived By property to Extension to derive from an xs:anyType otherwise the error you stated below will be encountered. To correct this, we can either change the Derived By property to Restriction or change the Base Data Type property from xs:anyType to some other types and rebuild the schema.

The error you encountered is raised due to a new check which has been introduced in the 2.0 framework as part of the restructuring of the 2.0 XML libraries.

Couldn’t exactly determine if that really is the case here as I have no Biztalk 2006 R2 to compile to but anyway hope this helps. 

Thanks! Rose

그녀는 심지어하지만 그녀의 조언은 내 컴퓨터에서 일을 테스트 할 수있는 새로운 Biztalk 버전을 가지고 있지 않았다

여기에 그녀의 원래 메시지입니다. 새 스키마는 다음과 같습니다.

<?xml version="1.0" encoding="utf-16"?> 
<xs:schema xmlns:b="http://schemas.microsoft.com/BizTalk/2003" xmlns="http://Project.Schemas.External.ScheduleRepair" attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"> 
    <xs:element name="schedulerepair"> 
    <xs:complexType> 
     <xs:complexContent mixed="true"> 
     <xs:restriction base="xs:anyType"> 
      <xs:sequence>    
      <xs:element name="customerremarks"> 
       <xs:complexType /> 
      </xs:element> 
      </xs:sequence> 
     </xs:restriction> 
     </xs:complexContent> 
    </xs:complexType> 
    </xs:element> 
</xs:schema> 

놀라워요 로즈! 다시 한 번 감사드립니다!

+0

네,이 사이트에는 BizTalk 전문가가 너무 많지 않습니다. 그렇기는하지만 너무 오랫동안 BizTalk 전문가가 많지 않습니다. – aceinthehole