[
https://issues.apache.org/jira/browse/AXIS2-5157?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13123966#comment-13123966
]
Amila Chinthaka Suriarachchi commented on AXIS2-5157:
-----------------------------------------------------
I think you can use a tree set instead of
private static final Set<String> metadataQueryParamNames = new HashSet<String>(
Arrays.asList("wsdl2", "wsdl", "xsd", "policy"));
i.e
Comparator comparator = new Comparator(){
public int compare(Object o1, Object o2) {
String string1 = (String) o1;
String string2 = (String) o2;
return string1.compareToIgnoreCase(string2);
}
};
TreeSet treeSet = new TreeSet(comparator);
treeSet.add("wsdl2");
treeSet.add("wsdl");
treeSet.add("xsd");
treeSet.add("policy");
Then for
int wsdl2 = query.indexOf("wsdl2");
this should work.
int wsdl2 = query.toLowerCase().indexOf("wsdl2");
> Able to access wsdl even if the "WSDL" is in uppercase.
> -------------------------------------------------------
>
> Key: AXIS2-5157
> URL: https://issues.apache.org/jira/browse/AXIS2-5157
> Project: Axis2
> Issue Type: Improvement
> Components: transports
> Affects Versions: 1.7.0
> Reporter: Shameera Rathnayaka
> Assignee: Shameera Rathnayaka
> Priority: Minor
> Fix For: 1.7.0
>
> Attachments: AXIS2-5157.patch
>
>
> In Axis 1, we could access a WSDL even if the "WSDL" is in uppercase. But in
> Axis 2, we cannot access WSDL with upper case, It gives the following
> response in the browser.
> <soapenv:Reason><soapenv:Text xml:lang="en-US">The endpoint reference (EPR)
> for the Operation not found is /axis2/services/<service_name>?WSDL and the
> WSA Action = null. If this EPR was previously reachable, please contact the
> server administrator.</soapenv:Text></soapenv:Reason>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]