This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Web Services and the fly likes axis2-deployed service receives messages wrapped in <extraElement> tag?  axiom? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "axis2-deployed service receives messages wrapped in <extraElement> tag?  axiom?" Watch "axis2-deployed service receives messages wrapped in <extraElement> tag?  axiom?" New topic
Author

axis2-deployed service receives messages wrapped in <extraElement> tag? axiom?

Chris Riffle
Greenhorn

Joined: Dec 30, 2005
Posts: 18
I've implemented a service and deployed it to axis2.

When I receive the message with an XMLStreamReader and then write it to a file with an XMLStreamWriter, the entire message is wrapped with an <extraElement> tag.

Any ideas on what is causing this?

I get the incoming message with an XmlStreamReader like this:

XMLStreamReader xmlStreamReader = notify.getPullParser(new QName(
"namespace", "prefix"));

I have different values in the QName parameters for the namespace, but I'm still learning about qnames so I need to learn the significance of what I should specify in the qname when getting the pullParser -- if it's supposed to correspond to a root namespace in my expected incoming message?
Thanks!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: axis2-deployed service receives messages wrapped in <extraElement> tag? axiom?