axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amila Chinthaka Suriarachchi (Commented) (JIRA)" <>
Subject [jira] [Commented] (AXIS2-5157) Able to access wsdl even if the "WSDL" is in uppercase.
Date Mon, 10 Oct 2011 09:18:30 GMT


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


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);

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:
>             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:!default.jspa
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message