You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by chris bannet <pr...@yahoo.com> on 2002/11/20 05:04:22 UTC

xml Message from Call

Hi everyone,

I have a stub generated using wsdl2java and I am
trying to get the xml message from the Call object
before sending it to the web-service (i.e. before
executing invoke()). This is what I was doing in
Apachesoap

StringWriter writer = new StringWriter();
call.buildEnvelope().marshall(writer , new
SOAPMappingRegistry());
StringBuffer buffer = writer .getBuffer();

This works perfectly fine and the buffer has the
message. Now I am using axis and trying to do the
same. I tried 
MessageContext con = call.getMessageContext();
Message mes = con.getMessage();

and similar methods like getRequestMessage() etc.. for
some reason I am getting mes object as null. Any ideas
how to get the xml from Call using axis...

Thanks in advance for help, Greatly appreciated..

Regards
Chris




__________________________________________________
Do you Yahoo!?
Yahoo! Web Hosting - Let the expert host your site
http://webhosting.yahoo.com