cancel
Showing results for 
Search instead for 
Did you mean: 

Repository

Former Member
0 Kudos

My Source Data Structure is cXML and I have imported this into the External Definition in repository as an XSD.

How to create a Message type?

How to create a Message Interface for the above scehma?

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Rohini,

Since you have imported it as an ext.defn itself, u can use it directly in mapping( no need to create a message type).

cheers,

Prashanth

P.S Please mark helpful answers

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Rohini,

Message interface is to be created in the normal way. Just for ur info, check this...

cheers,

Prashanth

P.S Please mark helpful answers

former_member206604
Active Contributor
0 Kudos

Hi,

The import XSD itself a Message Type and you need to create the Message Interface. Either you you can select by F4 or by drag and drop.

Also make sure that your namespace is added in the XSD

<?xml version="1.0" encoding="ISO-8859-1"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="<b>yournamespace</b>">
	<xsd:element name="<b>MessageType</b>">

The root element MessageType will be your message type name. Give youe name space as given above. Also include targetnamespace if required.

Thanks,

Prakash

Former Member
0 Kudos

Prakash: Thanks a lot. My XSD looks like Below and let us assume my namespace is XYZ, where it should come?

Also in the below xsd it comes with xs: and not with xsd:

<?xml version="1.0" encoding="ISO-8859-1"?>

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">

<xs:import namespace="http://www.w3.org/XML/1998/namespace" />

<xs:element name="Name">

<xs:complexType mixed="true">

<xs:attribute ref="xml:lang" use="required"

former_member206604
Active Contributor
0 Kudos

Hi,


<?xml version="1.0" encoding="ISO-8859-1"?>

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" <b>xmlns="XYZ"</b> <b>targetNamespace="XYZ"></b>
<xs:element name="Name">
<xs:complexType mixed="true">
<xs:attribute ref="xml:lang" use="required"

Thanks

Prakash

Former Member
0 Kudos

Prakash, you are asking me to delete the following line

<xs:import namespace="http://www.w3.org/XML/1998/namespace" />

and add

xmlns="XYZ" targetNamespace="XYZ">

former_member206604
Active Contributor
0 Kudos

Hi,

You just add those two xmlns and targetNamespace and check. Incase of any problem just remove it. Actually there is no need for the line <xs:import namespace="http://www.w3.org/XML/1998/namespace" />

Thanks,

Prakash