You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Lucky Sutanto <lu...@gmail.com> on 2013/02/14 09:57:57 UTC

WSDL2Java Failed Due To WS-I Standards Violation

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

Re: WSDL2Java Failed Due To WS-I Standards Violation

Posted by Aki Yoshida <el...@gmail.com>.
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 <lu...@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