final void createJaxwsBinding() { if (getBinding() instanceof SoapBinding) { jaxwsBinding = new SOAPBindingImpl(getEndpointInfo().getBinding(), this); MTOMFeature mtomFeature = getMTOMFeature(); if (mtomFeature != null && mtomFeature.isEnabled()) { ((SOAPBinding)jaxwsBinding).setMTOMEnabled(true); } } else if (getBinding() instanceof XMLBinding) { jaxwsBinding = new HTTPBindingImpl(getEndpointInfo().getBinding(), this); } else { //REVISIT: Should not get here, though some bindings like JBI //did not implement their own Binding type. jaxwsBinding = new DefaultBindingImpl(this); } }
String.valueOf(((AddressingFeature)feature).isRequired())); } else if (feature instanceof MTOMFeature) { props.put("mtom-enabled", ((MTOMFeature)feature).isEnabled()); SOAPLogger.ROOT_LOGGER.mTOMEnabledThreshold(String.valueOf(((MTOMFeature)feature).isEnabled()), String.valueOf(((MTOMFeature)feature).getThreshold()));
String.valueOf(((AddressingFeature)feature).isRequired())); } else if (feature instanceof MTOMFeature) { props.put("mtom-enabled", ((MTOMFeature)feature).isEnabled()); SOAPLogger.ROOT_LOGGER.mTOMEnabledThreshold(String.valueOf(((MTOMFeature)feature).isEnabled()), String.valueOf(((MTOMFeature)feature).getThreshold()));
/** * * @param endpointClass web service impl class */ public void parseAnnotations(Class<?> endpointClass) { for (Annotation a : endpointClass.getAnnotations()) { WebServiceFeature ftr = getFeature(a); if (ftr != null) { if (ftr instanceof MTOMFeature) { // check conflict with @BindingType BindingID bindingID = BindingID.parse(endpointClass); MTOMFeature bindingMtomSetting = bindingID.createBuiltinFeatureList().get(MTOMFeature.class); if (bindingMtomSetting != null && bindingMtomSetting.isEnabled() ^ ftr.isEnabled()) { throw new RuntimeModelerException( ModelerMessages.RUNTIME_MODELER_MTOM_CONFLICT(bindingID, ftr.isEnabled())); } } add(ftr); } } }
/** * * @param endpointClass web service impl class */ public void parseAnnotations(Class<?> endpointClass) { for (Annotation a : endpointClass.getAnnotations()) { WebServiceFeature ftr = getFeature(a); if (ftr != null) { if (ftr instanceof MTOMFeature) { // check conflict with @BindingType BindingID bindingID = BindingID.parse(endpointClass); MTOMFeature bindingMtomSetting = bindingID.createBuiltinFeatureList().get(MTOMFeature.class); if (bindingMtomSetting != null && bindingMtomSetting.isEnabled() ^ ftr.isEnabled()) { throw new RuntimeModelerException( ModelerMessages.RUNTIME_MODELER_MTOM_CONFLICT(bindingID, ftr.isEnabled())); } } add(ftr); } } }
/** * * @param endpointClass web service impl class */ public void parseAnnotations(Class<?> endpointClass) { for (Annotation a : endpointClass.getAnnotations()) { WebServiceFeature ftr = getFeature(a); if (ftr != null) { if (ftr instanceof MTOMFeature) { // check conflict with @BindingType BindingID bindingID = BindingID.parse(endpointClass); MTOMFeature bindingMtomSetting = bindingID.createBuiltinFeatureList().get(MTOMFeature.class); if (bindingMtomSetting != null && bindingMtomSetting.isEnabled() ^ ftr.isEnabled()) { throw new RuntimeModelerException( ModelerMessages.RUNTIME_MODELER_MTOM_CONFLICT(bindingID, ftr.isEnabled())); } } add(ftr); } } }
LOGGER.finest("mtomFeature = " + mtomFeature); if ((mtomFeature != null) && mtomFeature.isEnabled()) { final QName bindingName = model.getBoundPortTypeName(); final WsdlBindingSubject wsdlSubject = WsdlBindingSubject.createBindingSubject(bindingName);
LOGGER.finest("mtomFeature = " + mtomFeature); if ((mtomFeature != null) && mtomFeature.isEnabled()) { final QName bindingName = model.getBoundPortTypeName(); final WsdlBindingSubject wsdlSubject = WsdlBindingSubject.createBindingSubject(bindingName);
LOGGER.finest("mtomFeature = " + mtomFeature); if ((mtomFeature != null) && mtomFeature.isEnabled()) { final QName bindingName = model.getBoundPortTypeName(); final WsdlBindingSubject wsdlSubject = WsdlBindingSubject.createBindingSubject(bindingName);
final void createJaxwsBinding() { if (getBinding() instanceof SoapBinding) { jaxwsBinding = new SOAPBindingImpl(getEndpointInfo().getBinding(), this); MTOMFeature mtomFeature = getMTOMFeature(); if (mtomFeature != null && mtomFeature.isEnabled()) { ((SOAPBinding)jaxwsBinding).setMTOMEnabled(true); } } else if (getBinding() instanceof XMLBinding) { jaxwsBinding = new HTTPBindingImpl(getEndpointInfo().getBinding(), this); } else { //REVISIT: Should not get here, though some bindings like JBI //did not implement their own Binding type. jaxwsBinding = new DefaultBindingImpl(this); } }
_bindingId = WSDLUtil.getBindingId(_wsdlPort, mtom.isEnabled()); ((SOAPMessageComposer)_messageComposer).setDocumentStyle(_documentStyle); ((SOAPMessageComposer)_messageComposer).setWsdlPort(_wsdlPort); ((SOAPMessageComposer)_messageComposer).setMtomEnabled(mtom.isEnabled()); ((SOAPMessageComposer)_messageComposer).setUnwrapped(_unwrapped); if (_config.getMtomConfig() != null) {
private boolean shouldUseMtomOutbound() { if(myMtomFeature != null && myMtomFeature.isEnabled()) {
private boolean shouldUseMtomOutbound() { if(myMtomFeature != null && myMtomFeature.isEnabled()) {
private boolean shouldUseMtomOutbound() { if(myMtomFeature != null && myMtomFeature.isEnabled()) {