1 16 package org.apache.axis.soap; 17 18 import org.apache.axis.Message; 19 import org.apache.axis.message.SOAPEnvelope; 20 21 import javax.xml.soap.MimeHeaders ; 22 import javax.xml.soap.SOAPException ; 23 import javax.xml.soap.SOAPMessage ; 24 import java.io.IOException ; 25 import java.io.InputStream ; 26 27 32 public class MessageFactoryImpl extends javax.xml.soap.MessageFactory { 33 51 public SOAPMessage createMessage() throws SOAPException { 52 SOAPEnvelope env = new SOAPEnvelope(); 53 env.setSAAJEncodingCompliance(true); 54 Message message = new Message(env); 55 message.setMessageType(Message.REQUEST); 56 return message; 57 } 58 59 74 public SOAPMessage createMessage( 75 MimeHeaders mimeheaders, InputStream inputstream) 76 throws IOException , SOAPException { 77 Message message = new Message(inputstream, false, mimeheaders); 78 message.setMessageType(Message.REQUEST); 79 return message; 80 } 81 } 82 | Popular Tags |