Hi all,
I am trying to retrieve a SOAP message from the http request.
I tried to create an instance of the SOAPMessage using
MessageFactory.createMessage(), I got a run-time exception.
The exception occurs only when I include the MIMEHeaders that are
retrieved from the SOAP Message.

I am extremely new to the java world. So any help or pointers will be helpful.

Thanks,
mg

---Class included ---
class CreateFactory extends JAXMServlet{
     private static final long serialVersionUID = 1L;

     public void process(HttpServletRequest request) throws IOException,
ServletException{

             Request base_request = (request instanceof Request) ?
(Request)request:HttpConnection.getCurrentConnection().getRequest();
             base_request.setHandled(true);

             try{
                     System.out.println("Inside process method");
                     MessageFactory mf = MessageFactory.newInstance();

                     MimeHeaders mimeHeaders = getHeaders(request);
                     ServletInputStream sInputStream =
request.getInputStream();

                     SOAPMessage sm = mf.createMessage(mimeHeaders,
sInputStream);
                     System.out.println(sm);

             } catch(SOAPException e){
                     System.out.println(e);
                     System.out.println("The SOAP Exception ...");
             }

     }
}

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to