1 7 8 package test.wsdl.attachments; 9 10 import javax.mail.MessagingException ; 11 import javax.mail.internet.MimeBodyPart ; 12 import javax.mail.internet.MimeMultipart ; 13 14 public class B1Impl implements test.wsdl.attachments.Pt1 { 15 16 private MimeMultipart createMimeMultipart(String data) throws MessagingException { 17 MimeMultipart mpRoot = new MimeMultipart ("mixed"); 19 20 MimeBodyPart mbp1 = new MimeBodyPart (); 22 mbp1.setText(data); 23 mpRoot.addBodyPart(mbp1); 24 return mpRoot; 25 } 26 27 public java.lang.String getCompanyInfo2(float result, java.lang.String docs, java.awt.Image logo) throws java.rmi.RemoteException { 28 return docs; 29 } 30 31 public void inputPlainText(java.lang.String body) throws java.rmi.RemoteException { 32 } 33 34 public java.lang.String inoutPlainText(java.lang.String body) throws java.rmi.RemoteException { 35 return body; 36 } 37 38 public java.lang.String echoPlainText(java.lang.String body) throws java.rmi.RemoteException { 39 return body; 40 } 41 42 public java.lang.String outputPlainText() throws java.rmi.RemoteException { 43 return "OutputPlainText"; 44 } 45 46 public void inputMimeMultipart(javax.mail.internet.MimeMultipart body) throws java.rmi.RemoteException { 47 } 48 49 public javax.mail.internet.MimeMultipart inoutMimeMultipart(javax.mail.internet.MimeMultipart body) throws java.rmi.RemoteException { 50 return body; 51 } 52 53 public javax.mail.internet.MimeMultipart echoMimeMultipart(javax.mail.internet.MimeMultipart body) throws java.rmi.RemoteException { 54 return body; 55 } 56 57 public javax.mail.internet.MimeMultipart outputMimeMultipart() throws java.rmi.RemoteException { 58 try { 59 return createMimeMultipart("outputMimeMultipart"); 60 } catch (MessagingException me) { 61 throw new java.rmi.RemoteException (me.getMessage(), me); 62 } 63 } 64 65 public org.apache.axis.attachments.OctetStream echoAttachment(org.apache.axis.attachments.OctetStream in) throws java.rmi.RemoteException { 66 return in; 67 } 68 } 69 | Popular Tags |