[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


 Description   

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 ""



 Comments   
Comment by Arjen Poutsma [ 04/May/12 ]

Closing old issues

Generated at Sun Dec 17 06:07:23 UTC 2017 using JIRA 6.4.14#64029-sha1:ae256fe0fbb912241490ff1cecfb323ea0905ca5.