Error in accessing the part data or one of its fragments. The part or fragment may not exist in the database

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi

I have a problem conserning xml envelopes and ,I suspect, namespaces

(Note: I can not change the transport application and it is a requred
use, and i would prefere to keep namespace in document shema)

Any suggestions will be greatly valued

The senario

I transport a wellformed XML message via an application that "packs"
the XML, the transport application "dumps" the resulting message in a
filefolder from where my biztalk orchestration handes it. I have
created an Envelope schema and a document schema. but whem my
orchestration run I recive following error in the eventviewer.

There was a failure executing the receive pipeline:
"BTS_consume_WS.ReceiveTB_FAdd" Source: "XML disassembler" Receive
Location: "C:\POC Solutions\Consume WebService\TBIn\*.xml" Reason: This
Disassembler cannot retrieve body nodes using this XPath:
"/*[local-name()='TBIC' and
namespace-uri()='http://www.systematic.dk/xml/tbmsgheader']/*[local-name()='TBMsgs'
and namespace-uri()='']/*[local-name()='TBMsg' and
namespace-uri()='']". /*[local-name()='TBIC' and
namespace-uri()='http://www.systematic.dk/xml/tbmsgheader']/*[local-name()='TBMsgs'
and namespace-uri()='']/*[local-name()='TBMsg' and namespace-uri()='']


The message after the transport application have handled it

<?xml version="1.0" encoding="iso-8859-1" ?>
<TBIC icid="I47T1SVG00OTDB" sender="SSE_TestA:14"
receiver="2790003192:14"
timestamp="20060216095108" contrl="nej" nummsg="1" encrypted="nej"
compressed="nej"
tbversion="2.4 2" xmlns="http://www.s.dk/xml/tbmsgheader";>
<TBMsgs>
<TBMsg
msgid="M47T1SV400OTDA" infoflow="F [rkn] Addering XML 2"
signed="nej" timestamp="20060216095105">
<FAddering2 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";

xmlns="http://www.my.dk/FAddering2";
xsi:schemaLocation="http://www.my.dk/FAddering2
FAddering2.xsd">
<Heltal1>10</Heltal1>
<Heltal2>12</Heltal2>
</FAddering2>
</TBMsg>
</TBMsgs>
</TBIC>

The envelope
<?xml version="1.0" encoding="utf-16"?>
<xs:schema xmlns="http://www.s.dk/xml/tbmsgheader";
xmlns:b="http://schemas.microsoft.com/BizTalk/2003";
targetNamespace="http://www.s.dk/xml/tbmsgheader";
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="TBIC">
<xs:annotation>
<xs:appinfo>
<b:recordInfo body_xpath="/*[local-name()='TBIC' and
namespace-uri()='http://www.systematic.dk/xml/tbmsgheader']/*[local-name()='TBMsgs'
and namespace-uri()='']/*[local-name()='TBMsg' and namespace-uri()='']"
/>
</xs:appinfo>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="TBMsgs">
<xs:complexType>
<xs:sequence>
<xs:element name="TBMsg">
<xs:complexType>
<xs:sequence>
<xs:any />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>

The document schema
<?xml version="1.0" encoding="utf-16"?>
<xs:schema xmlns="http://www.my.dk/FAddering2";
elementFormDefault="qualified"
targetNamespace="http://my.dk/FAddering2"; id="FAddering2" >
<xs:simpleType name="HELTAL">
<xs:restriction base="xs:unsignedInt" />
</xs:simpleType>
<xs:element name="FAddering2" nillable="true">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="1" maxOccurs="1" name="Heltal1"
type="HELTAL" />
<xs:element minOccurs="1" maxOccurs="1" name="Heltal2"
type="HELTAL" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>

.



Relevant Pages

  • Re: What is the logic of storing XML in a Database?
    ... there are different aspects to XML. ... There really are people who think that XML databases are a good thing ... But why would you be unhappy about XML as a transport format? ... two different schema standard, DTD and XML-Schema. ...
    (comp.databases.theory)
  • Re: What is the logic of storing XML in a Database?
    ... there are different aspects to XML. ... There really are people who think that XML databases are a good thing ... But why would you be unhappy about XML as a transport format? ...
    (comp.databases.theory)
  • Re: [Fwd: Re: [PHP] Displaying information from table graphically]
    ... temporary XML files correct? ... not so much temporary as you convert the data to xml packets and transport in that format, you use the xml as a way of keeping the data structured and transportable; think of flash as a client side program and you're php application as a webservice that the client app sends and recieves data from and you'll get on a lot better. ...
    (php.general)
  • Re: What is the logic of storing XML in a Database?
    ... XML makes me sad and angry. ... there are different aspects to XML. ... unhappy. ... But why would you be unhappy about XML as a transport format? ...
    (comp.databases.theory)