[mule-user] No query handler found for URl - MUle 2.0 and CXF

0 views
Skip to first unread message

Relja

unread,
Apr 22, 2008, 8:42:09 PM4/22/08
to us...@mule.codehaus.org

Hi,
I will need help with using a CXF transport with a mule client using Mule
2.0.
I have tested my CXF endpoint using soapui and Flex UI and it is working
fine.
Also, using vm my endpoint is working fine.

When I use CXF soap transport I have a error: “No query handler found for
URl”.

This is my java code called from JSP page:

String [] param = {login.getId().getServiceId(),login.getId().getLogin()};
String oper =
"http://localhost:65101/services/LoginService?method=getLogin";
response = getMuleClient().send(oper, param, null);

Mule config:

<?xml version="1.0" encoding="UTF-8"?>
<mule xmlns="http://www.mulesource.org/schema/mule/core/2.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:spring="http://www.springframework.org/schema/beans"
xmlns:soap="http://www.mulesource.org/schema/mule/soap/2.0"
xmlns:vm="http://www.mulesource.org/schema/mule/vm/2.0"
xmlns:cxf="http://www.mulesource.org/schema/mule/cxf/2.0"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://www.mulesource.org/schema/mule/core/2.0
http://www.mulesource.org/schema/mule/core/2.0/mule.xsd
http://www.mulesource.org/schema/mule/soap/2.0
http://www.mulesource.org/schema/mule/soap/2.0/mule-soap.xsd
http://www.mulesource.org/schema/mule/vm/2.0
http://www.mulesource.org/schema/mule/vm/2.0/mule-vm.xsd
http://www.mulesource.org/schema/mule/cxf/2.0
http://www.mulesource.org/schema/mule/cxf/2.0/mule-cxf.xsd">
<description>
</description>

<spring:bean id="loginComponent"
class="org.openiam.idm.esb.mule.ws.LoginComponent">
<spring:property name="loginService" ref="loginService" />
</spring:bean>


<!-- Mule Services
The Mule model inits and manages your UMO components
-->

<model name="openIAMServices">
<service name="LoginService">
<inbound>
<inbound-endpoint
address="axis:http://localhost:65091/services">
<soap:http-to-soap-request-transformer/>
</inbound-endpoint>

<inbound-endpoint
address="axis:http://localhost:65092/services"/>

<inbound-endpoint
address="cxf:http://localhost:65101/services">
<soap:http-to-soap-request-transformer/>
</inbound-endpoint>

<inbound-endpoint
address="cxf:http://localhost:65102/services">
</inbound-endpoint>

<vm:inbound-endpoint address="vm://login" />

</inbound>
<!--
<component>
<spring-object bean="loginComponent"/>
</component>
-->
<pooled-component>
<prototype-object
class="org.openiam.idm.esb.mule.ws.LoginComponent">
<properties>
<spring:entry key="loginService">
<spring:ref bean="loginService"/>
</spring:entry>
</properties>
</prototype-object>
</pooled-component>

</service>
</model>
</mule>

I have attached my tomcat log file too.

Regards,
Relja

http://www.nabble.com/file/p16828194/error-mule20-cxf-tomcat.txt
error-mule20-cxf-tomcat.txt

-----

Regards,
Relja
--
View this message in context: http://www.nabble.com/No-query-handler-found-for-URl---MUle-2.0-and-CXF-tp16828194p16828194.html
Sent from the Mule - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email


Marie Rizzo

unread,
Apr 24, 2008, 10:51:38 AM4/24/08
to us...@mule.codehaus.org
Hi

As far as I know, the invocation URL when using http should be in the
following format

http://host/service/OPERATION/PARAM_NAME/PARAM_VALUE

Regards
Marie Rizzo

---------------------------------------------------------------------

Relja

unread,
May 18, 2008, 3:36:03 PM5/18/08
to us...@mule.codehaus.org
Hi Marie, Thanks for replay. I have tried that also, but I had an error executing this: http://localhost:65101/services/LoginService/getLoginByUser/userId/3000 After debugging I have found that my Mule service endpoint should be defined with “LoginService” at the end - like this service description below: This below Mule service endpoint will not work because In CXF class org.apache.cxf.interceptor.URIMappingInterceptor a handleMessage method is parsing a method name as “LoginService” and not as “getLoginByUser”. I have a question: • getLoginByUser method is returning a string – SOAP Envelope. I would like to get back my ‘Login.java’ class (same return value when this method is executed using ‘vm’ transport) Regards, Relja
Marie Rizzo wrote:
Hi As far as I know, the invocation URL when using http should be in the following format http://host/service/OPERATION/PARAM_NAME/PARAM_VALUE Regards Marie Rizzo Relja wrote: > Hi, > I will need help with using a CXF transport with a mule client using Mule > 2.0. > I have tested my CXF endpoint using soapui and Flex UI and it is working > fine. > Also, using vm my endpoint is working fine. > > When I use CXF soap transport I have a error: “No query handler found for > URl”. > > This is my java code called from JSP page: > > String [] param = {login.getId().getServiceId(),login.getId().getLogin()}; > String oper = > "http://localhost:65101/services/LoginService?method=getLogin"; > response = getMuleClient().send(oper, param, null); > > Mule config: > > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xmlns:spring="http://www.springframework.org/schema/beans" > xmlns:soap="http://www.mulesource.org/schema/mule/soap/2.0" > xmlns:vm="http://www.mulesource.org/schema/mule/vm/2.0" > xmlns:cxf="http://www.mulesource.org/schema/mule/cxf/2.0" > xsi:schemaLocation=" > http://www.springframework.org/schema/beans > http://www.springframework.org/schema/beans/spring-beans-2.0.xsd > http://www.mulesource.org/schema/mule/core/2.0 > http://www.mulesource.org/schema/mule/core/2.0/mule.xsd > http://www.mulesource.org/schema/mule/soap/2.0 > http://www.mulesource.org/schema/mule/soap/2.0/mule-soap.xsd > http://www.mulesource.org/schema/mule/vm/2.0 > http://www.mulesource.org/schema/mule/vm/2.0/mule-vm.xsd > http://www.mulesource.org/schema/mule/cxf/2.0 > http://www.mulesource.org/schema/mule/cxf/2.0/mule-cxf.xsd"> > > > > class="org.openiam.idm.esb.mule.ws.LoginComponent"> > > > > > > > > > > address="axis:http://localhost:65091/services"> > > > > address="axis:http://localhost:65092/services"/> > > address="cxf:http://localhost:65101/services"> > > > > address="cxf:http://localhost:65102/services"> > > > > > > > > class="org.openiam.idm.esb.mule.ws.LoginComponent"> > > > > > > > > > > > > > I have attached my tomcat log file too. > > Regards, > Relja > > http://www.nabble.com/file/p16828194/error-mule20-cxf-tomcat.txt > error-mule20-cxf-tomcat.txt > > ----- > > Regards, > Relja > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

Regards,
Relja


View this message in context: Re: No query handler found for URl - MUle 2.0 and CXF
Reply all
Reply to author
Forward
0 new messages