• Post Reply Bookmark Topic Watch Topic
  • New Topic

Bad envelope tag: html

 
Gopesh Sharma
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to run axis AdminClient to deploy my webservice in JRun4. I get this error " Bad envelope tag: html" each time. Can anyone let me know what's going on?

Thanks,
Gopesh
 
Rr Kumaran
Ranch Hand
Posts: 548
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
please provide your specific environment details like axis version, jrun etc. and complete error stack trace ...
 
Donna Reschke
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you ever figure this problem out? I am getting the same error. I've posted my code below. I get the "SAXException Bad Envelope tag: html" error on the call.invoke method. Any ideas?
Thanks, Donna


public String invokeService(InputStream bale)
throws org.xml.sax.SAXException, Exception {

String action = "BaleSubmission";
StringWriter w = new StringWriter();
Service service = new Service();

Call call = (Call)service.createCall();call.setTargetEndpointAddress(new URL(url));
int iTimeout = 60*1000*5;
Integer ITimeout = new Integer(iTimeout);
call.setTimeout(ITimeout); // equal to 5 minutes

call.setOperationName("doSubmission");
call.setOperationStyle(Style.MESSAGE);

SOAPEnvelope env = new SOAPEnvelope(bale);
SOAPBodyElement bodyIn = env.getFirstBody();

Document inputdoc = bodyIn.getAsDocument();

Object obj = call.invoke( new Object[] { inputdoc } );

MessageContext ctx = call.getMessageContext();
Message outMsg = ctx.getResponseMessage();
SOAPEnvelope envelope = outMsg.getSOAPEnvelope();
SOAPBodyElement bodyOut = envelope.getFirstBody();

SerializationContextImpl sc =
new SerializationContextImpl(w, ctx);
bodyOut.output(sc);

return w.toString();
}
 
Donna Reschke
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also I am using JRun 4.0 which I believe comes with Axis 1.1
Thanks, Donna
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!