/** * Obtains the type attribute that should be serialized and returns the new list of Attributes * @param attributes of the qname * @param type is the qname of the type * @return new list of Attributes */ public Attributes setTypeAttribute(Attributes attributes, QName type) { SchemaVersion schema = SchemaVersion.SCHEMA_2001; if (msgContext != null) { schema = msgContext.getSchemaVersion(); } if (type == null || type.getLocalPart().indexOf(SymbolTable.ANON_TOKEN) >= 0 || ((attributes != null) && (attributes.getIndex(schema.getXsiURI(), "type") != -1))) return attributes; AttributesImpl attrs = new AttributesImpl(); if (attributes != null && 0 < attributes.getLength() ) attrs.setAttributes(attributes); String prefix = getPrefixForURI(schema.getXsiURI(), "xsi"); attrs.addAttribute(schema.getXsiURI(), "type", prefix + ":type", "CDATA", attributeQName2String(type)); return attrs; }
/** * Obtains the type attribute that should be serialized and returns the new list of Attributes * @param attributes of the qname * @param type is the qname of the type * @return new list of Attributes */ public Attributes setTypeAttribute(Attributes attributes, QName type) { SchemaVersion schema = SchemaVersion.SCHEMA_2001; if (msgContext != null) { schema = msgContext.getSchemaVersion(); } if (type == null || type.getLocalPart().indexOf(SymbolTable.ANON_TOKEN) >= 0 || ((attributes != null) && (attributes.getIndex(schema.getXsiURI(), "type") != -1))) return attributes; AttributesImpl attrs = new AttributesImpl(); if (attributes != null && 0 < attributes.getLength() ) attrs.setAttributes(attributes); String prefix = getPrefixForURI(schema.getXsiURI(), "xsi"); attrs.addAttribute(schema.getXsiURI(), "type", prefix + ":type", "CDATA", attributeQName2String(type)); return attrs; }
/** * Obtains the type attribute that should be serialized and returns the new list of Attributes * @param attributes of the qname * @param type is the qname of the type * @return new list of Attributes */ public Attributes setTypeAttribute(Attributes attributes, QName type) { SchemaVersion schema = SchemaVersion.SCHEMA_2001; if (msgContext != null) { schema = msgContext.getSchemaVersion(); } if (type == null || type.getLocalPart().indexOf(SymbolTable.ANON_TOKEN) >= 0 || ((attributes != null) && (attributes.getIndex(schema.getXsiURI(), "type") != -1))) return attributes; AttributesImpl attrs = new AttributesImpl(); if (attributes != null && 0 < attributes.getLength() ) attrs.setAttributes(attributes); String prefix = getPrefixForURI(schema.getXsiURI(), "xsi"); attrs.addAttribute(schema.getXsiURI(), "type", prefix + ":type", "CDATA", attributeQName2String(type)); return attrs; }
msgContext.getSchemaVersion());
msgContext.getSchemaVersion());
schema = msgContext.getSchemaVersion(); soap = msgContext.getSOAPConstants();
schema = msgContext.getSchemaVersion(); soap = msgContext.getSOAPConstants();
schema = msgContext.getSchemaVersion(); soap = msgContext.getSOAPConstants();
msgContext.getSchemaVersion()); SOAPEnvelope resEnv = null ; Message reqMsg = new Message( reqEnv );
msgContext.getSchemaVersion()); SOAPEnvelope resEnv = null ; Message reqMsg = new Message( reqEnv );
msgContext.getSchemaVersion()); SOAPEnvelope resEnv = null ; Message reqMsg = new Message( reqEnv );
schemaVersion = msgContext.getSchemaVersion();
schemaVersion = msgContext.getSchemaVersion();
schemaVersion = msgContext.getSchemaVersion();
msgContext.getSchemaVersion());
msgContext.getSchemaVersion());