[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 Fri Oct 19 04:56:40 UTC 2018 using JIRA 7.9.2#79002-sha1:3bb15b68ecd99a30eb364c4c1a393359bcad6278.