Apache CXF Web service client project from eclipse

148 views
Skip to first unread message

Dinh Nguyen

unread,
Jun 23, 2017, 9:51:51 PM6/23/17
to iDempiere
Hi all,

I am trying to generate web service client from wsdl. Here is what I have done:

1. Create Dynamic Web Project
2. Add Web Service Client Facet (using http://localhost:8080/ADInterface/services/ModelADService?wsdl)

Here is an error:

WSDLToJava Error: Non unique body parts, operation [ createUpdateData ] and  operation [ createData ] in binding {http://idempiere.org/ADInterface/1_0}ModelADServiceSoapBinding have the same body block: {http://idempiere.org/ADInterface/1_0}ModelCRUDRequest

An rpc-literal binding in a DESCRIPTION MUST refer, in its soapbind:body element(s), only to wsdl:part element(s) that have been defined using the type attribute.



org
.apache.cxf.tools.common.ToolException: Non unique body parts, operation [ createUpdateData ] and  operation [ createData ] in binding {http://idempiere.org/ADInterface/1_0}ModelADServiceSoapBinding have the same body block: {http://idempiere.org/ADInterface/1_0}ModelCRUDRequest

An rpc-literal binding in a DESCRIPTION MUST refer, in its soapbind:body element(s), only to wsdl:part element(s) that have been defined using the type attribute.


    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:206)
    at org
.apache.cxf.tools.wsdlto.WSDLToJavaContainer.processWsdl(WSDLToJavaContainer.java:204)
    at org
.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:164)
    at org
.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:412)
    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 have found out it caused because createData and createUpdateData in wsdl but I can't edit it. How can i solved it?
Reply all
Reply to author
Forward
0 new messages