cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jara Cesnek (JIRA)" <>
Subject [jira] Created: (CXF-2668) JaxWsProxyFactoryBean and JaxWsServerFactoryBean communication broken
Date Wed, 10 Feb 2010 16:25:27 GMT
JaxWsProxyFactoryBean and JaxWsServerFactoryBean communication broken

                 Key: CXF-2668
             Project: CXF
          Issue Type: Bug
          Components: Aegis Databinding, JAX-WS Runtime
    Affects Versions: 2.2.6, 2.1.9
            Reporter: Jara Cesnek
            Priority: Blocker

When using JaxWsProxyFactoryBean and JaxWsServerFactoryBean with AegisDataBinding some interfaces
is broken and all methods call result in NULL.

When contract interface contains method with return type "List<String>" then client
assume wrong namespace and all method call is broken.

When I change "List<String>" to "List<MyVOWithOneString>" all working fine.

Server code:
        JaxWsServerFactoryBean serverFactoryBean = new JaxWsServerFactoryBean();
        serverFactoryBean.setServiceClass(AopUtils.getTargetClass(implementor)); //WSImpl.class
        serverFactoryBean.setServiceBean(implementor);             //WSImpl.class
        serverFactoryBean.setDataBinding(new AegisDatabinding());

Client code:
            JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();
            factory.setServiceClass(resultInterfaceClass);                 //WS.class
            factory.setDataBinding(new AegisDatabinding());
            Object remoteInterfaceImpl = factory.create();

@WebService(name="datove_zdroje", targetNamespace="http://ns1")
public interface WS {
           List<String> getCodes(@WebParam(name = "baseCode") String baseCode);

@WebService(serviceName = "datove_zdroje", endpointInterface = "")
public class WSImpl implements WS {

    public List<String> getCodes(final String baseCode) {
        return new ArrayList<String>();

This is a general error in CXF client that assume wrong namespaces.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message