txw2.wsdl11.src.WsdlTest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ehcache Show documentation
Show all versions of ehcache Show documentation
Ehcache is an open source, standards-based cache used to boost performance,
offload the database and simplify scalability. Ehcache is robust, proven and full-featured and
this has made it the most widely-used Java-based cache.
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();
}
}