on 2011 Feb 16 10:18 AM
Hi
Is there any way of creating a PI data type directly from an XSD?
Thanks
No- Data type is created manually-
chirag
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think in this case u need to slightly modify the XSD schema--
For example -This is the schema generated with the data type when u create it manually---
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="XXX:Siebel:Campaign" targetNamespace="XXX:Siebel:Campaign">
<xsd:simpleType name="Datatype Name">
<xsd:restriction base="xsd:anySimpleType" />
</xsd:simpleType>
</xsd:schema>
can u modify the XSD with this line <xsd:simpleType name="<Put data type name here>">
and end this with </xsd:simpleType>
give a try --
chirag
Edited by: Chirag Gohil on Feb 16, 2011 4:18 PM
You should be able to create data type from XSD, but why you want to create data type here instead of going with External Definition??
Still if you want to go with data type means,
open the XSD and modify like, <xsd:complexType name="Name of the data type which u would like to create">
Try to import now, it should work
Regards
I modified the xsd so that PI would recognise it, replacing xs: with xsd and simpletype with complextype etc. etc. So it works now.
The reason why i wanted to build a data type from an xsd is that i need to use the data type in a data type enhancement and enhancements dont take external definitions as types when you create them thus i needed a 'manually' created data type.
Thanks for all the help!
Hi ,
I know this thread is answere but would like to share a good blog with you.
We face a hard time creating big DT (esp in Idoc scenraio's) in SAP PI...please refer the tool in the following blog and import the XSD directly in DT editor in PI:
/people/liang.ji/blog/2009/03/03/data-type-generator
hope you will like it...thanks to Liang ji
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
>Is there any way of creating a PI data type directly from an XSD?
Yes.
PI gives very flexibility in creating data types... You can create XSD externally as you want and import it as external definition. You can also reuse that data type for different namespaces too.
Note: Use better tool like XMLSPY to create the schema definition.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
import XSD as External Definitions and you need not create Data type and message type. create SI only.
Thanks
Aashish sinha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Riaz,
Please go through the following link:
/people/liang.ji/blog/2009/03/03/data-type-generator
It might help you.
Thanks
Biswajit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
64 | |
10 | |
8 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.