cancel
Showing results for 
Search instead for 
Did you mean: 

No message in imported External Defintion

francis21
Participant
0 Kudos

Hi,

I've imported the following GS1 xsd (StandardBusinessDocumentHeader.xsd) into the Integration Repository including the other XSDs that were listed in the External References tab.

<?xml version="1.0" encoding="UTF-8"?><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"

xmlns="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader" targetNamespace="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader"

elementFormDefault="qualified" attributeFormDefault="unqualified">

<xs:include schemaLocation="DocumentIdentification.xsd"/>

<xs:include schemaLocation="Partner.xsd"/>

<xs:include schemaLocation="Manifest.xsd"/>

<xs:include schemaLocation="BusinessScope.xsd"/>

<xs:complexType name="StandardBusinessDocumentHeader">

<xs:sequence>

<xs:element name="HeaderVersion" type="xs:string"/>

<xs:element name="Sender" type="Partner" maxOccurs="unbounded"/>

<xs:element name="Receiver" type="Partner" maxOccurs="unbounded"/>

<xs:element name="DocumentIdentification" type="DocumentIdentification"/>

<xs:element name="Manifest" type="Manifest" minOccurs="0"/>

<xs:element name="BusinessScope" type="BusinessScope" minOccurs="0"/>

</xs:sequence>

</xs:complexType>

<xs:element name="StandardBusinessDocumentHeader" type="StandardBusinessDocumentHeader"/>

<xs:element name="StandardBusinessDocument" type="StandardBusinessDocument"/>

<xs:complexType name="StandardBusinessDocument">

<xs:sequence>

<xs:element ref="StandardBusinessDocumentHeader" minOccurs="0"/>

<xs:any namespace="##other" processContents="lax"/>

</xs:sequence>

</xs:complexType>

</xs:schema>

However, I can't use this External Defintion in a Message Mapping since there's no entry in the Messages tab of the External Definition. Is there something wrong with this xsd? If so, how do I correct this?

Thanks a lot in advance.

Accepted Solutions (1)

Accepted Solutions (1)

former_member859847
Active Contributor
0 Kudos

Hi,

Please make sure that, you have imported that xsd under namespace (http://www.unece.org/cefact/namespaces/StandardBusinessDocument)as external defination of category xsd.

while creating the message mapping, we have the following options under message tab.

1. Message type

2.Fault Message Type

3.IDOC

4.RFC message

5.External message

choose the option as external message and do mapping.

i check u r XSD, it's working fine.

still u are facing any issue, plz let us know.

regards

mahesh.

Answers (6)

Answers (6)

francis21
Participant
0 Kudos

I was able to use the xsd in my mapping after changing the targetNamespace. However, when I tried to test the following input xml using the Test tool in the Mapping Editor, the Test tool was not able to recognize the input xml. Maybe because of the "sh:" prefix in the xml tags of the input xml.

How do I modify the xsd to accept the input xml with the "sh:" prefix in the tags.

<?xml version="1.0" encoding="UTF-8"?><sh:StandardBusinessDocument xmlns:sh="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader" xmlns:deliver="urn:ean.ucc:deliver:2" xmlns:eanucc="urn:ean.ucc:2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader ../Schemas/sbdh/StandardBusinessDocumentHeader.xsd urn:ean.ucc:2 ../Schemas/DespatchAdviceProxy.xsd">

<sh:StandardBusinessDocumentHeader>

<sh:HeaderVersion>1.0</sh:HeaderVersion>

<sh:Sender>

<sh:Identifier Authority="EAN.UCC">6903148000007</sh:Identifier>

<sh:ContactInformation>

<sh:Contact>John Doe</sh:Contact>

<sh:EmailAddress>John_Doe_at_purchasing.XYZretailer.com</sh:EmailAddress>

<sh:FaxNumber>+1-212-555-1213</sh:FaxNumber>

<sh:TelephoneNumber>+1-212-555-2122</sh:TelephoneNumber>

<sh:ContactTypeIdentifier>Buyer</sh:ContactTypeIdentifier>

</sh:ContactInformation>

</sh:Sender>

<sh:Receiver>

<sh:Identifier Authority="EAN.UCC">2203148000007</sh:Identifier>

<sh:ContactInformation>

<sh:Contact>Mary Smith</sh:Contact>

<sh:EmailAddress>Mary_Smith_at_widgets.com</sh:EmailAddress>

<sh:FaxNumber>+1-312-555-1214</sh:FaxNumber>

<sh:TelephoneNumber>+1-312-555-2125</sh:TelephoneNumber>

<sh:ContactTypeIdentifier>Seller</sh:ContactTypeIdentifier>

</sh:ContactInformation>

</sh:Receiver>

<sh:DocumentIdentification>

<sh:Standard>EAN.UCC</sh:Standard>

<sh:TypeVersion>2.1.1</sh:TypeVersion>

<sh:InstanceIdentifier>100002</sh:InstanceIdentifier>

<sh:Type>DespatchAdvice</sh:Type>

<sh:MultipleType>false</sh:MultipleType>

<sh:CreationDateAndTime>2004-01-10T12:00:01.000</sh:CreationDateAndTime>

</sh:DocumentIdentification>

</sh:StandardBusinessDocumentHeader>

</sh:StandardBusinessDocument>

francis21
Participant
0 Kudos

I actually solve it myself after posting my question. Thanks a lot for all your answers.

Former Member
0 Kudos

Hi,

Change Your Namespace in Notepad file with the Current Namespace which you are having in the IR

This shld work now

Regards

Seshagiri

Former Member
0 Kudos

Hello,

You need WSDL file ..you can ask this from your client.

This WSDL file will consits the Message types ,which you will use in the Message Mapping

*********Reward points,if found useful

Former Member
0 Kudos

Hi,

Try to Import this File into External Def

<?xml version="1.0" encoding="ISO-8859-1"?><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"

xmlns="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader" targetNamespace="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader"

elementFormDefault="qualified" attributeFormDefault="unqualified">

<xs:include schemaLocation="DocumentIdentification.xsd"/>

<xs:include schemaLocation="Partner.xsd"/>

<xs:include schemaLocation="Manifest.xsd"/>

<xs:include schemaLocation="BusinessScope.xsd"/>

<xs:complexType name="StandardBusinessDocumentHeader">

<xs:sequence>

<xs:element name="HeaderVersion" type="xs:string"/>

<xs:element name="Sender" type="Partner" maxOccurs="unbounded"/>

<xs:element name="Receiver" type="Partner" maxOccurs="unbounded"/>

<xs:element name="DocumentIdentification" type="DocumentIdentification"/>

<xs:element name="Manifest" type="Manifest" minOccurs="0"/>

<xs:element name="BusinessScope" type="BusinessScope" minOccurs="0"/>

</xs:sequence>

</xs:complexType>

<xs:element name="StandardBusinessDocumentHeader" type="StandardBusinessDocumentHeader"/>

<xs:element name="StandardBusinessDocument" type="StandardBusinessDocument"/>

<xs:complexType name="StandardBusinessDocument">

<xs:sequence>

<xs:element ref="StandardBusinessDocumentHeader" minOccurs="0"/>

<xs:any namespace="##other" processContents="lax"/>

</xs:sequence>

</xs:complexType>

</xs:schema>

Regards

Seshagiri

Former Member
0 Kudos

Hi Francis,

did you activate you ext. definition?

Regards Mario