This week's book giveaway is in the JDBC forum.
We're giving away four copies of Make it so: Java DB Connections & Transactions and have Marcho Behler on-line!
See this thread for details.
The moose likes Web Services and the fly likes Undeclared prefix 'soapenv' for element <soapenv:Envelope> Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark " Undeclared prefix Watch " Undeclared prefix New topic
Author Undeclared prefix 'soapenv' for element <soapenv:Envelope>

Praveen Kumar Jayaram
Ranch Hand

Joined: Jul 14, 2008
Posts: 56

Am trying to access a SharePoint webservice from Axis2 Java client in Linux box.....
The code works fine in Windows but in Linux I get a Exception: Undeclared prefix 'soapenv' for element <soapenv:Envelope>
at com.ctc.wstx.stax.WstxNsStreamWriter.writeStartOrEmpty(
at com.ctc.wstx.stax.WstxNsStreamWriter.writeStartElement(
at org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.internalSerialize(
at org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(
... 32 more

Here is the code:

Any idea why this can happen?

I agree. Here's the link:
subject: Undeclared prefix 'soapenv' for element <soapenv:Envelope>
It's not a secret anymore!