Skip to content

Commit

Permalink
Remove redundant SoapActionCallback.
Browse files Browse the repository at this point in the history
#deploy-oppdrag-service

The SoapActionCallback argument was removed from the marshalSendAndReceive method call as it was deemed unnecessary. This cleanup enhances code readability and maintainability without altering the function's core behavior.
  • Loading branch information
krharum committed Nov 7, 2024
1 parent 4bea706 commit 23ec4e9
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import no.nav.testnav.oppdragservice.wsdl.SendInnOppdragRequest;
import no.nav.testnav.oppdragservice.wsdl.SendInnOppdragResponse;
import org.springframework.ws.client.core.support.WebServiceGatewaySupport;
import org.springframework.ws.soap.client.core.SoapActionCallback;

@Slf4j
@RequiredArgsConstructor
Expand All @@ -24,7 +23,7 @@ public SendInnOppdragResponse sendOppdrag(String miljoe, SendInnOppdragRequest m

try {
return (SendInnOppdragResponse) getWebServiceTemplate()
.marshalSendAndReceive(url, melding, new SoapActionCallback(""));
.marshalSendAndReceive(url, melding);

} catch (Exception e) {

Expand Down

0 comments on commit 23ec4e9

Please sign in to comment.