How to specify MessageBodyMember required?

I am looking for a way to indicate that some MessageBodyMember is required, so that the generated scheme will have minOccurs = 1 instead of minOccurs = 0.
I need to manually modify the scheme to add it, and this is really a pain.

I read several articles that say this is not possible, but they are a bit old; maybe now there is a way or workaround.

Does anyone know if this is possible?

+3
source share
1 answer

I do not know how to do this - the attribute MessageBodyMemberdoes not have a property or means to indicate that it is a mandatory part and, therefore, must have minOccurs = 1 in WSDL.

MSDN MessageBodyMember.

, WSDL, , WCF, minOccurs = 1 MessageBodyMember. , WSFL WCF.

+1

Source: https://habr.com/ru/post/1732083/


All Articles