BizTalk Server General - Schema problem

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server General > March 2006 > Schema problem





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 problem
Gary

2006-03-21, 3:09 am

Hi I have the following schema deployed

<?xml version="1.0" encoding="utf-16"?>
<xs:schema xmlns:b="http://schemas.microsoft.com/BizTalk/2003"
xmlns="http://BizTalkServerProject1.FlatFileSchema1"
targetNamespace="http://BizTalkServerProject1.FlatFileSchema1"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:annotation>
<xs:appinfo>
<schemaEditorExtension:schemaInfo namespaceAlias="b"
extensionClass="Microsoft.BizTalk.FlatFileExtension.FlatFileExtension"
standardName="Flat File"
xmlns:schemaEditorExtension="http://schemas.microsoft.com/BizTalk/2003/SchemaEditorExtensions" />
<b:schemaInfo standard="Flat File" codepage="65001" default_pad_char="
" count_positions_by_byte="false" parser_optimization="speed"
lookahead_depth="3" suppress_empty_nodes="false" generate_empty_nodes="true"
allow_early_termination="false" early_terminate_optional_fields="false"
allow_message_breakup_of_infix_root="false" compile_parse_tables="false"
root_reference="Person" />
</xs:appinfo>
</xs:annotation>
<xs:element name="Person">
<xs:annotation>
<xs:appinfo>
<b:recordInfo structure="delimited" child_delimiter_type="char"
child_delimiter="|" child_order="infix" sequence_number="1"
preserve_delimiter_for_empty_data="true" suppress_trailing_delimiters="false"
/>
</xs:appinfo>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:annotation>
<xs:appinfo>
<groupInfo sequence_number="0"
xmlns="http://schemas.microsoft.com/BizTalk/2003" />
</xs:appinfo>
</xs:annotation>
<xs:element name="Title" type="xs:string">
<xs:annotation>
<xs:appinfo>
<b:fieldInfo justification="left" sequence_number="1" />
</xs:appinfo>
</xs:annotation>
</xs:element>
<xs:element name="Forename" type="xs:string">
<xs:annotation>
<xs:appinfo>
<b:fieldInfo justification="left" sequence_number="2" />
</xs:appinfo>
</xs:annotation>
</xs:element>
<xs:element name="Surname" type="xs:string">
<xs:annotation>
<xs:appinfo>
<b:fieldInfo justification="left" sequence_number="3" />
</xs:appinfo>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>

In a custom component disassembler I assign the DocumentSpecName by creating
a SchemaWithNone by the following

SchemaWithNone Schema = new
SchemaWithNone("http://BizTalkServerProject1.FlatFileSchema1#Person");

containedFFDasm.DocumentSpecName = Schema;

When the pipeline executes I get the following error:

There was a failure executing the receive pipeline:
"BizTalkServerProject1.ReceivePipeline1, BizTalkServerProject1,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=46bda6fa896a68e8" Source:
"MyPipelineComponent" Receive Port: "ReceivePort1ContextTest" URI:
"C:\PropertyPromotion\In\*.txt" Reason: This Disassembler cannot retrieve
document specification by using this name:
"http://BizTalkServerProject1.FlatFileSchema1#Person".

Any ideas why this doesn't work. The schema is deployed.

Cheers,
Gary



Gary

2006-03-21, 8:02 am

I think I have this sorted now, but I need to check when I'm back at work. I
will update this when I find out. I believe I was using the root node name
in the schemawithnone incorrectly.

Instead of http://BizTalkServerProject1.FlatFileSchema1#Person
it should have been http://BizTalkServerProject1.FlatFileSchema1

I will confirm this later.

"Gary" wrote:

> Hi I have the following schema deployed
>
> <?xml version="1.0" encoding="utf-16"?>
> <xs:schema xmlns:b="http://schemas.microsoft.com/BizTalk/2003"
> xmlns="http://BizTalkServerProject1.FlatFileSchema1"
> targetNamespace="http://BizTalkServerProject1.FlatFileSchema1"
> xmlns:xs="http://www.w3.org/2001/XMLSchema">
> <xs:annotation>
> <xs:appinfo>
> <schemaEditorExtension:schemaInfo namespaceAlias="b"
> extensionClass="Microsoft.BizTalk.FlatFileExtension.FlatFileExtension"
> standardName="Flat File"
> xmlns:schemaEditorExtension="http://schemas.microsoft.com/BizTalk/2003/SchemaEditorExtensions" />
> <b:schemaInfo standard="Flat File" codepage="65001" default_pad_char="
> " count_positions_by_byte="false" parser_optimization="speed"
> lookahead_depth="3" suppress_empty_nodes="false" generate_empty_nodes="true"
> allow_early_termination="false" early_terminate_optional_fields="false"
> allow_message_breakup_of_infix_root="false" compile_parse_tables="false"
> root_reference="Person" />
> </xs:appinfo>
> </xs:annotation>
> <xs:element name="Person">
> <xs:annotation>
> <xs:appinfo>
> <b:recordInfo structure="delimited" child_delimiter_type="char"
> child_delimiter="|" child_order="infix" sequence_number="1"
> preserve_delimiter_for_empty_data="true" suppress_trailing_delimiters="false"
> />
> </xs:appinfo>
> </xs:annotation>
> <xs:complexType>
> <xs:sequence>
> <xs:annotation>
> <xs:appinfo>
> <groupInfo sequence_number="0"
> xmlns="http://schemas.microsoft.com/BizTalk/2003" />
> </xs:appinfo>
> </xs:annotation>
> <xs:element name="Title" type="xs:string">
> <xs:annotation>
> <xs:appinfo>
> <b:fieldInfo justification="left" sequence_number="1" />
> </xs:appinfo>
> </xs:annotation>
> </xs:element>
> <xs:element name="Forename" type="xs:string">
> <xs:annotation>
> <xs:appinfo>
> <b:fieldInfo justification="left" sequence_number="2" />
> </xs:appinfo>
> </xs:annotation>
> </xs:element>
> <xs:element name="Surname" type="xs:string">
> <xs:annotation>
> <xs:appinfo>
> <b:fieldInfo justification="left" sequence_number="3" />
> </xs:appinfo>
> </xs:annotation>
> </xs:element>
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> </xs:schema>
>
> In a custom component disassembler I assign the DocumentSpecName by creating
> a SchemaWithNone by the following
>
> SchemaWithNone Schema = new
> SchemaWithNone("http://BizTalkServerProject1.FlatFileSchema1#Person");
>
> containedFFDasm.DocumentSpecName = Schema;
>
> When the pipeline executes I get the following error:
>
> There was a failure executing the receive pipeline:
> "BizTalkServerProject1.ReceivePipeline1, BizTalkServerProject1,
> Version=1.0.0.0, Culture=neutral, PublicKeyToken=46bda6fa896a68e8" Source:
> "MyPipelineComponent" Receive Port: "ReceivePort1ContextTest" URI:
> "C:\PropertyPromotion\In\*.txt" Reason: This Disassembler cannot retrieve
> document specification by using this name:
> "http://BizTalkServerProject1.FlatFileSchema1#Person".
>
> Any ideas why this doesn't work. The schema is deployed.
>
> Cheers,
> Gary
>
>
>

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com