public GetCurrentMessage(Element xml) { _topicPath = XmlUtils.getQNameFromChild(xml, WsnConstants.TOPIC_QNAME); }
QName portType = XmlUtils.getQNameFromChild(wsdlXML, qname);
public void load(Element xml, Environment environment) { // // schema type is optional, so this may be null // QName xsdType = XmlUtils.getQNameFromChild(xml, DescriptorConstants.XSD_SERIALIZABLE_QNAME); Class serializableType = createSerializableType(xml, environment); Class serializerClass = createSerializerClass(xml, environment); _definition = new SerializerDefinition(); _definition.setEnvironment(environment); _definition.setSchemaType(xsdType); _definition.setSerializableType(serializableType); _definition.setSerializerClass(serializerClass); }
/** * * @param root * A DOM Element representing a WS-N SimpleNotificationMessage * */ public SimpleNotificationMessage(Element root) throws SoapFault { if (root == null) throw new NullPointerException(_MESSAGES.get("NullMessageElement")); _topicPath = XmlUtils.getQNameFromChild(root, WsnConstants.TOPIC_QNAME); Element producerXML = XmlUtils.getElement(root, WsnConstants.PRODUCER_QNAME); if (producerXML != null) _producer = new EndpointReference(producerXML); Element subXML = XmlUtils.getElement(root, WsnConstants.SUBSCRIPTION_EPR_QNAME); if (subXML != null) _subscription = new EndpointReference(subXML); Element messageXML = XmlUtils.getElement(root, WsnConstants.MESSAGE_QNAME); // // we have to have a Message element, even if it's empty // if (messageXML == null) throw new SoapFault(_MESSAGES.get("NoMessageContent")); Element[] children = XmlUtils.getAllElements(messageXML); for (int n = 0; n < children.length; ++n) addMessageContent(children[n]); }