1 /**2 * AttachmentsBindingImpl.java3 *4 * This file was auto-generated from WSDL5 * by the Apache Axis WSDL2Java emitter.6 */7 8 package test.wsdl.interop4.groupG.dime.rpc;9 10 import org.apache.axis.AxisEngine;11 import org.apache.axis.Message;12 13 import java.util.Collection ;14 15 public class AttachmentsBindingImpl implements test.wsdl.interop4.groupG.dime.rpc.AttachmentsPortType{16 public org.apache.axis.attachments.OctetStream echoAttachment(org.apache.axis.attachments.OctetStream in) throws java.rmi.RemoteException {17 return in;18 }19 20 public org.apache.axis.attachments.OctetStream[] echoAttachments(org.apache.axis.attachments.OctetStream in[]) throws java.rmi.RemoteException {21 return in;22 }23 24 public byte[] echoAttachmentAsBase64(org.apache.axis.attachments.OctetStream in) throws java.rmi.RemoteException {25 return in.getBytes();26 }27 28 public org.apache.axis.attachments.OctetStream echoBase64AsAttachment(byte[] in) throws java.rmi.RemoteException {29 Message response = AxisEngine.getCurrentMessageContext().getResponseMessage();30 response.getAttachmentsImpl().setSendType(org.apache.axis.attachments.Attachments.SEND_TYPE_DIME);31 return new org.apache.axis.attachments.OctetStream(in);32 }33 34 public void echoUnrefAttachments() throws java.rmi.RemoteException {35 org.apache.axis.Message reqMsg = AxisEngine.getCurrentMessageContext().getRequestMessage();36 Collection attachments = reqMsg.getAttachmentsImpl().getAttachments();37 org.apache.axis.Message respMsg = AxisEngine.getCurrentMessageContext().getResponseMessage();38 respMsg.getAttachmentsImpl().setAttachmentParts(attachments);39 }40 41 public java.lang.String echoAttachmentAsString(java.lang.String in) throws java.rmi.RemoteException {42 return in;43 }44 }45