1 16 package org.apache.axis2.saaj; 17 18 import javax.xml.soap.MessageFactory ; 19 import javax.xml.soap.MimeHeaders ; 20 import javax.xml.soap.SOAPException ; 21 import javax.xml.soap.SOAPMessage ; 22 import java.io.IOException ; 23 import java.io.InputStream ; 24 25 31 public class MessageFactoryImpl extends MessageFactory { 32 33 36 public SOAPMessage createMessage() throws SOAPException { 37 SOAPEnvelopeImpl env = new SOAPEnvelopeImpl(); 38 SOAPMessageImpl message = new SOAPMessageImpl(env); 39 return message; 40 } 41 42 45 public SOAPMessage createMessage(MimeHeaders mimeheaders, 46 InputStream inputstream) throws IOException , SOAPException { 47 SOAPMessageImpl message = new SOAPMessageImpl(inputstream, false,mimeheaders); 49 return message; 50 } 51 52 } 53 | Popular Tags |