Home Page › Forums › BizTalk 2004 – BizTalk 2010 › Subject: No namespace in incomming XML document › Re: Subject: No namespace in incomming XML document
Thanks for the reply!
When I use a message that have the namespace defined the mesage is processed:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE cXML SYSTEM "http://xml.cxml.org/schemas/cXML/1.1.008/cXML.dtd"[]>
<cXML version="1.0" timestamp="2006-11-28T17:59" payloadID="2006-11-28T17:[email protected]" xmlns="http://www.iba.ch/cxml">
<Header>
In the schema I have defined a targetnamespace so BizTalk can process the schema:
<?xml version="1.0" encoding="utf-16"?>
<xs:schema xmlns:ns0="http://www.iba.ch/cxml" xmlns:b="http://schemas.microsoft.com/BizTalk/2003" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.iba.ch/cxml" elementFormDefault="qualified">
<xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="xml.xsd"/>
<xs:annotation>
<xs:appinfo>
<references xmlns="http://schemas.microsoft.com/BizTalk/2003">
<reference targetNamespace="http://www.w3.org/XML/1998/namespace"/>
</references>
</xs:appinfo>
</xs:annotation>
<xs:element name="Name">…
The message with the defined namespace maps to the message type http://www.iba.ch/cxml#cXML. The message without the namespace definition maps to the message type cXML.
So my question: is it possible to define a schema and a mesage based on this schama tha has no targetnamespace? What I have to define so that a message without a namespace can be processed by an orchestration?
Thanks Tom