File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Android Security Essentials Live Lessons this week in the Android 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>
Similar Threads
Creating Service and Client using AXIOM
Trying to create a java web service client using axis2
Invoking Live Search Web Service - via Axis Client -error AxisFault connection abort
how to consume a webservice using axis2
How to improve the performance of web service