on 2005 Jul 29 9:52 AM
hi,
I know that we can import XSD in Design and create data type,my question is:
1. Can i import an XSD thats been created in message mapping and use that to create my data type in design.
(or)
2.Should i have to write an XSD on my own and then import it to create my data type, and is there any standard format to write it.
Hi Prasanth,
You can do that absolutely. But, should be careful with the following:
1. Name of the element in the XSD you copied from the mapping source and that of Data type to be created should be same.
2. The XSD should not have Type and Ref node relationship.
Regards,
Sreenivas.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Prashanth,
1. Ur mapping creates XML, the idea u have is very confusing. And ur mapping is be executed at runtime, ur XLD imported at design time.
2. U can wright it for urself, but there r a lot constraints. Better use the grafical surface. If u want to change or create it with editor of ur choice, first make a dummy and export it, 2 look, how it is build. I use sometimes XSD parts 2 copy them in a other datatype, but never create them without grafical tool.
Regards,
Udo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Prashanth,
For your first question: i don't know exactly what you mean that the the xsd you create in the data mapping steps. So can you explain it in details?
For your 2nd question: Sure you can write your own XSD to create a data type. And i will give you an example xsd file format. Then you can import it in the XSD tab view.
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://sap.com/xi/XI/hansteel" targetNamespace="http://sap.com/xi/XI/hansteel">
<xsd:complexType name="CustomerInfo">
<xsd:annotation>
<xsd:appinfo source="http://sap.com/xi/TextID">
a6c26c80000f11dac45e00096b1669b3
</xsd:appinfo>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="ID">
<xsd:annotation>
<xsd:appinfo source="http://sap.com/xi/TextID">
dfe699c0e7bc11d9c736d51c0a0013e1
</xsd:appinfo>
</xsd:annotation>
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:length value="10" />
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="NAME">
<xsd:annotation>
<xsd:appinfo source="http://sap.com/xi/TextID">
dfe82060e7bc11d9b2efd51c0a0013e1
</xsd:appinfo>
</xsd:annotation>
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:length value="35" />
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="CUSTTYPE">
<xsd:annotation>
<xsd:appinfo source="http://sap.com/xi/TextID">
dfe82061e7bc11d9c193d51c0a0013e1
</xsd:appinfo>
</xsd:annotation>
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:length value="4" />
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="POSTCODE">
<xsd:annotation>
<xsd:appinfo source="http://sap.com/xi/TextID">
e93039a0e7bc11d9c7c6d51c0a0013e1
</xsd:appinfo>
</xsd:annotation>
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:length value="10" />
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="CITY">
<xsd:annotation>
<xsd:appinfo source="http://sap.com/xi/TextID">
f0122850e7bc11d99189d51c0a0013e1
</xsd:appinfo>
</xsd:annotation>
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:length value="35" />
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
Hope this will be helpful.
Eric Ma
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
71 | |
9 | |
8 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.