Uploaded image for project: 'Spring Web Services'
  1. Spring Web Services
  2. SWS-687

Attachment content id is resetted by spring web service

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.5.7
    • Fix Version/s: 2.0.3
    • Component/s: Core
    • Labels:
      None

      Description

      Content id set from the end point or intercepter is being overrided by the spring ws api. Please tell me if this issue is fixed already in another version.

      axiomSoapMessage.addAttachment(
      "JTT001-CONTENT-007-TXT1", new File("C:\\files
      test.xml"));
      //Attachment att1= axiomSoapMessage.getAttachment("JTT001-CONTENT-007-TXT1");
      //System.out.println("content id of the attachment is working"+att1 != null);

      Iterator itr = axiomSoapMessage.getAttachments();
      Attachment att2 = null;
      while(itr.hasNext())

      { att2 = (Attachment)itr.next(); System.out.println("Content id$$$"+att2.getContentId()); }

      soapMessage.getSOAPPart().setContentId("CONTENT-SOAP-01");
      if (soapMessage.saveRequired())

      { soapMessage.saveChanges(); }

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        254d 19h 28m 1 Arjen Poutsma 06/Oct/11 4:41 AM
        Resolved Resolved Closed Closed
        211d 2h 22m 1 Arjen Poutsma 04/May/12 7:03 AM

          People

          • Assignee:
            arjen.poutsma Arjen Poutsma
            Reporter:
            jaise007 Jaise Thomas
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: