Skip to content

Illegal SoapAction header: " [SWS-571] #691

@gregturn

Description

@gregturn

koen janssens opened SWS-571 and commented

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


Affects: 1.5.8

Referenced from: commits 26ea243

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions