SOAP in Servlet
Hello.
I have a problem in Servlet for responding for a request.
I think I succeeded getting the soap request in my servlet.
And I'm stuck in sending my soap response back.
Is there anybody tell me exactlyhow to send my javax.xml.soap.SOAPMessage instance through HttpServletResopnse?
Please help me.
[346 byte] By [
ticanoa] at [2007-11-27 10:00:46]

# 1
If you use the Provider interface that is part of JAX-WS, all of the plumbing is done for you. Check out JAX-WS that is part of Project Metro at http://metro.dev.java.net.
You can do something like
@WebServiceProvider()
public class AddNumbersImpl implements Provider<SOAPMessage> {
public SOAPMessage invoke(SOAPMessage soapMessage) {
SOAPMessage response = ...;
return response;
}
}