[ 
https://issues.apache.org/jira/browse/CXF-2668?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12832059#action_12832059
 ] 

Jara Cesnek commented on CXF-2668:
----------------------------------

Issue above can be fixed in some strange way.

When you add targetNamespace to implementation (same targetNamespace as in 
interface)

{code}
@WebService(serviceName = "datove_zdroje", 
endpointInterface = "cz.marbes.daisy.modules.doc.ws.v1_0_0.WS",

targetNamespace="http://ns1"; //!!

)
public class WSImpl implements WS {
{code}

then this particular interface START working.

*But interfaces without return type List<String> STOP working after you add 
@WebService.targetNamespace*

So this is not general fix!

Please help .. this realy magic.

> JaxWsProxyFactoryBean and JaxWsServerFactoryBean communication broken
> ---------------------------------------------------------------------
>
>                 Key: CXF-2668
>                 URL: https://issues.apache.org/jira/browse/CXF-2668
>             Project: CXF
>          Issue Type: Bug
>          Components: Aegis Databinding, JAX-WS Runtime
>    Affects Versions: 2.1.9, 2.2.6
>            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:
> {code}
>         JaxWsServerFactoryBean serverFactoryBean = new 
> JaxWsServerFactoryBean();
>         
> serverFactoryBean.setServiceClass(AopUtils.getTargetClass(implementor)); 
> //WSImpl.class
>         serverFactoryBean.setServiceBean(implementor);             
> //WSImpl.class
>         serverFactoryBean.setDataBinding(new AegisDatabinding());
>         serverFactoryBean.setAddress(url);
>         serverFactoryBean.setBus(cxfServlet.getBus());
>         serverFactoryBean.create();
> {code}
> Client code:
> {code}
>             JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();
>             factory.setServiceClass(resultInterfaceClass);                 
> //WS.class
>             factory.setAddress(asURL);
>             factory.setDataBinding(new AegisDatabinding());
>             Object remoteInterfaceImpl = factory.create();
> {code}
> Interface:
> {code}
> @WebService(name="datove_zdroje", targetNamespace="http://ns1";)
> public interface WS {
>            List<String> getCodes(@WebParam(name = "baseCode") String 
> baseCode);
> }
> {code}
> Implementation:
> {code}
> @WebService(serviceName = "datove_zdroje", endpointInterface = 
> "cz.marbes.daisy.modules.doc.ws.v1_0_0.WS")
> public class WSImpl implements WS {
>     @Override
>     public List<String> getCodes(final String baseCode) {
>         return new ArrayList<String>();
>     }
> }
> {code}
> 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.

Reply via email to