Hi, It seems that the WSDL has some problem: 1) Operations getIOBoundPaxCountInfo and getPaxTypesForFlightLeg reference the same XML element in message body 2) WSDL uses document-literal binding, but message body contains more than one parts. In document-literal style only single part is allowed.
Could you share your WSDL file? Regards, Andrei. > -----Original Message----- > From: neeraj nayal [mailto:[email protected]] > Sent: Donnerstag, 16. Februar 2017 13:18 > To: [email protected] > Subject: WSI-BP-1.0 R2210 violation: Operation 'book' more than one part > bound to body > > Dear Team, > > I am trying to create client/stub for SOAP web service. > I am getting following error. > > I guess, It is related to RPC/Document XML. DO we have different command > line utility to generate WSDL for RPC and Document stype type of SOAP XML? > > > org.apache.cxf.tools.common.ToolException: Non unique body parts, operation > [ getIOBoundPaxCountInfo ] and operation [ getPaxTypesForFlightLeg ] in > binding {http://www.xyz.org/std/2003/05}binding have the same body block: { > http://www.xyz.com/webservices/api/order}myrequest > > WSI-BP-1.0 R2210 violation: Operation 'book' more than one part bound to > body > > > at > org.apache.cxf.tools.validator.internal.WSDL11Validator.isValid(WSDL11Validat > or.java:139) > at > org.apache.cxf.tools.wsdlto.frontend.jaxws.wsdl11.JAXWSDefinitionBuilder.valid > ate(JAXWSDefinitionBuilder.java:207) > at > org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.processWsdl(WSDLToJavaCo > ntainer.java:205) > at > org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContain > er.java:165) > at > org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContain > er.java:416) > at > org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:10 > 3) > 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) > > > *Note* - I am new to webservice. I am sorry if I misuse any term. > > > > - > -------- > > Thanks And Regards, > Neeraj Nayal | Senior Software Engineer > Make My Trip, India | Flights Team > Mobile: +918335881012
