BizTalk Server General - Schema Validation error at input

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server General > February 2004 > Schema Validation error at input





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Schema Validation error at input
Naval Arya

2004-02-08, 8:38 am

hi,
i have these two schema

Envelope

<?xml version="1.0" encoding="utf-16" ?>
- <xs:schema
xmlns:b="http://schemas.microsoft.com/BizTalk/2003"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
- <xs:annotation>
- <xs:appinfo>
<b:schemaInfo is_envelope="yes"
xmlns:b="http://schemas.microsoft.com/BizTalk/2003" />
</xs:appinfo>
</xs:annotation>
- <xs:element name="Document">
- <xs:annotation>
- <xs:appinfo>
<b:recordInfo body_xpath="/*[local-name()='Document'
and namespace-uri()='']/*[local-name()='Body' and
namespace-uri()='']" />
- <b:properties>
<b:property distinguished="true" xpath="/*[local-name()
='Document' and namespace-uri()='']/*[local-name()='To'
and namespace-uri()='']" />
<b:property distinguished="true" xpath="/*[local-name()
='Document' and namespace-uri()='']/*[local-name()='From'
and namespace-uri()='']" />
</b:properties>
</xs:appinfo>
</xs:annotation>
- <xs:complexType>
- <xs:sequence>
<xs:element default="Naval Arya" name="To"
type="xs:string" />
<xs:element default="Mr. Naynesh" name="From"
type="xs:string" />
- <xs:element name="Body">
- <xs:complexType>
- <xs:sequence>
<xs:any maxOccurs="unbounded" namespace="##any" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>



and

Body


<?xml version="1.0" encoding="utf-16" ?>
- <xs:schema
xmlns:b="http://schemas.microsoft.com/BizTalk/2003"
attributeFormDefault="unqualified"
elementFormDefault="unqualified"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
- <xs:element name="Data">
- <xs:complexType>
- <xs:sequence>
<xs:element name="Data1" type="xs:string" />
<xs:element name="Data2" type="xs:string" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>



but when i give the follwoing file as input
<Document>
<To>Naval Arya</To>
<From>Mr. Naynesh</From>
<Body>
<Data>
<Data1>Data1_0</Data1>
<Data2>Data2_0</Data2>
</Data>
</Body>
</Document>




i get a error
There was a failure executing the receive
pipeline: "PartialHeader.ReceivePipeline1" Source: "XML
disassembler" Receive Location: "c:\mul\xmlin\*.xml"
Reason:"This Disassembler cannot retrieve document spec
by using this type: "Document". ".

can anybody help me ..

thanks in advance..

Naval Arya


Jan Eliasen

2004-02-08, 8:38 am

On Fri, 23 Jan 2004 02:20:28 -0800, "Naval Arya"
<anonymous@discussions.microsoft.com> wrote:

I can see from your posting, that you are using BizTalk 2004? In that
case, please use the beta-newsgroup instead. You can find a link to it
at www.microsoft.com/biztalk/beta

>hi,
>i have these two schema
>
>Envelope
>
> <?xml version="1.0" encoding="utf-16" ?>
>- <xs:schema
>xmlns:b="http://schemas.microsoft.com/BizTalk/2003"
>xmlns:xs="http://www.w3.org/2001/XMLSchema">
>- <xs:annotation>
>- <xs:appinfo>
> <b:schemaInfo is_envelope="yes"
>xmlns:b="http://schemas.microsoft.com/BizTalk/2003" />
> </xs:appinfo>
> </xs:annotation>
>- <xs:element name="Document">
>- <xs:annotation>
>- <xs:appinfo>
> <b:recordInfo body_xpath="/*[local-name()='Document'
>and namespace-uri()='']/*[local-name()='Body' and
>namespace-uri()='']" />
>- <b:properties>
> <b:property distinguished="true" xpath="/*[local-name()
>='Document' and namespace-uri()='']/*[local-name()='To'
>and namespace-uri()='']" />
> <b:property distinguished="true" xpath="/*[local-name()
>='Document' and namespace-uri()='']/*[local-name()='From'
>and namespace-uri()='']" />
> </b:properties>
> </xs:appinfo>
> </xs:annotation>
>- <xs:complexType>
>- <xs:sequence>
> <xs:element default="Naval Arya" name="To"
>type="xs:string" />
> <xs:element default="Mr. Naynesh" name="From"
>type="xs:string" />
>- <xs:element name="Body">
>- <xs:complexType>
>- <xs:sequence>
> <xs:any maxOccurs="unbounded" namespace="##any" />
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> </xs:schema>
>
>
>
>and
>
>Body
>
>
> <?xml version="1.0" encoding="utf-16" ?>
>- <xs:schema
>xmlns:b="http://schemas.microsoft.com/BizTalk/2003"
>attributeFormDefault="unqualified"
>elementFormDefault="unqualified"
>xmlns:xs="http://www.w3.org/2001/XMLSchema">
>- <xs:element name="Data">
>- <xs:complexType>
>- <xs:sequence>
> <xs:element name="Data1" type="xs:string" />
> <xs:element name="Data2" type="xs:string" />
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> </xs:schema>
>
>
>
>but when i give the follwoing file as input
><Document>
> <To>Naval Arya</To>
> <From>Mr. Naynesh</From>
> <Body>
> <Data>
> <Data1>Data1_0</Data1>
> <Data2>Data2_0</Data2>
> </Data>
> </Body>
></Document>
>
>
>
>
>i get a error
>There was a failure executing the receive
>pipeline: "PartialHeader.ReceivePipeline1" Source: "XML
>disassembler" Receive Location: "c:\mul\xmlin\*.xml"
>Reason:"This Disassembler cannot retrieve document spec
>by using this type: "Document". ".
>
>can anybody help me ..
>
>thanks in advance..
>
>Naval Arya
>


--
Jan Eliasen, representing himself and not the company he works for.
MCP in Microsoft BizTalk Server
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com