How do I customize XML Schema generated for a Web Service in ... from java case

For following web service:

package myws;

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;

public class CustomWSTest {

    public int add(@WebParam(name = "i") int i, @WebParam(name = "j") int j) {
        // TODO implement operation 
        return i + j;

How to set attributeFormDefault and/or elementFormDefault to "unqualified"

Create new
in package {myws.jaxws} with following content:
@XmlSchema(namespace="http://myws/", attributeFormDefault=XmlNsForm.UNQUALIFIED,
package myws.jaxws;
import javax.xml.bind.annotation.XmlNsForm;
import javax.xml.bind.annotation.XmlSchema;
Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo