package mypacked; import java.math.BigDecimal; import javax.activation.DataHandler; import javax.jws.WebMethod; import javax.jws.WebParam; import javax.jws.WebService; import javax.xml.bind.annotation.XmlMimeType; import javax.xml.ws.BindingType; import javax.xml.ws.soap.MTOM; import javax.xml.ws.soap.SOAPBinding; @WebService(targetNamespace = "http...tempuri.org", portName = "TestWSSoap12HttpPort") // NOT SURE WHAT TO DO HERE ? @BindingType(SOAPBinding.SOAP12HTTP_BINDING) // NOT SURE IS THIS CORRECT ? @MTOM // CAN I USE THIS IN MY VERSION AND WITH JAX-RPC ? public class upload_file { @WebMethod public BigDecimal createJournal(@WebParam(name = "journal") String journal) { return null ; } @WebMethod public void attachFile( @WebParam(name = "id") BigDecimal id, @WebParam(name = "filename") BigDecimal filename, @WebParam(name = "data") @XmlMimeType("application/octet-stream") DataHandler data) { } } ------------------------------------------------------------------------------------------------- create or replace PACKAGE BODY JANIS AS function upload_file(session_id in number, upload_id in number) return xmltype AS temp varchar2(4000); crlf char(2):=chr(13)||chr(10); BEGIN if upload_id is null then raise_application_error(-20032,''); end if; temp:=''||crlf; temp:=temp||' '||crlf; temp:=temp||' '||crlf; temp:=temp||' '||crlf; temp:=temp||' '||crlf; temp:=temp||' '||crlf; temp:=temp||' '||crlf; temp:=temp||' '||crlf; temp:=temp||' '||crlf; temp:=temp||' '||crlf; temp:=temp||' '||crlf; temp:=temp||' '||crlf; temp:=temp||' '||crlf; temp:=temp||' '||crlf; temp:=temp||' '||crlf; temp:=temp||' '||crlf; temp:=temp||' '||crlf; temp:=temp||' '||crlf; temp:=temp||' '||crlf; temp:=temp||' '||crlf; temp:=temp||' '||crlf; temp:=temp||' '||crlf; temp:=temp||' '||crlf; temp:=temp||' '||crlf; temp:=temp||' '||crlf; temp:=temp||' '||crlf; temp:=temp||' '||crlf; temp:=temp||' '||crlf; temp:=temp||' '||crlf; temp:=temp||' '||crlf; temp:=temp||' '||crlf; temp:=temp||' '||crlf; temp:=temp||' '||crlf; temp:=temp||' '||crlf; temp:=temp||' '||crlf; temp:=temp||' '||crlf; temp:=temp||' '||crlf; temp:=temp||' '||crlf; temp:=temp||' '||crlf; temp:=temp||' '||crlf; temp:=temp||' '||crlf; temp:=temp||' '||crlf; temp:=temp||' '||crlf; temp:=temp||' '||crlf; temp:=temp||' '||crlf; temp:=temp||' '||crlf; temp:=temp||' '||crlf; temp:=temp||' '||crlf; temp:=temp||' '||crlf; temp:=temp||' '||crlf; temp:=temp||' '||crlf; temp:=temp||' '||crlf; temp:=temp||' '||crlf; temp:=temp||' '||crlf; temp:=temp||' '||crlf; temp:=temp||' '||crlf; temp:=temp||' '||crlf; temp:=temp||' '||crlf; temp:=temp||' '||crlf; temp:=temp||' '||crlf; temp:=temp||' '||crlf; return (xmltype(temp)); exception when others then if sqlcode=-20031 then raise_application_error(-20031,'...'); elsif sqlcode=-20032 then raise_application_error(-20032,'...'); elsif sqlcode=-20033 then raise_application_error(-20033,'...'); elsif sqlcode=-20036 then raise_application_error(-20036,'...'); else raise_application_error(-20099,'...'); end if; END upload_file; END JANIS;