[
https://issues.apache.org/jira/browse/CXF-7030?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Daniel Kulp resolved CXF-7030.
------------------------------
Resolution: Incomplete
Fix Version/s: Invalid
CXF doesn't "generate" a wsdl with a TransportBinding. If you use a wsdl with
an invalid transportBinding, the exception is expected.
> wsdl missing sp:TransportBinding element was generated without error
> --------------------------------------------------------------------
>
> Key: CXF-7030
> URL: https://issues.apache.org/jira/browse/CXF-7030
> Project: CXF
> Issue Type: Bug
> Affects Versions: 3.1.4
> Reporter: Kim Hansson
> Fix For: Invalid
>
>
> a wsdl containing a incorrect TransportBinding, missing the required element
> "sp:TransportBinding/wsp:Policy/sp:AlgorithmSuite" was generated without
> error.
> This resulted in a runtime crash with the following stack trace
> java.lang.IllegalArgumentException: sp:TransportBinding must have an inner
> sp:AlgorithmSuite element
> at
> org.apache.wss4j.policy.model.AbstractBinding.parseNestedBindingPolicy:100
> at org.apache.wss4j.policy.model.AbstractBinding.<init>:43
> at org.apache.wss4j.policy.model.TransportBinding.<init>:36
> at org.apache.wss4j.policy.builders.TransportBindingBuilder.build:45
> at org.apache.wss4j.policy.builders.TransportBindingBuilder.build:34
> at org.apache.neethi.AssertionBuilderFactoryImpl.invokeBuilder:138
> at org.apache.neethi.AssertionBuilderFactoryImpl.build:117
> at org.apache.neethi.PolicyBuilder.processOperationElement:224
> at org.apache.neethi.PolicyBuilder.getPolicyOperator:174
> at org.apache.neethi.PolicyBuilder.getPolicy:124
> at
> org.apache.cxf.ws.policy.attachment.reference.LocalServiceModelReferenceResolver.resolveReference:53
> at
> org.apache.cxf.ws.policy.attachment.wsdl11.Wsdl11AttachmentPolicyProvider.resolveLocal:292
> at
> org.apache.cxf.ws.policy.attachment.wsdl11.Wsdl11AttachmentPolicyProvider.resolveReference:272
> at
> org.apache.cxf.ws.policy.attachment.wsdl11.Wsdl11AttachmentPolicyProvider.getElementPolicy:220
> at
> org.apache.cxf.ws.policy.attachment.wsdl11.Wsdl11AttachmentPolicyProvider.getElementPolicy:168
> at
> org.apache.cxf.ws.policy.attachment.wsdl11.Wsdl11AttachmentPolicyProvider.getElementPolicy:161
> at
> org.apache.cxf.ws.policy.attachment.wsdl11.Wsdl11AttachmentPolicyProvider.getEffectivePolicy:75
> at
> org.apache.cxf.ws.policy.PolicyEngineImpl.getAggregatedServicePolicy:438
> at org.apache.cxf.ws.policy.EndpointPolicyImpl.initializePolicy:151
> at org.apache.cxf.ws.policy.EndpointPolicyImpl.initialize:140
> at org.apache.cxf.ws.policy.PolicyEngineImpl.createEndpointPolicyInfo:584
> at org.apache.cxf.ws.policy.PolicyEngineImpl.getEndpointPolicy:313
> at org.apache.cxf.ws.policy.PolicyEngineImpl.getClientEndpointPolicy:294
> at
> org.apache.cxf.ws.policy.PolicyDataEngineImpl.getClientEndpointPolicy:61
> at org.apache.cxf.transport.http.HTTPConduit.updateClientPolicy:318
> at org.apache.cxf.transport.http.HTTPConduit.updateClientPolicy:338
> at org.apache.cxf.transport.http.HTTPConduit.getClient:872
> at
> org.apache.cxf.transport.http.HTTPConduit.configureConduitFromEndpointInfo:360
> at org.apache.cxf.transport.http.HTTPConduit.finalizeConfig:440
> at org.apache.cxf.transport.http.HTTPTransportFactory.getConduit:242
> at org.apache.cxf.binding.soap.SoapTransportFactory.getConduit:222
> at org.apache.cxf.binding.soap.SoapTransportFactory.getConduit:229
> at org.apache.cxf.endpoint.AbstractConduitSelector.createConduit:145
> at org.apache.cxf.endpoint.AbstractConduitSelector.getSelectedConduit:107
> at org.apache.cxf.endpoint.UpfrontConduitSelector.selectConduit:77
> at org.apache.cxf.endpoint.ClientImpl.getConduit:845
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)