title: wsimport: class generation error
body: <p>I have a web service in C#:</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Web;
  using System.Web.Services;
  using MySql.Data.MySqlClient;
  using System.Data;
  
  namespace WebApplication5
  {
      /// &lt;summary&gt;
      /// Summary description for WebService1
      /// &lt;/summary&gt;
      [WebService(Namespace = "http://tempuri.org/")]
      [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
      [System.ComponentModel.ToolboxItem(false)]
      // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
      // [System.Web.Script.Services.ScriptService]
      public class WebService1 : System.Web.Services.WebService
      {
  
          [WebMethod]
          public string HelloWorld()
          {
              return "Hello World";
          }
  
          [System.Web.Services.WebMethod]
          public DataTable connectoToMySql()
          {
              string connString = "SERVER=localhost" + ";" +
                  "DATABASE=test;" +
                  "UID=root;" +
                  "PASSWORD=root;";
  
              MySqlConnection cnMySQL = new MySqlConnection(connString);
  
              MySqlCommand cmdMySQL = cnMySQL.CreateCommand();
  
              MySqlDataReader reader;
  
              cmdMySQL.CommandText = "select * from user";
  
              cnMySQL.Open();
  
              reader = cmdMySQL.ExecuteReader();
  
              DataTable dt = new DataTable();
              dt.Load(reader);
  
  
              cnMySQL.Close();
  
              return dt;
          }
  
  
      }
  }
  </code></pre>
  
  <p>The generated wsdl is: </p>
  
  <pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;wsdl:definitions xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://tempuri.org/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="http://tempuri.org/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"&gt;
    &lt;wsdl:types&gt;
      &lt;s:schema elementFormDefault="qualified" targetNamespace="http://tempuri.org/"&gt;
        &lt;s:element name="HelloWorld"&gt;
          &lt;s:complexType /&gt;
        &lt;/s:element&gt;
        &lt;s:element name="HelloWorldResponse"&gt;
          &lt;s:complexType&gt;
            &lt;s:sequence&gt;
              &lt;s:element minOccurs="0" maxOccurs="1" name="HelloWorldResult" type="s:string" /&gt;
            &lt;/s:sequence&gt;
          &lt;/s:complexType&gt;
        &lt;/s:element&gt;
        &lt;s:element name="connectoToMySql"&gt;
          &lt;s:complexType /&gt;
        &lt;/s:element&gt;
        &lt;s:element name="connectoToMySqlResponse"&gt;
          &lt;s:complexType&gt;
            &lt;s:sequence&gt;
              &lt;s:element minOccurs="0" maxOccurs="1" name="connectoToMySqlResult"&gt;
                &lt;s:complexType&gt;
                  &lt;s:sequence&gt;
                    &lt;s:any minOccurs="0" maxOccurs="unbounded" namespace="http://www.w3.org/2001/XMLSchema" processContents="lax" /&gt;
                    &lt;s:any minOccurs="1" namespace="urn:schemas-microsoft-com:xml-diffgram-v1" processContents="lax" /&gt;
                  &lt;/s:sequence&gt;
                &lt;/s:complexType&gt;
              &lt;/s:element&gt;
            &lt;/s:sequence&gt;
          &lt;/s:complexType&gt;
        &lt;/s:element&gt;
      &lt;/s:schema&gt;
    &lt;/wsdl:types&gt;
    &lt;wsdl:message name="HelloWorldSoapIn"&gt;
      &lt;wsdl:part name="parameters" element="tns:HelloWorld" /&gt;
    &lt;/wsdl:message&gt;
    &lt;wsdl:message name="HelloWorldSoapOut"&gt;
      &lt;wsdl:part name="parameters" element="tns:HelloWorldResponse" /&gt;
    &lt;/wsdl:message&gt;
    &lt;wsdl:message name="connectoToMySqlSoapIn"&gt;
      &lt;wsdl:part name="parameters" element="tns:connectoToMySql" /&gt;
    &lt;/wsdl:message&gt;
    &lt;wsdl:message name="connectoToMySqlSoapOut"&gt;
      &lt;wsdl:part name="parameters" element="tns:connectoToMySqlResponse" /&gt;
    &lt;/wsdl:message&gt;
    &lt;wsdl:portType name="WebService1Soap"&gt;
      &lt;wsdl:operation name="HelloWorld"&gt;
        &lt;wsdl:input message="tns:HelloWorldSoapIn" /&gt;
        &lt;wsdl:output message="tns:HelloWorldSoapOut" /&gt;
      &lt;/wsdl:operation&gt;
      &lt;wsdl:operation name="connectoToMySql"&gt;
        &lt;wsdl:input message="tns:connectoToMySqlSoapIn" /&gt;
        &lt;wsdl:output message="tns:connectoToMySqlSoapOut" /&gt;
      &lt;/wsdl:operation&gt;
    &lt;/wsdl:portType&gt;
    &lt;wsdl:binding name="WebService1Soap" type="tns:WebService1Soap"&gt;
      &lt;soap:binding transport="http://schemas.xmlsoap.org/soap/http" /&gt;
      &lt;wsdl:operation name="HelloWorld"&gt;
        &lt;soap:operation soapAction="http://tempuri.org/HelloWorld" style="document" /&gt;
        &lt;wsdl:input&gt;
          &lt;soap:body use="literal" /&gt;
        &lt;/wsdl:input&gt;
        &lt;wsdl:output&gt;
          &lt;soap:body use="literal" /&gt;
        &lt;/wsdl:output&gt;
      &lt;/wsdl:operation&gt;
      &lt;wsdl:operation name="connectoToMySql"&gt;
        &lt;soap:operation soapAction="http://tempuri.org/connectoToMySql" style="document" /&gt;
        &lt;wsdl:input&gt;
          &lt;soap:body use="literal" /&gt;
        &lt;/wsdl:input&gt;
        &lt;wsdl:output&gt;
          &lt;soap:body use="literal" /&gt;
        &lt;/wsdl:output&gt;
      &lt;/wsdl:operation&gt;
    &lt;/wsdl:binding&gt;
    &lt;wsdl:binding name="WebService1Soap12" type="tns:WebService1Soap"&gt;
      &lt;soap12:binding transport="http://schemas.xmlsoap.org/soap/http" /&gt;
      &lt;wsdl:operation name="HelloWorld"&gt;
        &lt;soap12:operation soapAction="http://tempuri.org/HelloWorld" style="document" /&gt;
        &lt;wsdl:input&gt;
          &lt;soap12:body use="literal" /&gt;
        &lt;/wsdl:input&gt;
        &lt;wsdl:output&gt;
          &lt;soap12:body use="literal" /&gt;
        &lt;/wsdl:output&gt;
      &lt;/wsdl:operation&gt;
      &lt;wsdl:operation name="connectoToMySql"&gt;
        &lt;soap12:operation soapAction="http://tempuri.org/connectoToMySql" style="document" /&gt;
        &lt;wsdl:input&gt;
          &lt;soap12:body use="literal" /&gt;
        &lt;/wsdl:input&gt;
        &lt;wsdl:output&gt;
          &lt;soap12:body use="literal" /&gt;
        &lt;/wsdl:output&gt;
      &lt;/wsdl:operation&gt;
    &lt;/wsdl:binding&gt;
    &lt;wsdl:service name="WebService1"&gt;
      &lt;wsdl:port name="WebService1Soap" binding="tns:WebService1Soap"&gt;
        &lt;soap:address location="http://localhost:50066/WebService1.asmx" /&gt;
      &lt;/wsdl:port&gt;
      &lt;wsdl:port name="WebService1Soap12" binding="tns:WebService1Soap12"&gt;
        &lt;soap12:address location="http://localhost:50066/WebService1.asmx" /&gt;
      &lt;/wsdl:port&gt;
    &lt;/wsdl:service&gt;
  &lt;/wsdl:definitions&gt;
  </code></pre>
  
  <p>I want to consume the service with java.
  When I try to generate the corresponding java classes with <code>wsimport</code> I get an error:</p>
  
  <blockquote>
    <p>$ wsimport -s src -keep <a href="http://localhost:50066/WebService1.asmx?WSDL" rel="nofollow noreferrer">http://localhost:50066/WebService1.asmx?WSDL</a></p>
    
    <p>parsing WSDL...</p>
    
    <p>[ERROR] Property "Any" is already defined. Use &lt;jaxb:property> to
    resolve this conflict.   line 24 of
    <a href="http://localhost:50066/WebService1.asmx?WSDL" rel="nofollow noreferrer">http://localhost:50066/WebService1.asmx?WSDL</a></p>
    
    <p>[ERROR] The following location is relevant to the above error   line
    25 of <a href="http://localhost:50066/WebService1.asmx?WSDL" rel="nofollow noreferrer">http://localhost:50066/WebService1.asmx?WSDL</a></p>
    
    <p>Exception in thread "main"
    com.sun.tools.internal.ws.wscompile.AbortException
            at com.sun.tools.internal.ws.processor.modeler.wsdl.JAXBModelBuilder.bind(JAXBModelBuilder.java:129)
            at com.sun.tools.internal.ws.processor.modeler.wsdl.WSDLModeler.buildJAXBModel(WSDLModeler.java:2283)
            at com.sun.tools.internal.ws.processor.modeler.wsdl.WSDLModeler.internalBuildModel(WSDLModeler.java:183)
            at com.sun.tools.internal.ws.processor.modeler.wsdl.WSDLModeler.buildModel(WSDLModeler.java:126)
            at com.sun.tools.internal.ws.wscompile.WsimportTool.buildWsdlModel(WsimportTool.java:429)
            at com.sun.tools.internal.ws.wscompile.WsimportTool.run(WsimportTool.java:190)
            at com.sun.tools.internal.ws.wscompile.WsimportTool.run(WsimportTool.java:168)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:498)
            at com.sun.tools.internal.ws.Invoker.invoke(Invoker.java:159)
            at com.sun.tools.internal.ws.WsImport.main(WsImport.java:42)</p>
  </blockquote>