on 03-08-2017 9:08 AM
Hi,
I noticed that in our SAP PI/PO system the WSDL just shows a minOccurs=0 even if I declared in the datatype the Occurence as 0..1. Some of our java developers face some problems with this in their frameworks.
Is this normal or do we have a bug in our system?
Hi Simon,
It is not a bug in your system, but the way how XSD generator works in ESR. Absence of the attribute 'maxOccurs' for elements with cardinality 0...1, that you observe in generated WSDL of the service interface, comes from XSD representation of corresponding underlying data type. Reason for this is, XSD generator uses the default value '1' for 'maxOccurs'. In other words, only if 'maxOccurs' is different from '1', will XSD generator produce corresponding attribute - in case it is '1', this attribute will be omitted for the respective element in the generated XSD (and correspondingly in WSDL).
Regards,
Vadim
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
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.