Hi Yuhan

I ran into this problem once and the only way to get around this is to not use 
/services in the URL for your services if you can't avoid /services in your 
parameters (it's a parser bug iirc). To do this using say "/data" instead, do 
the following

In tomcat/webapps/ROOT/WEB-INF/conf/axis2.xml: find the servicePath parameter, 
and uncomment it and set it to data

<parameter name="servicePath">data</parameter>

In tomcat/webapps/ROOT/WEB-INF/web.xml add this after AxisServlet has been 
defined
    <!-- allow use of data instead of services -->
    <servlet-mapping>
        <servlet-name>AxisServlet</servlet-name>
        <url-pattern>/data/*</url-pattern>
    </servlet-mapping>

hth
charles

On May 18, 2011, at 3:38 PM, Yuhan Zhang wrote:

> Hi all,
> 
> I am having some trouble on passing parameters to an axis2 web service.
> 
> My parameter is an escaped url:
>      
> http://localhost:8080/services/UrlCrawlerService/crawl?depth=1&url=http%3A//www.ralphs.com/services/Pages/coinstar.aspx&url=https%3A//mail.google.com
> 
> It gives me an error saying:
>      The service cannot be found for the endpoint reference (EPR) 
> /services/UrlCrawlerService/crawl?depth=1&url=http%3A//www.ralphs.com/services/Pages/coinstar.aspx&url=https%3A//mail.google.com
> 
> However, if the perameter doesn't include the "/services" part, it is able to 
> proceed normally:
>      
> http://localhost:8080/services/UrlCrawlerService/crawl?depth=1&url=http%3A//www.ralphs.com/
> 
> Is there a way to configure axis2 so that it allows "/services" to appear in 
> the parameter?
> 
> My servlet-mapping looks like this:
>     <servlet-mapping>
>         <servlet-name>AxisServlet</servlet-name>
>         <url-pattern>/services/*</url-pattern>
>     </servlet-mapping>
> 
> Thanks.
> 
> Yuhan

Reply via email to