cancel
Showing results for 
Search instead for 
Did you mean: 

No message in external definition using XSD

Former Member
0 Kudos

I'm trying to load the following XSD schema into XI as external definition:

<?xml version="1.0" encoding="UTF-8"?><xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:ean.ucc:2">  <xsd:import namespace="urn:ean.ucc:plan:2" schemaLocation="ReplenishmentProposal.xsd"/>
  <xsd:import namespace="urn:ean.ucc:deliver:2" schemaLocation="PackageTypeDescriptionCode.xsd"/>
  <xsd:include schemaLocation="Message.xsd"/>
  <xsd:include schemaLocation="DocumentCommand.xsd"/>
  <xsd:include schemaLocation="DocumentCommandList.xsd"/>
  <xsd:include schemaLocation="Transaction.xsd"/>
  <xsd:include schemaLocation="Command.xsd"/>
  <xsd:include schemaLocation="ResponseStatusList.xsd"/>
  <xsd:include schemaLocation="DocumentReference.xsd"/>
  <xsd:include schemaLocation="QuantityIdentificationList.xsd"/>
  <xsd:include schemaLocation="TimePeriod.xsd"/>
  <xsd:include schemaLocation="UnitMeasurement.xsd"/>
  <xsd:include schemaLocation="QuantitySpecification.xsd"/>
  <xsd:include schemaLocation="AdditionalPartyIdentificationList.xsd"/>
  <xsd:include schemaLocation="Measurement.xsd"/>
  <xsd:include schemaLocation="TimeOrDateTimePeriod.xsd"/>
  <xsd:include schemaLocation="DocumentStatusList.xsd"/>
  <xsd:include schemaLocation="MeasurementUnitCode.xsd"/>
  <xsd:include schemaLocation="Document.xsd"/>
  <xsd:include schemaLocation="AdditionalTradeItemIdentificationList.xsd"/>
  <xsd:include schemaLocation="DocumentLineReference.xsd"/>
  <xsd:include schemaLocation="CommunicationChannelCodeList.xsd"/>
  <xsd:include schemaLocation="StructureTypeCodeList.xsd"/>
  <xsd:include schemaLocation="MeasurementTypeCodeList.xsd"/>
  <xsd:include schemaLocation="Contact.xsd"/>
  <xsd:include schemaLocation="PartyIdentification.xsd"/>
  <xsd:include schemaLocation="TradeItemIdentification.xsd"/>
  <xsd:include schemaLocation="DateTimePeriod.xsd"/>
  <xsd:include schemaLocation="EntityIdentification.xsd"/>
  <xsd:include schemaLocation="Description.xsd"/>
  <xsd:include schemaLocation="Country.xsd"/>
  <xsd:include schemaLocation="DocumentOrDocumentLineReference.xsd"/>
  <xsd:include schemaLocation="TransactionalItemData.xsd"/>
  <xsd:include schemaLocation="Quantity.xsd"/>
  <xsd:include schemaLocation="Extension.xsd"/>
</xsd:schema>

( available via [http://www.xs4all.nl/~iddor/ReplenishmentProposalProxy.xsd] )

In XI, this looks like this, after setting the external references: screenshot[screenshot|http://www.xs4all.nl/~iddor/screenshot1.jpg]

However, the messages tab doesn't show a message ([screenshot|http://www.xs4all.nl/~iddor/screenshot2.jpg]), so I can not use the external definition in any message mapping. Do you have an idea of how to fix this?

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

found a work-around

Former Member
0 Kudos

I already checked category XSD and "From all available global element" as shown in screenshot 1.

The referenced XSDs have been loaded as external definitions. This also shows in screenshot 1.

When validating in XML spy I get the following error message:

No namespace prefix is mapped to the target namespace "urn:ean.ucc:2". Therefore there is no way of referencing other schema components within this schema document. To solve the problem, map at least one namespace prefix to the target namespace.

XML spy error message added.

Former Member
0 Kudos

Hey,

the Xsd's that are referred by the main xsd are not imported in XI.

You need to import them in XI.

regards,

Milan.

Former Member
0 Kudos

hello

while importing the XSD you must check the two parameters set as :

1.category: xsd

2.messages : from all available global elements.

i hope you will get the solution by this .

remove the file name from source.

Edited by: Chetan Ahuja on Jun 2, 2008 12:35 PM