This week's book giveaway is in the Beginning Java forum.
We're giving away four copies of Murach's Java Programming and have Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Java Programming this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Issues with CXF WSDL2Java  RSS feed

 
Harry Hinch
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a web service that I have been using for that last few years using Axis2. We are now converting our web service client to CXF. I get the following error when I try and generate the java client using WSDL2Java from CXF. Any suggestions would be appreciated. I am using version 2.2.9 of CXF

WSDLToJava Error: Non-unique body parts! In a port, operations must have unique operation signatures on the wire for successful dispatching. In port {www.servicelink.com/2010/07}CustomBinding_IWordDocMerge, operations "{www.servicelink.com/2010/07}ConvertToPDF" and "{www.servicelink.com/2010/07}MergeWordDocs" have the same request body block {www.servicelink.com/2010/07/messages}DocumentContents


I am using the following options for wsdl2java from inside of Ant




Here is the WSDL that I am trying to create a CXF client for :


 
Ravinderjit Singh
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's by definition of WSI basic profile 1.1 and some more specs of
document-literal webservices.
On the wire there is only element ... no operation, no message .. only
element (one defined in message).
That's why it has to be unique, otherwise it's not possible to distinguish
between them.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!