Skip to content

Commit 2bbc0c5

Browse files
committed
Remove attachments from incoming requests
1 parent 161529d commit 2bbc0c5

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/src/main/java/org/niis/testservice/TestServiceEndpoint.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ protected ServiceResponse handleRequest(ServiceRequest request) throws SOAPExcep
9595
ServiceResponseSerializer serializer;
9696
ServiceResponse<TestServiceRequest, TestServiceResponse> response;
9797

98+
// Remove all attachments from the request message - they're not needed
99+
request.getSoapMessage().removeAllAttachments();
100+
98101
// Process services by service code
99102
if ("testService".equals(request.getProducer().getServiceCode())) {
100103
// Process "helloService" service

0 commit comments

Comments
 (0)