1 55 package org.jboss.axis.soap; 56 57 import org.jboss.axis.Message; 58 import org.jboss.axis.message.SOAPEnvelopeAxisImpl; 59 60 import javax.xml.soap.MimeHeaders ; 61 import javax.xml.soap.SOAPException ; 62 import javax.xml.soap.SOAPMessage ; 63 import java.io.IOException ; 64 import java.io.InputStream ; 65 66 71 public class MessageFactoryImpl extends javax.xml.soap.MessageFactory 72 { 73 92 public SOAPMessage createMessage() throws SOAPException 93 { 94 SOAPEnvelopeAxisImpl env = new SOAPEnvelopeAxisImpl(); 95 env.setSAAJEncodingCompliance(true); 96 Message message = new Message(env); 97 message.setMessageType(Message.REQUEST); 98 return message; 99 } 100 101 117 public SOAPMessage createMessage(MimeHeaders mimeheaders, InputStream inputstream) 118 throws IOException , SOAPException 119 { 120 Message message = new Message(inputstream, false, mimeheaders); 121 message.setMessageType(Message.REQUEST); 122 return message; 123 } 124 } 125 | Popular Tags |