cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim Gritsenko" <vadim.gritse...@verizon.net>
Subject RE: [Q] How to match an empty query parameter ?WSDL
Date Tue, 23 Jul 2002 03:13:12 GMT
> From: Ivelin Ivanov [mailto:ivelin@apache.org]
> 
> 
> I am trying to create a WSDL file for the Feedback wizard to show that
it
> can be used a web service via HTTP GET binding.
> 
> What is an elegant way to match "?WSDL" in the sitemap. The request
matcher
> acts against the URI and doesn't recognize the query string. The
request
> parameter matcher on the other hand will only match parameters which
have
> values. Since the standard for exposing a WSDL descriptor for a
service is
> to add "?WSDL" to it, it won't be polite to require "?WSDL=true".
> 
> So, in the wizard sitemap, I match
> 
> <map:match pattern="">
> ... for the actual wizard ...
> 
> how do I do this:
> 
> <map:match pattern="?WSDL">
> ... to display the WSDL file ...

Works *just* fine:

      <map:match pattern="x">
        <map:match type="request" pattern="WSDL">
          <map:redirect-to uri="welcome"/>
        </map:match>
      </map:match>

With URL: http://localhost:8080/cocoon/x?WSDL

(?wsdl does not work though: matcher is case-sensitive)


Vadim



---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message