-
Dec 20th, 2011, 11:13 AM
#1
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
-
Dec 28th, 2011, 01:57 PM
#2
Spring ws experts any thoughts on this?
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules