• Post Reply Bookmark Topic Watch Topic
  • New Topic

AxisFault SAXException Bad envelope tag: html when calling generated web client methods  RSS feed

Anurag Jai
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have generated client code for a 3rd party web service using the WSDL which they provided (I am unable to publish it here), using eclipse and Axis 1.4. This all seems to work ok (I have got services working in this
way before) but now when I try to call one of the web service methods - getAvailableIds() - I get and Axis Fault error:


faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultString: org.xml.sax.SAXException: Bad envelope tag: html
Followed by a long stack trace (my dev machine cannot be internet connected which is why I am not posting more of the stack trace)

Additionally, I do not have any implementation of the web service which I am calling. Instead I am using soapUI to simulate the web service (again generated from the WSDL).

I have debugged this as far as I can and I am stuck on the line (generated client code):

try{ java.lang.Object _resp = _call.invoke(new java.lang.Object[] {in});
If anyone has seen this before I would appreciate any help!

I have looked around quite a lot online and found some other posts with similar problems but none of these have helped:

SAXException: bad envelope tag - I am not using https or WebSphere App Server.

I have also looked at all of the first 15 google search results with the following search string:

AxisFault SAXException bad envelope tag html
Jesper de Jong
Java Cowboy
Posts: 16007
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This sounds like the webservice is returning a HTML page instead of a SOAP message.

Try entering the URL that you're using for the call to the webservice in a browser. Maybe you get a HTML page that shows an error message.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!