Hey Freeman-

Thanks so much for a quick response.  That actually didn't solve my problem,
but it did help me regardless.

You were correct that what I identified as my SEI was actually the web
service client -- that was an error in documenting the error on my part.  My
SEI actually looked like:

@WebService(
        targetNamespace =
"http://www.imsglobal.org/services/gms/wsdl/imsGroupManServiceSync_v1p0";,
        serviceName = "GroupManagementServiceSync",
       
endpointInterface="org.imsglobal.services.gms.wsdl.imsgroupmanabstractsync_v1p0.GroupManagementServiceSync"
)
public class ImsGroupImpl implements GroupManagementServiceSync {



There was something wrong still, so I decided to look into the wsdl2java
options in greater detail and this solved my problem.  What I did was
enabled the -impl option on the wsdl2java tool in my pom.xml like so:

      <plugin>
        <groupId>org.apache.cxf</groupId>
        <artifactId>cxf-codegen-plugin</artifactId>
            ...
                          <wsdlOption>
                              ...
                              <extraargs>
                                  <extraarg>-verbose</extraarg>
                                  <extraarg>-impl</extraarg>
                              </extraargs>
                          </wsdlOption>
             ...
      </plugin>


This caused my Service Impl class to be generated by the tool, and it had
all of the correct attributes in place (without whatever error that I
accidentally introduced).  The result was:


@javax.jws.WebService(
                      serviceName = "GroupManagementServiceSync",
                      portName = "GroupManagementServiceSyncSoap",
                      targetNamespace =
"http://www.imsglobal.org/services/gms/wsdl/imsGroupManServiceSync_v1p0";,
                      wsdlLocation = "...",
                      endpointInterface =
"org.imsglobal.services.gms.wsdl.imsgroupmanabstractsync_v1p0.GroupManagementServiceSync")
                      
public class GroupManagementServiceSyncImpl implements
GroupManagementServiceSync {




Thanks again for the reply!

-Chris Hatton


nottah wrote:
> 
> Hey everyone-
> 
> Been fighting with this for a while now, but I'm having problems accessing
> my service from SoapUI.  I'm using an open standard WSDL contract and
> attempting to build out the service using CXF (2.0.9) and deploying on
> Servicemix (3.3.1).
> 
> I've tinkered for some time with the different namespaces, service names,
> etc but haven't found the winning combo yet.  Am I correct in
> understanding
> that this is a problem mapping my SOAP call to my External service?  Or is
> this a problem getting from the External to the Internal service?
> 
> 
> Here's my SOAP fault:
> 
> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>
>    <soap:Body>
>       <soap:Fault>
>          <faultcode>soap:Server</faultcode>
>          <faultstring><![CDATA[Could not find route for exchange: InOut[
>   id: ID:127.0.1.1-1262db9eaff-20:3
>   status: Active
>   role: provider
>   interface: {
> http://www.imsglobal.org/services/gms/wsdl/imsGroupManAbstractSync_v1p0}GroupManagementServiceSync
>   service: {
> http://www.imsglobal.org/services/gms/wsdl/imsGroupManServiceSync_v1p0}GroupManagementServiceSync
>   operation: {
> http://www.imsglobal.org/services/gms/wsdl/imsGroupManAbstractSync_v1p0}readGroup
>   in: <?xml version="1.0" encoding="UTF-8"?>
> <jbi:message xmlns:jbi="http://java.sun.com/xml/ns/jbi/wsdl-11-wrapper";
> xmlns:msg="
> http://www.imsglobal.org/services/gms/wsdl/imsGroupManAbstractSync_v1p0";
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance"; name="readGroupRequest"
> type="msg:readGroupRequest" version="1.0">
> ...
> </jbi:message>
> ...
> </faultstring>
>       </soap:Fault>
>    </soap:Body>
> </soap:Envelope>
> 
> 
> Some warnings from Servicemix:
> 
> WARN  - DefaultBroker                  - ServiceName ({
> http://www.imsglobal.org/services/gms/wsdl/imsGroupManServiceSync_v1p0}GroupManagementServiceSync)
> specified for routing, but can't find it registered
> WARN  - DefaultBroker                  - InterfaceName ({
> http://www.imsglobal.org/services/gms/wsdl/imsGroupManAbstractSync_v1p0}GroupManagementServiceSync)
> specified for routing, but can't find any matching components
> 
> 
> Relevant WSDL:
> 
> 
> <wsdl:service name = "GroupManagementServiceSync">
>         <wsdl:port name = "GroupManagementServiceSyncSoap" binding =
> "tns:GroupManagementServiceSyncSoap">
>             <soap:address location =
> "http://localhost:8193/GroupService/"/>
> 
>         </wsdl:port>
> </wsdl:service>
> 
> 
> 
> My xbean.xml:
> 
> <beans xmlns="http://www.springframework.org/schema/beans";
>        xmlns:cxfbc="http://servicemix.apache.org/cxfbc/1.0";
>        xmlns:xsi="http://http://www.w3.org/2001/XMLSchema-instance";
>        xmlns:imsGroup="
> http://www.imsglobal.org/services/gms/wsdl/imsGroupManServiceSync_v1p0";
>        xmlns:absg="
> http://www.imsglobal.org/services/gms/wsdl/imsGroupManAbstractSync_v1p0";
>        xmlns:exampleNamespace="http://example.com/exampleService";
>        xsi:schemaLocation="http://servicemix.apache.org/cxfbc/1.0
> http://servicemix.apache.org/schema/servicemix-cxfbc-3.2.3.xsd
>        http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd";>
> 
>   <cxfbc:consumer
>     wsdl="classpath:imsGroupManServiceSync_v1p0.wsdl"
>     targetService="imsGroup:GroupManagementServiceSync"
>     targetInterface="absg:GroupManagementServiceSync"
>     />
> </beans>
> 
> 
> 
> My SEI:
> 
> @WebServiceClient(name = "GroupManagementServiceSync",
>                   wsdlLocation = "...",
>                   targetNamespace = "
> http://www.imsglobal.org/services/gms/wsdl/imsGroupManServiceSync_v1p0";)
> public class GroupManagementServiceSync extends Service {
> 
> 
> 
> 
> And my ServiceImpl:
> 
> @WebService(
>         targetNamespace = "
> http://www.imsglobal.org/services/gms/wsdl/imsGroupManServiceSync_v1p0";,
>         serviceName = "GroupManagementServiceSync",
>         name = "GroupManagementServiceSync")
> 
> endpointInterface="org.imsglobal.services.gms.wsdl.imsgroupmanabstractsync_v1p0.GroupManagementServiceSync"
> )
> public class ImsGroupImpl implements GroupManagementServiceSync {
> 
> 
>     public void readGroup(ReadGroupRequest parameters,
>             SyncRequestHeaderInfo headerInfoRequest,
>             Holder<ReadGroupResponse> response,
>             Holder<SyncResponseHeaderInfo> headerInfoResponse) {
> 
>         ...
>     }
> 
> 
> 
> 
> Any help is greatly appreciated!
> 
> Thanks!
> -Chris Hatton
> 
> 

-- 
View this message in context: 
http://old.nabble.com/WSDL--First-%3A%3A-Could-not-find-route-for-exchange%3A-InOut-%3A%3A-CXF----Servicemix-tp27166655p27233138.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to