cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aki Yoshida <elak...@gmail.com>
Subject Re: WSDL2Java Failed Due To WS-I Standards Violation
Date Thu, 14 Feb 2013 12:37:04 GMT
which cxf version do you have?
if you have 2.6.x, you can try the option -validate=none
https://issues.apache.org/jira/browse/CXF-4287

2013/2/14 Lucky Sutanto <lucky.sutanto@gmail.com>:
> Dear Users,
>
> Has any of you ever faced this problem?
>
> org.apache.cxf.tools.common.ToolException: Non unique body parts, operation
> [ op1] and  operation [ op2] in binding {http://someURL}opSOAP have the
> same body block: {http://someURL/RequestHeaderDMZ.xsd}Header
>
> WSI-BP-1.0 R2201 violation: Operation 'op1' more than one part bound to body
>
>
> at org.apache.cxf.tools.validator.internal.WSDL11Validator.isValid(
> WSDL11Validator.java:139)
>  at
> org.apache.cxf.tools.wsdlto.frontend.jaxws.wsdl11.JAXWSDefinitionBuilder.validate(JAXWSDefinitionBuilder.java:204)
> at
> org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.processWsdl(WSDLToJavaContainer.java:182)
>  at
> org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:142)
> at
> org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:300)
>  at
> org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:103)
> at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:113)
>  at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:86)
> at org.apache.cxf.tools.wsdlto.WSDLToJava.main(WSDLToJava.java:184)
>
> I'm using Apache CXF 2.6.3. I know the root cause is because the WSDL does
> not complies with WS-I standard, I know exactly that the WSDL should be
> fixed. But, since the WSDL is on my client premises, I don't have any other
> options except to accept it.
>
> How can I disable this validation feature?
>
> Thank you,
> Lucky

Mime
View raw message