[SWS-571] Illegal SoapAction header: " Created: 21/Sep/09  Updated: 04/May/12  Resolved: 21/Sep/09

Status: Closed
Project: Spring Web Services
Component/s: Core
Affects Version/s: 1.5.8
Fix Version/s: 1.5.9

Type: Bug Priority: Major
Reporter: koen janssens Assignee: Arjen Poutsma
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: 0d
Time Spent: 10m
Original Estimate: Not Specified


It seems that spring ws generates an illegal soapaction if no explicit soapaction is provided: an unmatched double quote.

A quick look at the SoapUtils class shows the problem:

 public static String escapeAction(String soapAction) {
        if (soapAction == null) {
            soapAction = "";
        if (!soapAction.startsWith("\"")) {
            soapAction = "\"" + soapAction;
        if (!soapAction.endsWith("\"")) {
            soapAction = soapAction + "\"";
        return soapAction;

If you pass null as argument, it will return " instead of ""

Comment by Arjen Poutsma [ 04/May/12 ]

Closing old issues

Generated at Sun Jul 22 03:00:50 UTC 2018 using JIRA 7.9.0#79000-sha1:3ca552e944c2fe83b21589bc06f155b9b428cc2b.