@Override public final void addAttribute(QName name, String value) { try { String namespaceUri = name.getNamespaceURI(); String prefix = name.getPrefix(); if (StringUtils.hasLength(namespaceUri) && !StringUtils.hasLength(prefix)) { prefix = null; } OMNamespace namespace = getAxiomFactory().createOMNamespace(namespaceUri, prefix); OMAttribute attribute = getAxiomFactory().createOMAttribute(name.getLocalPart(), namespace, value); getAxiomElement().addAttribute(attribute); } catch (OMException ex) { throw new AxiomSoapElementException(ex); } }
@Override public final void addAttribute(QName name, String value) { try { String namespaceUri = name.getNamespaceURI(); String prefix = name.getPrefix(); if (StringUtils.hasLength(namespaceUri) && !StringUtils.hasLength(prefix)) { prefix = null; } OMNamespace namespace = getAxiomFactory().createOMNamespace(namespaceUri, prefix); OMAttribute attribute = getAxiomFactory().createOMAttribute(name.getLocalPart(), namespace, value); getAxiomElement().addAttribute(attribute); } catch (OMException ex) { throw new AxiomSoapElementException(ex); } }
public final void addAttribute(QName name, String value) { try { OMNamespace namespace = getAxiomFactory().createOMNamespace(name.getNamespaceURI(), name.getPrefix()); OMAttribute attribute = getAxiomFactory().createOMAttribute(name.getLocalPart(), namespace, value); getAxiomElement().addAttribute(attribute); } catch (OMException ex) { throw new AxiomSoapElementException(ex); } }
@Override public final void addAttribute(QName name, String value) { try { String namespaceUri = name.getNamespaceURI(); String prefix = name.getPrefix(); if (StringUtils.hasLength(namespaceUri) && !StringUtils.hasLength(prefix)) { prefix = null; } OMNamespace namespace = getAxiomFactory().createOMNamespace(namespaceUri, prefix); OMAttribute attribute = getAxiomFactory().createOMAttribute(name.getLocalPart(), namespace, value); getAxiomElement().addAttribute(attribute); } catch (OMException ex) { throw new AxiomSoapElementException(ex); } }
private void addLangAttribute(Locale locale, SOAPFaultReason faultReason) { OMNamespace xmlNamespace = getAxiomFactory().createOMNamespace("http://www.w3.org/XML/1998/namespace", "xml"); OMAttribute langAttribute = getAxiomFactory().createOMAttribute("lang", xmlNamespace, AxiomUtils.toLanguage(locale)); faultReason.addAttribute(langAttribute); }
private void addLangAttribute(Locale locale, SOAPFaultReason faultReason) { OMNamespace xmlNamespace = getAxiomFactory().createOMNamespace("http://www.w3.org/XML/1998/namespace", "xml"); OMAttribute langAttribute = getAxiomFactory().createOMAttribute("lang", xmlNamespace, AxiomUtils.toLanguage(locale)); faultReason.addAttribute(langAttribute); }
Constants.NS_PREFIX_SCHEMA_XSI); OMAttribute omAttribute = soapFactory.createOMAttribute("nil", xsi, "true"); soapFactory.createOMElement(name, ns, bodyFirstChild)
private void addLangAttribute(Locale locale, SOAPFaultReason faultReason) { OMNamespace xmlNamespace = getAxiomFactory().createOMNamespace("http://www.w3.org/XML/1998/namespace", "xml"); OMAttribute langAttribute = getAxiomFactory().createOMAttribute("lang", xmlNamespace, AxiomUtils.toLanguage(locale)); faultReason.addAttribute(langAttribute); }
private void addLangAttribute(Locale locale, SOAPFaultReason faultReason) { OMNamespace xmlNamespace = getAxiomFactory().createOMNamespace("http://www.w3.org/XML/1998/namespace", "xml"); OMAttribute langAttribute = getAxiomFactory().createOMAttribute("lang", xmlNamespace, AxiomUtils.toLanguage(locale)); faultReason.addAttribute(langAttribute); }
Constants.NS_PREFIX_SCHEMA_XSI); OMAttribute omAttribute = soapFactory.createOMAttribute("nil", xsi, "true"); soapFactory.createOMElement(name, ns, bodyFirstChild)
OMAttribute defaultNS = factory.createOMAttribute("xmlns", null, ModelService.TNS); errMsg.addAttribute(defaultNS);
OMAttribute defaultNS = factory.createOMAttribute("xmlns", null, ModelService.TNS); resService.addAttribute(defaultNS);
OMElement msgField = soapFactory.createOMElement(FIXConstants.FIX_FIELD, null); msgField.addAttribute(soapFactory. createOMAttribute(FIXConstants.FIX_FIELD_ID, null, String.valueOf(field.getTag()))); Object value = field.getObject();
msg.addAttribute(soapFactory.createOMAttribute(FIXConstants.FIX_MESSAGE_INCOMING_SESSION, null, "")); msg.addAttribute(soapFactory.createOMAttribute(FIXConstants.FIX_MESSAGE_COUNTER, null, String.valueOf("-1"))); quickfix.Field<?> field = iter.next(); OMElement msgField = soapFactory.createOMElement(FIXConstants.FIX_FIELD, null); msgField.addAttribute(soapFactory.createOMAttribute(FIXConstants.FIX_FIELD_ID, null, String.valueOf(field.getTag()))); Object value = field.getObject(); quickfix.Field<?> field = iter.next(); OMElement msgField = soapFactory.createOMElement(FIXConstants.FIX_FIELD, null); msgField.addAttribute(soapFactory.createOMAttribute(FIXConstants.FIX_FIELD_ID, null, String.valueOf(field.getTag()))); Object value = field.getObject();
quickfix.Field<?> field = iter.next(); OMElement msgField = soapFactory.createOMElement(FIXConstants.FIX_FIELD, null); msgField.addAttribute(soapFactory.createOMAttribute(FIXConstants.FIX_FIELD_ID, null, String.valueOf(field.getTag()))); Object value = field.getObject();
Constants.NS_PREFIX_SCHEMA_XSI); OMAttribute omAttribute = soapFactory.createOMAttribute("nil", xsi, "true"); soapFactory.createOMElement(name, ns, bodyFirstChild)
msg.addAttribute(soapFactory.createOMAttribute(FIXConstants.FIX_MESSAGE_INCOMING_SESSION, null, sessionID)); msg.addAttribute(soapFactory.createOMAttribute (FIXConstants.FIX_MESSAGE_COUNTER, null, String.valueOf(counter))); Field<?> field = iter.next(); OMElement msgField = soapFactory.createOMElement(FIXConstants.FIX_FIELD, null); msgField.addAttribute(soapFactory.createOMAttribute(FIXConstants.FIX_FIELD_ID, null, String.valueOf(field.getTag()))); Object value = field.getObject(); OMElement msgField = soapFactory.createOMElement(FIXConstants.FIX_FIELD, null); msgField.addAttribute(soapFactory. createOMAttribute(FIXConstants.FIX_FIELD_ID, null, String.valueOf(field.getTag()))); Object value = field.getObject();