And you can edit $SMX_HOME/etc/org.ops4j.pax.logging.cfg
add
log4j.category.org.apache.servicemix=DEBUG
to turn debug log for servicemix code to get more log details
Freeman
On 2010-3-9, at 下午9:05, Freeman Fang wrote:
Hi,
Could you append the $SMX_HOME/data/karaf.log when you deploy SA and
send message? It would be more helpful.
Freeman
On 2010-3-9, at 下午8:43, smontico wrote:
Hi,
I'm developing a cxf component for servicemix 4 using the following
wsdl:
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:gr="http://com/crs/sag/service" xmlns:tns="http://com/crs/sag/service
"
name="validateLocation" targetNamespace="http://com/crs/sag/service">
<wsdl:types>
<xs:schema targetNamespace="http://com/crs/sag/service"
elementFormDefault="qualified">
<xs:include schemaLocation="ValidateLocationRQ.xsd"/>
<xs:include schemaLocation="ValidateLocationRS.xsd"/>
<xs:include
schemaLocation="../Common_Usage/HeaderRQ.xsd"/>
<xs:include
schemaLocation="../Common_Usage/HeaderRS.xsd"/>
</xs:schema>
</wsdl:types>
<wsdl:message name="sendValidateLocationInput">
<wsdl:part name="HeaderRQ" element="gr:HeaderRQ"/>
<!-- <wsdl:part name="ValidateLocationRQ"
element="gr:ValidateLocationRQ"/> -->
</wsdl:message>
<wsdl:message name="sendValidateLocationOutput">
<wsdl:part name="HeaderRS" element="gr:HeaderRS"/>
<!-- <wsdl:part name="ValidateLocationRS"
element="gr:ValidateLocationRS"/> -->
</wsdl:message>
<wsdl:portType name="GeographicReferenceType">
<wsdl:operation name="ValidateLocation">
<wsdl:input message="gr:sendValidateLocationInput"/>
<wsdl:output message="gr:sendValidateLocationOutput"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="validateLocationSOAPBinding"
type="tns:GeographicReferenceType">
<soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="ValidateLocation">
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="ValidateLocationService">
<wsdl:port name="ValidateLocation"
binding="tns:validateLocationSOAPBinding">
<soap:address location="http://localhost:8193/ValidateLocationService/
"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
I have deployed the service assembly into the hot deploy folder and
the sa
seems to be active:
[ 157] [Active ] [ ] [ 60] validateLocation-cxf-sa
(0.0.0)
s...@root:/>
The problem is when i try to test it from a client generated using
wsdl2java
tool, the client throws the following exception:
Invoking validateLocation...
Exception in thread "main" javax.xml.ws.soap.SOAPFaultException:
Could not
dispatch exchange. No matching endpoints.
at
com
.sun
.xml
.internal
.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:178)
at
com
.sun
.xml
.internal
.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:111)
at
com
.sun
.xml
.internal
.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:108)
at
com
.sun
.xml
.internal
.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:78)
at com.sun.xml.internal.ws.client.sei.SEIStub.invoke(SEIStub.java:
107)
at $Proxy36.validateLocation(Unknown Source)
at
com
.crs
.sag
.service
.GeographicReferenceType_ValidateLocation_Client
.main(GeographicReferenceType_ValidateLocation_Client.java:56)
----------------
BC Configuration:
----------------
xbean.xml:
<beans xmlns:cxfbc="http://servicemix.apache.org/cxfbc/1.0"
xmlns:validateLocation="http://com/crs/sag/service">
<cxfbc:consumer wsdl="classpath:/ValidateLocation/
ValidateLocation.wsdl"
targetService="validateLocation:ValidateLocationService"
targetInterface="validateLocation:GeographicReferenceType"/>
</beans>
-----------------
SE Configuration:
-----------------
<beans xmlns:cxfse="http://servicemix.apache.org/cxfse/1.0">
<cxfse:endpoint>
<cxfse:pojo>
<bean
class="com.crs.sag.service.GeographicReferenceTypeImpl" />
</cxfse:pojo>
</cxfse:endpoint>
</beans>
What could be wrong?
Thanks in advance, Santiago.
--
View this message in context:
http://old.nabble.com/Could-not-dispatch-exchange.-No-matching-endpoints---ServiceMix-4-tp27835123p27835123.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
--
Freeman Fang
------------------------
Open Source SOA: http://fusesource.com
--
Freeman Fang
------------------------
Open Source SOA: http://fusesource.com