On Wed, 2006-05-31 at 13:50 -0400, Mona Yazbeck wrote: > Hi Jaka, > > I get a compilation error when trying to call my constructor with the root > element. I guess it's because the constructor is waiting for a > MessageElement[] (an array). > cannot resolve symbol > symbol: constructor > UpdateListItemsUpdates(org.apache.axis.message.MessageElement) ok, I completely misunderstood you before.
so you want to have a MessageElement[] array that represents the children of the Method element you decribe in your original post? simple: MessageElement me[] = new MessageElement[3]; now for each me[0..2] create a new MessageElement: me[i] = new MessageElement(new QName(namespaceUri, elementName)); add appropriate attributes: me[i].addAttribute(namespaceUri, attributeName, attributeValue); finally, add text content of the element: me[i].addTextNode(contentOfTheElement); I believe this will create the appropriate MessageElements... regards, jaKa -- email: [EMAIL PROTECTED] w3: http://fish.homeunix.org/people/jaka --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
