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

Daniel Kulp reassigned CXF-403:
-------------------------------

    Assignee: Daniel Kulp  (was: Freeman Fang)

> CXF fails when a Service contains a collection of ports that refer to 
> multiple portTypes.
> -----------------------------------------------------------------------------------------
>
>                 Key: CXF-403
>                 URL: https://issues.apache.org/jira/browse/CXF-403
>             Project: CXF
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.0-RC
>         Environment: Windows, Linux, all....
>            Reporter: Frank Lynch
>         Assigned To: Daniel Kulp
>             Fix For: 2.0-RC
>
>
> The CXF runtime raises an exception statiing that "All endpoints must share 
> the same portType" if a service contains a list of ports (endpoints) that 
> refer to multiple portTypes. We encountered this while building the mtosi 
> wsdl (tmf 854). This is a violation of the WSDL 1.1 specification  
> (http://www.w3.org/TR/wsdl#_services) section 2.7 "By examining it's ports, 
> we can determine a service's port types" - note that port types is plural :)
> Below is the complete stack trace from CXF:  
> INFO: Creating Service {tmf854.v1.ws}ConfigurationService from WSDL.
> Exception in thread "main" java.lang.IllegalStateException: All endpoints 
> must share the same portType
>         at 
> org.apache.cxf.wsdl11.WSDLServiceBuilder.buildService(WSDLServiceBuilder.java:134)
>         at 
> org.apache.cxf.wsdl11.WSDLServiceFactory.create(WSDLServiceFactory.java:71)
>         at 
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:176)
>         at 
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:116)
>         at org.apache.cxf.jaxws.ServiceImpl.createPort(ServiceImpl.java:240)
>         at org.apache.cxf.jaxws.ServiceImpl.getPort(ServiceImpl.java:200)
>         at javax.xml.ws.Service.getPort(Service.java:94)
>         at 
> ws.v1.tmf854.ConfigurationService.getEquipmentInventoryMgrHttp(ConfigurationService.java:87)

-- 
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