Examples of addTypesElement()


Examples of org.apache.woden.wsdl20.xml.DescriptionElement.addTypesElement()

    // Test that a null namespace returns true.
  handler.reset();
    try
  {
      DescriptionElement descElem = factory.newDescription();
      TypesElement types = descElem.addTypesElement();
      types.addSchema(schema);
     
    if(!val.testAssertionSchema1066(descElem, null, reporter))
    {
      fail("The testAssertionSchema1066 method returned false for a null namespace.");
View Full Code Here

Examples of org.apache.woden.wsdl20.xml.DescriptionElement.addTypesElement()

  // does not return an error.
  handler.reset();
    try
  {
      DescriptionElement descElem = factory.newDescription();
      TypesElement types = descElem.addTypesElement();
      types.addSchema(schema);
     
    if(!val.testAssertionSchema1066(descElem, new QName("http://www.sample.org", "myElement"), reporter))
    {
      fail("The testAssertionSchema1066 method returned false for a namespace that has been defined inline.");
View Full Code Here

Examples of org.apache.woden.wsdl20.xml.DescriptionElement.addTypesElement()

  // does not return an error.
  handler.reset();
    try
  {
      DescriptionElement descElem = factory.newDescription();
      TypesElement typesImported = descElem.addTypesElement();
      ImportedSchema importedSchema = new ImportedSchemaImpl();
      importedSchema.setSchemaDefinition(xs1);
      importedSchema.setNamespace(schemaNS);
      typesImported.addSchema(importedSchema);
     
View Full Code Here

Examples of org.apache.woden.wsdl20.xml.DescriptionElement.addTypesElement()

  // error.
  handler.reset();
    try
  {
      DescriptionElement descElem = factory.newDescription();
      TypesElement typesImported = descElem.addTypesElement();
      InlinedSchema inlinedSchema = new InlinedSchemaImpl();
      typesImported.addSchema(inlinedSchema);
      InlinedSchema inlinedSchema2 = new InlinedSchemaImpl();
      inlinedSchema2.setNamespace(schemaNS);
      typesImported.addSchema(inlinedSchema2);
View Full Code Here

Examples of org.apache.woden.wsdl20.xml.DescriptionElement.addTypesElement()

        assertNotNull(descriptionElement.getNamespaceURI(prefix1));
        assertNotNull(descriptionElement.getNamespacePrefix(namespace1));
       
        TypesElement typesElement = null;
        try {
            typesElement = descriptionElement.addTypesElement();
        } catch (WSDLException e) {
            //This will never happen as I've only added one types element to the description in since creating it 8 lines above.
            fail("Unexpected exception was thrown: " + e.getMessage()); //But in case...
        }
        typesElement.addNamespace(prefix2, namespace2);
View Full Code Here

Examples of org.apache.woden.wsdl20.xml.DescriptionElement.addTypesElement()

    // Test that a null namespace returns true.
  handler.reset();
    try
  {
      DescriptionElement descElem = factory.newDescription();
      TypesElement types = descElem.addTypesElement();
      types.addSchema(schema);
     
    if(!val.testAssertionSchema1066(descElem, null, reporter))
    {
      fail("The testAssertionSchema1066 method returned false for a null namespace.");
View Full Code Here

Examples of org.apache.woden.wsdl20.xml.DescriptionElement.addTypesElement()

  // does not return an error.
  handler.reset();
    try
  {
      DescriptionElement descElem = factory.newDescription();
      TypesElement types = descElem.addTypesElement();
      types.addSchema(schema);
     
    if(!val.testAssertionSchema1066(descElem, new QName("http://www.sample.org", "myElement"), reporter))
    {
      fail("The testAssertionSchema1066 method returned false for a namespace that has been defined inline.");
View Full Code Here

Examples of org.apache.woden.wsdl20.xml.DescriptionElement.addTypesElement()

  // does not return an error.
  handler.reset();
    try
  {
      DescriptionElement descElem = factory.newDescription();
      TypesElement typesImported = descElem.addTypesElement();
      ImportedSchema importedSchema = new ImportedSchemaImpl();
      importedSchema.setSchemaDefinition(xs1);
      importedSchema.setNamespace(schemaNS);
      typesImported.addSchema(importedSchema);
     
View Full Code Here

Examples of org.apache.woden.wsdl20.xml.DescriptionElement.addTypesElement()

  // error.
  handler.reset();
    try
  {
      DescriptionElement descElem = factory.newDescription();
      TypesElement typesImported = descElem.addTypesElement();
      InlinedSchema inlinedSchema = new InlinedSchemaImpl();
      typesImported.addSchema(inlinedSchema);
      InlinedSchema inlinedSchema2 = new InlinedSchemaImpl();
      inlinedSchema2.setNamespace(schemaNS);
      typesImported.addSchema(inlinedSchema2);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.