Skip to content

Issue with namespace when generated *.java file from wsdl #2

@4everalone

Description

@4everalone

Hi, there is a compilation error after generation java code. I'm generating the code from wsdl during compilation of my project, so manual fixing is not unacceptably for me.

Here is an quick example of generated code. Compilation error is on the line

public List<Element> any;

Because Element is a class from org.w3c.dom namespace

// Generated by xsd compiler for android/java
// DO NOT CHANGE!
package ws.schema;

import java.io.Serializable;
import com.leansoft.nano.annotation.*;
import java.util.List;
import org.w3c.dom.Element;

@RootElement(name = "RequestData", namespace = "ws/schema")
public class RequestData implements Serializable {

   private static final long serialVersionUID = -1L;

    @Element(name = "LoginInfo")
    @Order(value=0)
    public LoginInfo loginInfo;

    @AnyElement
    @Order(value=1)
    public List<Element> any;   
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions