The idea is that even a simple type should be wrapped in some element, not just free-form text or CDATA - that way we can have multiple values. If you add a simple string, and then another value (simple or complex), how would the API be modified to get the data from the NotificationMessage? Right now we have a getMessageContent() that is overloaded to search by index or by element qname - if free text were permitted under <wsnt:Message/>, we would need to generalize the API further to be based on DOM Node rather than DOM Element, and make all the additional checks that come with that.
Can you do this? QName topicName = ... QName elementName = ... String payload = ... wsnCap.publish(topicName, XmlUtils.createElement(elementName, payload)); "Vinh Nguyen \(vinguye2\)" <[EMAIL PROTECTED]> wrote on 05/09/2007 04:32:53 AM: > Is there a way to publish a simple string as a notification message? > The NotificationProducer has various publish() methods, but ultimately > they all require the message to be in some form of Element. This > prevents the ability to publish simple types. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
