cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Freeman Fang (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (CXF-6866) bindingId on Client/ServerFactoryBean does not overrule WSDL
Date Wed, 15 Feb 2017 07:40:41 GMT

     [ https://issues.apache.org/jira/browse/CXF-6866?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Freeman Fang reassigned CXF-6866:
---------------------------------

    Assignee: Freeman Fang

> bindingId on Client/ServerFactoryBean does not overrule WSDL
> ------------------------------------------------------------
>
>                 Key: CXF-6866
>                 URL: https://issues.apache.org/jira/browse/CXF-6866
>             Project: CXF
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 3.1.6, 3.0.9
>            Reporter: Jens Kleine-Herzbruch
>            Assignee: Freeman Fang
>              Labels: regression
>
> I have a regular service WSDL with a SOAP/HTTP binding.
> I want to use the XML binding with the service, though. If I set up my service like this:
> {code}
>         ServiceImpl implementor = new ServiceImpl();
>         JaxWsServerFactoryBean svrFactory = new JaxWsServerFactoryBean();
>         svrFactory.setServiceClass(ServiceInterface.class);
>         svrFactory.setAddress(HTTP_ADDRESS);
>         svrFactory.setServiceBean(implementor);
>         svrFactory.setBindingId("http://cxf.apache.org/bindings/xformat");
> {code}
> everything works as expected. However, if I also add these three lines
> {code}
>         svrFactory.setWsdlURL(wsdlUrl);
>         svrFactory.setServiceName(new QName(SERVICE_NS, SERVICE_NAME));
>         svrFactory.setEndpointName(new QName(SERVICE_NS, PORT_NAME));
> {code}
> the the port definition from the WSDL takes precedence over the factory configuration,
and the service expects a SOAP request. Other properties, like e.g. the transportId, get overridden
just fine.
> The same problem also seems to exist on the ClientFactoryBean side.
> This used to work in CXF 2.x.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message