Package com.legstar.xsd

Examples of com.legstar.xsd.XsdToCobolStringResult


        /* Use custom XSLT to change some element sizes from defaults. */
        model.setCustomXsltFileName("src/test/resources/xslt/MSNSearch.xsl");

        Xsd2Cob api = new Xsd2Cob(model);

        XsdToCobolStringResult results = api
                .translate(FileUtils.readFileToString(new File(XSD_DIR,
                        "MSNSearch.wsdl"), "UTF-8"));
        check("MSNSearch", "xsd", results.getCobolXsd());
        check("MSNSearch", "cpy", results.getCobolStructure());
    }
View Full Code Here


        Xsd2Cob api = new Xsd2Cob();
        api.getModel().addNewRootElement(
                new XsdRootElement("dfhcommarea", "Dfhcommarea"));

        XsdToCobolStringResult results = api.translate(FileUtils
                .readFileToString(new File(XSD_DIR, "listssdo.xsd"), "UTF-8"));
        check("listssdo", "xsd", results.getCobolXsd());
        check("listssdo", "cpy", results.getCobolStructure());
    }
View Full Code Here

            Xsd2Cob api = new Xsd2Cob();
            api.getModel()
                    .setInputXsdUri(
                            new URI(
                                    "http://localhost:8080/legstar-test-cultureinfo/getinfo?wsdl"));
            XsdToCobolStringResult results = api.translate();

            check("cultureinfo", "xsd", results.getCobolXsd());
            check("cultureinfo", "cpy", results.getCobolStructure());
        } finally {
            webapp.stop();
        }

    }
View Full Code Here

                    "http://localhost:8080/legstar-test-jvmquery/queryJvm?wsdl"));
            /* We switch namespace to avoid conflict with jvmquery pojo. */
            model.setNewTargetNamespace("http://jvmquery.ws.cases.test.xsdc.legstar.com/");

            Xsd2Cob api = new Xsd2Cob(model);
            XsdToCobolStringResult results = api.translate();

            check("jvmquery-ws", "xsd", results.getCobolXsd());
            check("jvmquery-ws", "cpy", results.getCobolStructure());
        } finally {
            webapp.stop();
        }

    }
View Full Code Here

TOP

Related Classes of com.legstar.xsd.XsdToCobolStringResult

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.