Announcement Announcement Module
Collapse
No announcement yet.
Spring ws assumes protocol\scheme to be in lower case. Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring ws assumes protocol\scheme to be in lower case.

    I use spring ws 1.5.9. I act as webservice client. The user has option to provide the end point URL. Sometime we see that user enter HTTPS and HTTP instead of https and http. This causing problem in spring ws.

    I was able to debug and find out, that in AbstractHttpWebServiceMessageSender has following check

    public boolean supports(URI uri) {
    return uri.getScheme().equals(HttpTransportConstants.HTTP _URI_SCHEME) ||
    uri.getScheme().equals(HttpTransportConstants.HTTP S_URI_SCHEME);
    }

    The constants are defines as -->

    /** The "http" URI scheme. */
    String HTTP_URI_SCHEME = "http";

    /** The "https" URI scheme. */
    String HTTPS_URI_SCHEME = "https";

    So protocol or scheme are always assumed be in lower case.

    Should this be fixed in the framework? Any thoughts?

    Thanks
    Shri

  • #2
    Spring ws experts any thoughts on this?

    Comment

    Working...
    X