KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > wsdl > attachments > B1Impl


1 /**
2  * B1Impl.java
3  *
4  * This file was auto-generated from WSDL
5  * by the Apache Axis WSDL2Java emitter.
6  */

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