* Uses the {@link Composition} class to create a SOAP-specific MessageComposer.
* @param sbm a SOAPBindingModel to get configuration details from
* @return the MessageComposer
*/
public static MessageComposer<SOAPBindingData> getMessageComposer(SOAPBindingModel sbm) {
SOAPContextMapperModel scmm = sbm != null ? sbm.getSOAPContextMapper() : null;
SOAPMessageComposerModel mcm = sbm != null ? sbm.getSOAPMessageComposer() : null;
MessageComposer<SOAPBindingData> mc = Composition.getMessageComposer(SOAPBindingData.class, scmm, mcm);
ContextMapper<SOAPBindingData> cm = mc.getContextMapper();
if (cm instanceof SOAPContextMapper && scmm != null) {
((SOAPContextMapper)cm).setSOAPHeadersType(scmm.getSOAPHeadersType());
}
return mc;
}