When you generate a WM doc definition, if the element has a attribute, WM will generate the element with two sub-fields:
*body
@theAttribute
This make it unusable in WS descriptor directly.
Actually, when you create WS, you don’t want to embed the whole xml structure as part of the WS definition. You can simply use one parameter, for example: PayloadDocument, make it a String.
then, you do the parsing, processing in separate services. SO you won’t have this issue.
This is also a better practice, avoid changing of WS when you need to modify your XML schema.
#API-Management#soa#webMethods