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

        No work has yet been logged on this issue.

          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: