on 09-07-2010 3:13 PM
Hello
I am doing soap to proxy scenario sync.
some fields in soap are optional and some are mandatory, when we define option fields in data types ? can the xml tags also be optional or is it just the values within that particular tag which is optional? Thanks
> can the xml tags also be optional or is it just the values within that particular tag which is optional?
It is just the other way round: If a field is mandantory, it means that the tags are mandantory. The XML values are always optional, unless they are described more detailled.
But you always need to know, which fields have to be filled to make the XML semantically complete. You cannot omit fields just because they are optional.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
1) I made the field optional in PI 7.1 by changing min occurrence to 0. Is this the correct way or we can explicitly set a particular field as required or optional?
2) Secondly if a field is optional , so the xml tag need not be present or the value can be optional but tag has to be present always ?
Thanks
When there are no values in the fields, usually the tags doesn't come at all in PI. Anyway, the sender side datatype is not validated when the message reaches PI.
Regards,
Prateek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
you can set mandatory or optional by changing the occurrence of a field or segment. note it is modifiable at both field and segment level
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.