Hi, Yes, the WSDL is not valid exactly with mentioned problems:
- Multiple parts in book operation - Identical request element in getIOBoundPaxCountInfo getPaxTypesForFlightLeg Btw. SoapUI tool cannot import this WSDL as well. You have some options: 1) if problematic operations are not used, you can fix the WSDL on the client side, generate code and invoke the service 2) use generic Dispatch client to send Soap message to service endpoint. You still can generate JAXB objects from xml schema inside WSDL 3) create java class corresponds to service and use JaxWsProxyFactoryBean to send requests Regards, Andrei. From: neeraj nayal [mailto:[email protected]] Sent: Dienstag, 21. Februar 2017 00:17 To: [email protected] Cc: Andrei Shakirin Subject: Re: WSI-BP-1.0 R2210 violation: Operation 'book' more than one part bound to body Hi, Thanks for responding. The third party WSDL in my case is : Third Party WSDL<http://reservations.airarabia.com/webservices/services/AAResWebServices?wsdl> Or You can find the wsdl in attachment also. I also suspect that WSDL has some problem. But I wonder how same third party WSDL is working for other users and not me. As I don't want to move to any other technology, Please help me to create client/stub using Apache CXF. Thanks On Tue, Feb 21, 2017 at 3:04 AM, Andrei Shakirin <[email protected]<mailto:[email protected]>> wrote: 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]<mailto:[email protected]>] > Sent: Donnerstag, 16. Februar 2017 13:18 > To: [email protected]<mailto:[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<http://www.xyz.org/std/2003/05%7dbinding> > have the same body block: { > http://www.xyz.com/webservices/api/order}myrequest<http://www.xyz.com/webservices/api/order%7dmyrequest> > > 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 -- Thanks And Regards, Neeraj Nayal | Senior Software Engineer Make My Trip, India | Flights Team Mobile: +918335881012
