Hi James,

you need to use JAXB customization like :

 <jaxb:bindings schemaLocation="myschema.xsd" node="/xs:schema">
    <jaxb:bindings node="//xs:element[@name='duplicateField']">
        <jaxb:class name="SecondDubplicateField"/>
    </jaxb:bindings>
  </jaxb:bindings>

you can change the xpath to suite your need.

Regards,

Ulhas Bhole


On Fri, Mar 4, 2011 at 2:17 AM, James Carr <[email protected]> wrote:

> Hi all,
>
> I am trying to use wsdl2java to generate client stubs for a webservice
> hosted at http://api5.silverpop.com/SoapApi/?wsdl. Sadly when I try to
> run it I get the following error:
>
>
> WSDLToJava Error: java.lang.IllegalArgumentException: trying to create
> the same field twice: mailing
>
> Any ideas on ways to get past this? Is there some configuration option
> to just ignore duplicate fields?
>
>
>
> Thanks,
> James
>

Reply via email to