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

        jaise007 Jaise Thomas created issue -
        arjen.poutsma Arjen Poutsma made changes -
        Field Original Value New Value
        Assignee Arjen Poutsma [ arjen.poutsma ]
        Fix Version/s 2.0.3 [ 12197 ]
        arjen.poutsma Arjen Poutsma made changes -
        Resolution Cannot Reproduce [ 5 ]
        Status Open [ 1 ] Resolved [ 5 ]
        arjen.poutsma Arjen Poutsma made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          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: