SOAP-attachments Problem

I have to implement a File Transfer Service from one application to the other application. Initially I thought to do it with socket programming. In that case I have to take care of all the details. Then I decided to use SOAP-attachments to transfer the files. I want to send the files as the attachments to a SOAP message, so that I need not do the low level stuff. But, I am not sure which is the best solution. The files which I send are very big like 10MB or 20MB. Is it good to send them as an attachments to SOAPMessage(Using JAXM) or to go for socket programming. Does JAXM support transfer of big files? Or, if you know any other better solution for transfer of files from application to application please suggest me.
Seenu.

Hi, did you ever get a response to your question or figure it out on your own? I'm about to decide the same thing and was trying to find information on large attachments to SOAP messages and whether it's a good idea or not. Specifically, I'm wondering if these large files are read completely into memory at any point or if the API is smart enough to cache...

Similar Messages

  • WLS7 WebServices SOAP with attachments problem

    I have implemented a WebService in Weblogic. If I use the standard Sun
              JAXM library to invoke the service without any attachments, it works
              fine. However, if I use the standard JAXM functionality to add a gif
              image to the message, Weblogic throws an exception (attached below)
              before it even invokes the handler class for my Web Service.
              Basically, the JAXM library does not insert the "start=..." element in
              the top level "Content-Type" HTTP header field. Should Weblogic cope
              with this, or is it not designed to work with the Sun JAXM library. I
              am using the latest version of the Sun WebServices Developers Kit and,
              hence, the latest version of the JAXM library. Do BEA recommend a
              different client library be used to invoke Weblogic WebServices? If
              so which one(s) are supported?
              I have another question. Assuming I can find a client which will
              deliver to Weblogic an HTTP SOAP mesage that it considers to be valid,
              how do attachments get passed to the "component" class? I understand
              how I could iterate through the mime segments / attachments from
              within the "handler", but I don't understand how / if attachments are
              passed onto the actual component class. Reading from the FAQ:
              Q. Does WebLogic Server 7.0 support SOAP Messages with Attachments?
              A. Yes. As long as the data type of the attachment is on the list of
              supported JAX-RPC data types, then WebLogic Server will automatically
              handle parameters to Web services that are SOAP attachments. If you
              want to do further processing of the attachment, you can use handlers
              to intercept the request and response SOAP message (which includes the
              attachment.)
              I get the impression that attachments are "magically" available to
              code within the component, but I don't understand the actual mechanics
              of this.
              Any thoughts would be gratefully received.
              Cheers,
              Steve
              javax.xml.soap.SOAPException: No start attachment specified in the
              Multipart/Rel
              ated document
              at weblogic.webservice.core.soap.SOAPMessageImpl.handleMimeMessage(SOAPM
              essageImpl.java:174)
              at weblogic.webservice.core.soap.SOAPMessageImpl.<init>(SOAPMessageImpl.
              java:118)
              at weblogic.webservice.core.soap.MessageFactoryImpl.createMessage(Messag
              eFactoryImpl.java:27)
              at weblogic.webservice.binding.soap.HttpServerBinding.receive(HttpServer
              Binding.java:50)
              at weblogic.webservice.core.DefaultWebService.invoke(DefaultWebService.j
              ava:216)
              at weblogic.webservice.server.servlet.ServletBase.serverSideInvoke(Servl
              etBase.java:362)
              at weblogic.webservice.server.servlet.WebServiceServlet.serverSideInvoke
              (WebServiceServlet.java:269)
              at weblogic.webservice.server.servlet.ServletBase.doPost(ServletBase.jav
              a:346)
              at weblogic.webservice.server.servlet.WebServiceServlet.doPost(WebServic
              eServlet.java:237)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
              at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
              (ServletStubImpl.java:1058)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              pl.java:401)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              pl.java:306)
              at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
              n.run(WebAppServletContext.java:5412)
              at weblogic.security.service.SecurityServiceManager.runAs(SecurityServic
              eManager.java:744)
              at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
              rvletContext.java:3086)
              at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
              pl.java:2544)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
              <08-Jan-03 15:22:54 GMT> <Error> <HTTP> <101017>
              <[ServletContext(id=2655643,nam
              e=mms_service_05.war,context-path=/mms_service_05)] Root cause of
              ServletExcepti
              on
              javax.xml.soap.SOAPException: No start attachment specified in the
              Multipart/Rel
              ated document
              at weblogic.webservice.core.soap.SOAPMessageImpl.handleMimeMessage(SOAPM
              essageImpl.java:174)
              at weblogic.webservice.core.soap.SOAPMessageImpl.<init>(SOAPMessageImpl.
              java:118)
              at weblogic.webservice.core.soap.MessageFactoryImpl.createMessage(Messag
              eFactoryImpl.java:27)
              at weblogic.webservice.binding.soap.HttpServerBinding.receive(HttpServer
              Binding.java:50)
              at weblogic.webservice.core.DefaultWebService.invoke(DefaultWebService.j
              ava:216)
              at weblogic.webservice.server.servlet.ServletBase.serverSideInvoke(Servl
              etBase.java:362)
              at weblogic.webservice.server.servlet.WebServiceServlet.serverSideInvoke
              (WebServiceServlet.java:269)
              at weblogic.webservice.server.servlet.ServletBase.doPost(ServletBase.jav
              a:346)
              at weblogic.webservice.server.servlet.WebServiceServlet.doPost(WebServic
              eServlet.java:237)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
              at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
              (ServletStubImpl.java:1058)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              pl.java:401)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              pl.java:306)
              at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
              n.run(WebAppServletContext.java:5412)
              at weblogic.security.service.SecurityServiceManager.runAs(SecurityServic
              eManager.java:744)
              at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
              rvletContext.java:3086)
              at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
              pl.java:2544)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
              >
              

    import javax.activation.DataHandler;
    public class EchoAttachmentService implements com.bea.jws.WebService
    static final long serialVersionUID = 1L;
    * @common:operation
    * @jws:protocol form-get="false" form-post="false"
    public String echoAttachment(DataHandler dh)
    return("***Service received DataHandler of type: " + dh.getContentType());
    Error Description:
    ERROR: EchoAttachment.jws:19: Java type DataHandler is unsupported over a web
    service.
    SUGGESTION: Use a supported type such as a class with public fields, a JavaBean,
    a primitive type, String, BigInteger/BigDecimal, Calendar, GDate/GDuration, QName,
    URI, byte[], or an XMLBeans type.

  • Retriving .doc and .rtf files in soap attachments

    Please help me
    I'm using JAXM to retrive soap attachments
    When i retrive txt files (.txt) it retrivs the content of the document
    without any problem but when i try to retrive .doc or rtf
    it gives content as
    java.io.FileInputStream@587c94
    (retrive attached files which are recived from client)
    how do i get the content from word or rtf document
    this is the way i tried to get the content
    while (it.hasNext()) {
    AttachmentPart ap = (AttachmentPart)it.next();
    contentType = ap.getContentType();
    content =(String)ap.getContent();
    p.println("content---->"+content);//wrriting to text file
    System.out.println("*** attachment content: " + content);
    thanks nams

    Here is the code I used to send and receive a PDF file as a SOAP attachment. Note that if the sender uses a DataHandler for the attachment's content, there's no need to set the MIME type explicitly because the DataHandler does it for you.
    * Sender
    // create the data source and data handler
    DataSource source = new FileDataSource("form.pdf");
    DataHandler handler = new DataHandler(source);
    // create attachment for message
    AttachmentPart attachment = message.createAttachmentPart(handler);
    // set content id (optional)
    attachment.setContentId("enrollment_form");
    // add attachment to message
    message.addAttachmentPart(attachment);
    // send message
    providerConnection.send(message);
    * Recipient
    public class Receiver extends JAXMServlet implements OnewayListener {
       public void onMessage(SOAPMessage message) {
          // get attachment
          Iterator it = message.getAttachments();
          AttachmentPart attachment = (AttachmentPart) it.next();
          if (attachment.getContentType().equals("application/pdf")) {
              // read contents into byte buffer
              ByteArrayInputStream contentStream =
                  (ByteArrayInputStream)attachment.getContent();
              // use standard Java I/O methods to save in file
              int bytesToRead = contentStream.available();
              byte[] buffer = new byte[bytesToRead];
              contentStream.read(buffer);
              // write buffer to new file
              FileOutputStream file = new FileOutputStream("form.pdf");
              file.write(buffer);
              file.close();
              log("Attachment " + attachment.getContentId() + " with type "
                  + attachment.getContentType() + " written to form.pdf");
          else {
              log("attachment content has MIME type " + attachment.getContentType()
                + ", Java type " + attachment.getContent().getClass());
    }

  • Accessing soap attachments

    i have writen a code to send soap attachments from client to server
    In the code below i 'm sending txt file and xml file from client to server
    when i see the value of msg.countAttachments();it 's value is 2 that mean two attachments are reciving with ut no problem
    now i want to save both attachments in servermachine c:/ directory how do i di that
    i tried to access the attachment like this
    java.util.Iterator it = msg.getAttachments();
    while (it.hasNext()) {
    AttachmentPart attachment = (AttachmentPart)it.next();
    Object content = attachment.getContent();
    for more clear below -client code attaching part
    FileDataSource fds = new FileDataSource(m_attachment);
    DataHandler dh = new DataHandler(fds);
    AttachmentPart ap1 = msg.createAttachmentPart(dh);
    msg.addAttachmentPart(ap1);
    AttachmentPart ap2 = msg.createAttachmentPart("Another Part","text/plain; charset=ISO-8859-1");
    msg.addAttachmentPart(ap2);
    msg.saveChanges();
    //create the endpoint and send the message
    URL endpoint = new URL("http://localhost:8080/jaxm-coffee-supplier/getPriceList");
    SOAPMessage response = con.call(msg, endpoint);
    Thanks

    Hello!
    I'm sure you already solved the problem you had and I hope you can help me out with my little problem. I want to create a file upload with a web service. I copied the code from sun's tutorial (and now from your post), but I constantly get the NullPointerException on the call:
    AttachmentPart attachment = msg.createAttachmentPart()
    (or AttachmentPart attachment = msg.createAttachmentPart(dataHandler);)
    Can you please tell me what's wrong with my code?
    Thnx in advanced, D
    (BTW here is my code:)
    import javax.xml.soap.MessageFactory;
    import javax.xml.soap.SOAPConnection;
    import javax.xml.soap.SOAPConnectionFactory;
    import javax.xml.soap.SOAPMessage;
    public class client01 {
         public static void main(String args[]) throws Exception, MalformedURLException {
              MessageFactory factory = MessageFactory.newInstance();
              Message msg = factory.createMessage();
              ConnectionFactory soapConnectionFactory =  ConnectionFactory.newInstance();
                    Connection con =  soapConnectionFactory.createConnection();
                   FileDataSource fds = new             
                   FileDataSource("C:"+File.separator+"image"+File.separator+"test01.jpg");
                DataHandler dh = new DataHandler(fds);
              AttachmentPart attachment = msg.createAttachmentPart(dh);
    (Here I get the Fatal server Error => NullPointerException)
       attachment.setContentId("attached_image");
                msg.addAttachmentPart(attachment);
                   msg.saveChanges();
                    URL endpoint = new      
              URL("http://localhost:9090/RKO/services/zmogljivost?method=stevilo&str=test");
                  SOAPMessage response = con.call(msg, endpoint);
               con.close();

  • Zip file as a SOAP attachment problem

    I have an application that sends a zip file as an attachment. I have the file stored on the server and before I send it, I delete and/or add some files in the archive. I use the zip util packages for the zip file editing. I encode it to base64 and then send it as an attachment using SAAJ.
    On the receiving end, I decode it and write it out to disk. Winzip opens the file ok, but when I try to open individual files I get either corrupted data or wrong crc errors. Some files open ok.
    For debugging right before I encode and send it, I write it out to a temp file. Using Winzip, I can open and access any file ok. When I compare this temp file with the response version, they match up. The file properties (size, compressed size, crc) match for those files I can't open.
    I use the com.sun.mail.util.BASE64EncoderStream and com.sun.mail.util.BASE64DecoderStream classes for the base64 operations.
    The errors are:
    1) Warning: the size of the extracted file (570) does not match the uncompressed size (63) recorded in the zip file
    or
    2) Error: invalid compressed data to inflate
    Any help would be greatly appreciated, or general advice for sending zips as SOAP attachments.

    Would you mind, can u send the code pls...

  • How to deal with SOAP attachments?

    Is there any information available on how to work with SOAP attachments? I am looking
    for a feature similar to what is available in other products where you can take a
    byte[] and map to image/jpg, application/octet-stream, etc... and have the tool create
    the appropriate message formats. How would I do this using WL Workshop? I could
    not find anything in the docs... is this supported?
    Thanks,
    Bob

    Easiest thing is to encode the contents of the binary object in the XML
    message as you suggest.
    I'd like to hear more about what you are trying to do as well -- we're
    planning on adding support for attachments in the next release, and I'd like
    to make sure we do it in a way that meets your needs.
    -C
    "Bob Hayden" <[email protected]> wrote in message
    news:[email protected]...
    >
    I am evaluating the capability of returning and consuming image/fileattachments through
    a web service. This is one of our high priority integration requirementsand must
    be available somehow through the framework we choose. Other productshave ways
    to do this through an IDE... if WorkShop is not going to directly supportthis then
    does anyone have any suggestions or examples on how this can be done in away that
    is still intuitive for a WorkShop user (in other words without rolling upyour sleeves
    and digging into JAX-RPC)? I suppose one could base64 it and add it tothe WorkShop-generated
    message as a String using the return XML map, but I would prefer toinvestigate a
    more standards-based approach.
    Is it just me or does the lack of support for SOAP attachments seem to bea serious
    missing piece from WL Workshop?
    -Bob
    "Raj Alagumalai" <[email protected]> wrote:
    Bob,
    WebLogic Workshop does not currently support SOAP attachments. However,
    please note
    that if you are developing your Web services using the APIs and services
    provided
    by J2EE and WebLogic Server directly, WebLogic Server does support SOAP
    attachments.
    Please refer to the following document for more Workshop FAQ's
    http://dev2dev.bea.com/resourcelibrary/faqdetail.jsp?productType=weblogic+w
    orkshop&highlight=faq
    >>
    Thanks
    Raj Alagumalai
    WebLogic Workshop Support
    "Bob Hayden" <[email protected]> wrote:
    Is there any information available on how to work with SOAP attachments?
    I am looking
    for a feature similar to what is available in other products where youcan
    take a
    byte[] and map to image/jpg, application/octet-stream, etc... and havethe
    tool create
    the appropriate message formats. How would I do this using WL Workshop?
    I could
    not find anything in the docs... is this supported?
    Thanks,
    Bob

  • How to pass SOAP Attachments with JAX-RPC Web Service

    I'm confused...
    This sample shows how to send/receive SOAP attachments by using the JAX-RPC Handler mechanism. Can somebody confirm if this is the preferred way to do this. I've seen an example wich does something like:
      public interface AttachmentService extends Remote {
        public String storeDocumentService(javax.activation.DataHandler dh, String filename) throws RemoteException;
      }and then uses JAX-RPC utilities to create wsdl, stubs and stuff. Does this have the same result, as what the OTN example shows (from an architecture perspective?
    Thx,
    Jan.

    Well, how an attachment is processed depends on your application logic...if your application logic requires to processing attachments and verify it before processing the SOAP message, handlers could be better option.
    If you need to process the attachment while processing the SOAP message, you can do it in the service implementation class.
    In both the cases you need to get access to SOAPMessage object and from there get the attachments with getAttachments method.

  • Mapping DataHandler for SOAP attachments

    Hi all.
    I'm working on a web service that uses SOAP attachments in WebLogic Workshop 8.1,
    but I'm having a bit of trouble testing. When I try to access the web service
    using the auto-generated client jar provided by workshop, I get the following
    error:
    java.rmi.RemoteException: web service invoke failed; nested exception is:
    javax.xml.soap.SOAPException: failed to serialize xml:weblogic.xml.sche
    ma.binding.SerializationException: mapping lookup failure. class=class javax.act
    ivation.DataHandler class context=TypedClassContext{schemaType=['http://www.w3.o
    rg/2001/XMLSchema']:base64Binary}
    I was under the impression that the DataHandler mapping was handled by BEA. Must
    I manually map the type in order to use SOAP attachments, or am I missing another
    vital step?
    I've attached the WSDL file for this service. Thanks.
    -Brian
    [WS_Import.wsdl]

    Hi Brian,
    I just created a .jws, client jar and standalone JAX-RPC static stub client, using
    the WSDL you attached. Everything seems to work in WLS 8.1 SP2. Is this the version
    you're using? I have attached a zip containing the static JAX-RPC static stub
    client, and the .jws. To test it in the WLW IDE, you'll need to create the following
    directories, in the WebLogic Server domain directory you use for WLW:
    DCTMWebServices/attachments
    The client just sends the certificate.war file, in the DataHandler dhContent argument.
    This file is located in the domain directory, you use for WLW. The .jws saves
    the attachment into the DCTMWebServices/attachments directory.
    Here's the command line I use to run the standalone client:
    c:\bea\home1\jdk141_05\jre\bin\java -classpath classes;lib\WS_Import.jar;C:\bea\home1\weblogic\platform81sp2\server\lib\webserviceclient+ssl.jar
    -Dweblogic.webservice.verbose=true -Dweblogic.webservice.binding.verbose=true
    DTCMWebServices.consumers.standalone.stub.WLWClient 2>stderr.out>stdout.out
    Regards,
    Mike Wooten
    "Brian McLoughlin" <[email protected]> wrote:
    >
    >
    >
    Hi all.
    I'm working on a web service that uses SOAP attachments in WebLogic Workshop
    8.1,
    but I'm having a bit of trouble testing. When I try to access the web
    service
    using the auto-generated client jar provided by workshop, I get the following
    error:
    java.rmi.RemoteException: web service invoke failed; nested exception
    is:
    javax.xml.soap.SOAPException: failed to serialize xml:weblogic.xml.sche
    ma.binding.SerializationException: mapping lookup failure. class=class
    javax.act
    ivation.DataHandler class context=TypedClassContext{schemaType=['http://www.w3.o
    rg/2001/XMLSchema']:base64Binary}
    I was under the impression that the DataHandler mapping was handled by
    BEA. Must
    I manually map the type in order to use SOAP attachments, or am I missing
    another
    vital step?
    I've attached the WSDL file for this service. Thanks.
    -Brian[brian2.zip]

  • DIME format for handling SOAP attachments

    Hi all,
    There is a proposal (I think by Microsoft) called the Direct Internet Message Encapsulation (DIME) format to handle SOAP attachments. This is a binary format which defines how to construct a single message with multiple payloads and it is suppose to be more efficient that MIME especially for large attachments.
    Does anybody know the status of this proposal?
    Thanks,
    Ken

    Hi, I'm also looking for a DIME java implementation,
    let me know if you find something
    maybe we will develop it ourselves

  • When to use SOAP Attachments

    Does anyone know of documentation that states what the maximum suggested SOAPBody size is before one should begin using a SOAP Attachment?
    thanks!

    Check this site:
    http://www.w3.org/TR/SOAP-attachments.html#MultipartRelated
    I am not sure if this is what you are referring to. I guess you may want to click the RFC specification links too.

  • WSDL-first Soap Attachments

    2 questions really:
    1) Is there a way to define soap attachments in a WSDL? How? Can I just use wsdlc then?
    2) Is there a way to access SOAP attachments if the WSDL doesn't describe them? Would I do this via a SOAP handler? Or is there another way?

    Hi,
    can you check the wsdlLocation attribute of the @WebService annotation in your ejb endpoint impl, its name should be same with the wsdl in the EJB-JAR.
    alternatively, you can modify the wsdl name in jar:/META-INF/wsdls/XXX.wsdl to allow it same with the attribute.
    HTH,
    Kevin

  • Trivial problem with SOAP attachments

    Hi,
    I'm writing a very simple standalone JAXM client which will send a SOAP message with attachments to a listening servlet. I can get the code to work for a SOAP message without attachments with no problems, but when I try to create an AttachmentPart object, there is a problem when running the code (there is an exception when I try to create an AttachmentPart object) even though the code compiles ok.
    It must be something really obvious, and I've tried copying examples from the JWSDP tutorial but to no avail! Any ideas welcome!
    import javax.xml.soap.*;
    import java.util.*;
    import java.net.URL;
    public class JAXMClient{
    public static void main(String[] args){
         String me = "Simon";
         try{
         SOAPConnectionFactory scFactory = SOAPConnectionFactory.newInstance();
         SOAPConnection con = scFactory.createConnection();
         MessageFactory factory = MessageFactory.newInstance();
         SOAPMessage message = factory.createMessage();
         // create attachment
         AttachmentPart attachment = message.createAttachmentPart();
         attachment.setContent(me, "text/plain");
         attachment.setContentId("my_name");
         message.addAttachmentPart(attachment);
         URL endpoint = new URL("http://localhost:8080/EGSO/TestServlet");
         System.out.println("Calling service....");
         SOAPMessage response = con.call(message,endpoint);
         System.out.println("Reply received!");
         response.writeTo(System.out);
         con.close();
         catch(Exception e){
         System.out.println("Error somewehere");

    I use the below code to add attachments (from JWSDP tutorial)
    StringBuffer urlSB = new StringBuffer();
    urlSB.append(req.getScheme()).append("://").append(req.getServerName());
    urlSB.append( ":" ).append( req.getServerPort() ).append( req.getContextPath() );
    String reqBase = urlSB.toString();
    AttachmentPart apText = msg.createAttachmentPart(new DataHandler(new URL(reqBase + "/test.html")));
                   apText.setContentType("text/html");
    msg.addAttachmentPart(apText);
    (where msg is the SOAPMessage, and the "test.html" file resides in your servlet container's ROOT dir (eg $TOMCAT_HOME/webapps/ROOT)
    Ben

  • SOAP attachments :: Error while downloading attachments more than 10MB

    Hi,
    We are getting the below error when downloading the attachments of size > 10mb.
    Client details:
    Java version: 1.6.0_05
    OS: SunOS
    OS version: 5.10
    OS architecture: sparc
    java.lang.OutOfMemoryError: Java heap space
    at java.util.Arrays.copyOf(Arrays.java:2786)
    at java.io.ByteArrayOutputStream.toByteArray(ByteArrayOutputStream.java:133)
    at com.sun.xml.internal.messaging.saaj.client.p2p.HttpSOAPConnection.readFully(HttpSOAPConnection.java:636)
    at com.sun.xml.internal.messaging.saaj.client.p2p.HttpSOAPConnection.post(HttpSOAPConnection.java:379)
    at com.sun.xml.internal.messaging.saaj.client.p2p.HttpSOAPConnection$PriviledgedPost.run(HttpSOAPConnection.java:169)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.xml.internal.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnection.java:140)
    at com.sun.sunit.webservice.soap.SOAPClient.invokeService(SOAPClient.java:94)
    at com.sun.sunit.webservice.soap.SOAPClient.invokeService(SOAPClient.java:69)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.sun.sunit.util.MethodUtil.invokeMethod(MethodUtil.java:74)
    at com.sun.sunit.util.MethodUtil.invokeMethod(MethodUtil.java:38)
    at java.lang.Thread.run(Thread.java:619)
    Download of large attachments used to work when code is 1.4.2 compiled and SAAJ is 1.2
    We have upgraded the code to 1.5 and using SAAJ 1.3 now.
    We are unable to download attachments > 10MB.
    Please let us know if we need to do any changes at SAAJ to fix this error ?
    Note : This message has been posted accidentally in Java Servlet and hence re-posting.
    Thanks.

    RaghuNaveen wrote:
    Download of large attachments used to work when code is 1.4.2 compiled and SAAJ is 1.2
    We have upgraded the code to 1.5 and using SAAJ 1.3 now.So, this problem is actually caused by SAAJ 1.3 or possibly Java 1.5?
    Try downgrading to SAAJ 1.2 first. If that doesn't help, then is it probably a bug in Java 1.5. But according to the stacktrace, I rather think it's a bug in SAAJ 1.3 (as mentioned in the previous topic).

  • File-soap-file : problem in getting Interface Mapping

    Hi
    I am doing file to Soap to file scenario by using BPM. But I have several methods in Web Service.I am using one method for my requir in that I have to trigger by using CharSoapIn and CharSoapout interfaces .
    I have created
    <i>Message mappings</i> 1 Sen_File_MT to CharSoapIn and 2. CharSoapout to Rec_File_MT.
    <i>Interface Mapping</i> 1. File to Soap and 2. Soap to File respectively.
    I know I have to create 3 receiver determinations.
    Problem is I am not finding out the Interface Mapping where I am configuring from BPM to Business Service.
    I am using Business Service I feel that I am going wrong some where  in adding the "Services".
    Anyone help me out..what would be the problem
    Thanks
    Shankar.

    Yes I am using Abs interfaces and I am following below block
    /people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
    Fig 13 I am using separatly FileRequest_MT to CharSoapIn and FileResponse_MT to CharSoapOut.
    But here instead of RFC I am using SOAP also I am using Business Service intead of Business System.
    I am unable to fine the Interface Mapping from BPM to Soap or BMP to File
    Thanks
    Shankar

  • SOAP receiver problems

    Hi Folks,
    I am sending data to the webservice using SOAP receiver. In the runtime workbench I can see the message as successfull, but the end user is claiming that , he didn't get the data from XI.
    What could be the possible reason for this?
    Where might the message lost?
    And for one message which is using SOAP receiver as communication channel , In the audit log I can see the steps as below:
    SOAP: request message entering the adapter with user J2EE_GUEST
    SOAP: completed the processing
    SOAP: continuing to response message
    SOAP: sending a delivery ack
    SOAP: sent a delivery ack
    The message was successfully delivered to the application using connection SOAP_http://sap.com/xi/XI/System.
    MP: Leaving module processor
    The message status set to DLVD.
    For other message I can see the log as :
    SOAP: request message entering the adapter with user J2EE_GUEST
    SOAP: completed the processing
    SOAP: continuing to response message
    SOAP: sending a delivery ack ...
    SOAP: sent a delivery ack
    MP: Leaving module processor
    The message was successfully delivered to the application using connection SOAP_http://sap.com/xi/XI/System.
    The message status set to DLVD.
    Both are using same communication channel. still u can see the difference in the steps that are exicuted (check leaving module processer line in both).
    Is it mandatory that the series of steps should be same for all the messages?
    I have 2 queries, please answer both......
    Thanks SPMD

    HI
    As a first test , import the wsdl shared by third party  in soap uI/MS infopath/xml spy , fill in the test data (preferably same which you are trying to post now) and do a test :- doing this you will get to know if there is any problem in the WS iteslf. if you get http 200 ok then posting happened and ask the third party to check if they got any request.
    If you have sync soap then you will be getting the desired response back to soap ui .
    Also check if you need to put soap action also check the content type if its text/xml or app/xml  some WS dont accept App/xml u may need to use message transformation bean in modules tab.
    if there is any connectivity at ntwrk level then please try  if you can trouble shoot using this blog
    /people/varadharajan.krishnasamy/blog/2007/01/09/troubleshooting-soap-message--xi
    Regards
    $rinivas

Maybe you are looking for

  • Order shipped from best buy but not received by UPS

    Hi, last Thursday the 19th i purchaced a new laptop from Bestbuy.com and on Friday it said it had shipped. Its now the end of the 25th and when i go to UPS to look at my tracking number it still says that a UPS shipping label has been created and tha

  • Want docs for Web Dynpro ABAP

    Hi All , Can anyone please send me the Docs or link for Web Dynpro ABAP . Thanks in advance Rahul

  • Many Ship to party assigned to 1 sold to party

    Hi guru's Can any 1 tell me what is the maximum number of ship to parties assigned to 1 sold to party. Also let us know if there is  limitation then what is the solution to extened the same.

  • How do you Arrange and sort Photos

    How can i arrange my photos and not have them come up in My Gallery in chronological order? Can i make multiple albums?

  • SOAP.connect in RE-enabled Reader doesnt work

    Hi, I created a form with Designer 7, connecting to a webservice via script, based on serveral samples found in this forum: var service = SOAP.connect(cWSURL); This works perfect in Acrobat 7. It is saved as dynamic pdf. When I right-enable this pdf