aspose file tools
The moose likes Web Services and the fly likes  Bad envelope tag:  html Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark " Bad envelope tag:  html" Watch " Bad envelope tag:  html" New topic
Author

Bad envelope tag: html

Gopesh Sharma
Greenhorn

Joined: Nov 12, 2002
Posts: 18
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


SCJP, SCWCD, Brain Bench Certified in Java 1.2, Web Methods Certified Developer, HP Star Certified in HP Net Servers, CNE, CNA.
Rr Kumaran
Ranch Hand

Joined: Sep 17, 2001
Posts: 548
please provide your specific environment details like axis version, jrun etc. and complete error stack trace ...


RR Kumaran
SCJP 1.4
Donna Reschke
Greenhorn

Joined: Jun 20, 2001
Posts: 17
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

Joined: Jun 20, 2001
Posts: 17
Also I am using JRun 4.0 which I believe comes with Axis 1.1
Thanks, Donna
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Bad envelope tag: html
 
Similar Threads
Core Java Client vs WebServer Client
16th Nov Riddle
Where should the logic be?
WA #1.....word association
Exception using Web Client