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

txw2.wsdl11.src.WsdlTest Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 2.10.9.2
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