Skip to content

Attachment content id is resetted by spring web service [SWS-687] #783

@gregturn

Description

@gregturn

Jaise Thomas opened SWS-687 and commented

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();
	}

Affects: 1.5.7

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions