All Downloads are FREE. Search and download functionalities are using the official Maven repository.

wsdl11.src.WsdlTest Maven / Gradle / Ivy

Go to download

Old JAXB Runtime module. Contains sources required for runtime processing.

There is a newer version: 4.0.5
Show newest version

import com.sun.xml.txw2.TXW;
import com.sun.xml.txw2.output.StreamSerializer;
import wsdl.Definitions;

import javax.xml.namespace.QName;

/**
 * @author Kohsuke Kawaguchi
 */
public class WsdlTest {
    public static void main(String[] args) {
        Definitions root = TXW.create(Definitions.class,new StreamSerializer(System.out));

        root._namespace("http://schemas.xmlsoap.org/wsdl/","wsdl");
        root._namespace("foo","bar");

        root._comment("GENERATED. DO NOT MODIFY");
        root._pcdata("\n");

        root.targetNamespace("abc");
        root.message().name("msg1");
        root.message().name("msg2");

        root.commit();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy