You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Bozhong Lin (JIRA)" <ji...@apache.org> on 2007/03/13 04:56:09 UTC

[jira] Updated: (CXF-403) CXF fails when a Service contains a collection of ports that refer to multiple portTypes.

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

Bozhong Lin updated CXF-403:
----------------------------

        Fix Version/s: 2.0-RC
             Assignee: maomaode
    Affects Version/s:     (was: 2.0-M1)
                       2.0-RC

> 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: maomaode
>             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.