Hi,
I'm trying to inject a webservice into another one using cxfse:proxy
This the xml from the xbeans.xml file

    <cxfse:endpoint>
        <cxfse:pojo>
            <bean class="it.klever.kdv.ldoc.LDocService">
                <property name="documentManagementPort">
                    <cxfse:proxy
service="registry:DocumentManagementService"

type="it.klever.kdv.registry.ws.DocumentManagementPort"
                        useJBIWrapper="false" />
                </property>
            </bean>
        </cxfse:pojo>
    </cxfse:endpoint>

As I invoke methods on the DocumentManagementService proxy I get this error
on the server side:

INFO  - LDocService                    - Conserve: document null, parameters
{}
INFO  - JBIConduitOutputStream         - invoking service    interface
it.klever.kdv.registry.ws.DocumentManagementPort
INFO  - JBIConduitOutputStream         - create message exchange svc:
DocumentManagementService
INFO  - JBIConduitOutputStream         - exchange endpoint:    null
INFO  - JBIConduitOutputStream         - setup message contents on
org.apache.servicemix.jbi.messaging.normalizedmessagei...@18ea471b{properties:
{}}
INFO  - JBIConduitOutputStream         - service for exchange
DocumentManagementService
INFO  - JBIConduitOutputStream         - sending message
WARN  - DefaultBroker                  - ServiceName
(DocumentManagementService) specified for routing, but can't find it
registered
WARN  - DefaultBroker                  - InterfaceName ({
http://www.klever.it/kdv/registry/ws}DocumentManagementPort) specified for
routing, but can't find any matching components
WARN  - DefaultBroker                  - ServiceName
(DocumentManagementService) specified for routing, but can't find it
registered
WARN  - DefaultBroker                  - InterfaceName ({
http://www.klever.it/kdv/registry/ws}DocumentManagementPort) specified for
routing, but can't find any matching components
javax.jbi.messaging.MessagingException: Could not find route for exchange:
InOut[
  id: ID:127.0.1.1-12a1377677b-10:3
  status: Active
  role: provider
  interface: {http://www.klever.it/kdv/registry/ws}DocumentManagementPort
  service: DocumentManagementService
  operation: {http://www.klever.it/kdv/registry/ws}createDataPackage

Using the jconsole I can see that the actual endpoint name is
DocumentManagementServiceImplPort and the service name is {
http://www.klever.it/kdv/registry/ws}DocumentManagementService

So I tried to change the endpoint name in the proxy settings but endpoint
and interfaceName are ignored.

The DocumentManagementService web service works correctly when invoked with
a simple client on the "address" I found with the jconsole.

Is there a different way to configure this parameters?


Thanks, bye

Lorenzo

Reply via email to