on 04-23-2014 11:00 AM
hi
I am in PI 7.1. I have a file to AII scenario. The file server guys gaveme the xsd. I need to two mappings for the target. depending on the value of one field I have to use one of the mappings. I am planning to use multiple operations in single inbound interface.
So for using this , is it better to create Data Type and MT or just import the xsd as external definition?
If I use it as an external definition, I can diretly start with message mapping right?
Which is better practise to use ED or DT?
Regards
Hi Radhika,
If the structure is readily available via external definition, it is best to use it. The reason for this is that the fields in the external definition are already defined and accepted by the provider. If you create it using data types/message types, you still have to consult with them about data type, length, restrictions, etc.
By default, if there is no structure given or is available, use data type/message type.
Hope this helps,
Mark
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have to select category as xsd. Then what option should I take for messages. I have three here
From all acailable global elements
Do not extract
From all unreference Global elements
Also the xsd has all fields mandatory. All fields have occurence 1 while many are optional in mapping document. In PI it will throw error as some may not come at all. What to do about those fields?
Hi Radhika,
Since the fields are mandatory, use the context functions in message mapping to ensure that the fields are always populated e.g mapWithDefault, useOneAsMany, etc. Or you can ask the file server guys to provide you with an updated XSD that is in line with your documentation.
Regards,
Mark
Hi Radhika
Always use XSD when available because it will have lot of time and reduces the chances of manual mistakes.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
you can use XSD.
you can import the XSD through ED and create the service interface.
Than Mapping
Regards
srinivas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.