Examples of newDescription()


Examples of org.apache.woden.WSDLFactory.newDescription()

  }
 
  // Test that the assertion returns false for two binding faults that are defined with the same interface fault reference.
  try
  {
      DescriptionElement descEl = factory.newDescription();
      descEl.setTargetNamespace(namespace1);
      InterfaceElement interfac = descEl.addInterfaceElement();
      interfac.setName(name1);
      InterfaceFaultElement interfaceFault = interfac.addInterfaceFaultElement();
      interfaceFault.setName(name1);
View Full Code Here

Examples of org.apache.woden.WSDLFactory.newDescription()

  }
 
    // Test that the assertion returns true for a service that is the only service defined.
  try
  {
      DescriptionElement descEl = factory.newDescription();
      descEl.setTargetNamespace(namespace1);
      ServiceImpl service = (ServiceImpl)descEl.addServiceElement();
    service.setName(name1);
    if(!val.testAssertionService1060(new Service[]{service}, reporter))
    {
View Full Code Here

Examples of org.apache.woden.WSDLFactory.newDescription()

  }
 
  // Test that the assertion returns true for a list of services that contains no duplicate names.
  try
  {
      DescriptionElement descEl = factory.newDescription();
      descEl.setTargetNamespace(namespace1);
      ServiceImpl service = (ServiceImpl)descEl.addServiceElement();
    service.setName(name1);
    ServiceImpl service2 = (ServiceImpl)descEl.addServiceElement();
      service2.setName(name2);
View Full Code Here

Examples of org.apache.woden.WSDLFactory.newDescription()

  }
 
  // Test that the assertion returns false for two services that are defined with the same QName object.
  try
  {
      DescriptionElement descEl = factory.newDescription();
      descEl.setTargetNamespace(namespace1);
      ServiceImpl service = (ServiceImpl)descEl.addServiceElement();
      service.setName(name1);
      ServiceImpl service2 = (ServiceImpl)descEl.addServiceElement();
      service2.setName(name2);
View Full Code Here

Examples of org.apache.woden.WSDLFactory.newDescription()

 
  // Test that the assertion returns false for two services that are defined with the same name and
  // different QName objects.
  try
  {
      DescriptionElement descEl = factory.newDescription();
      descEl.setTargetNamespace(namespace1);
      ServiceImpl service = (ServiceImpl)descEl.addServiceElement();
      service.setName(name1);
      ServiceImpl service2 = (ServiceImpl)descEl.addServiceElement();
      service2.setName(name2);
View Full Code Here

Examples of org.apache.woden.WSDLFactory.newDescription()

    */

  // Test that the assertion returns true for an endpoint with no binding defined.
  try
  {
      DescriptionElement descEl = factory.newDescription();
      ServiceElement service = descEl.addServiceElement();
    EndpointElement endpoint = service.addEndpointElement();
    if(!val.testAssertionEndpoint1062(descEl.toComponent().getServices()[0].getEndpoints()[0], reporter))
    {
      fail("The testAssertionEndpoint1062 method returned false for an endpoint with no binding defined.");
View Full Code Here

Examples of org.apache.woden.WSDLFactory.newDescription()

    */
 
  // Test that the assertion returns true for an endpoint that specifies a binding with no interface specified.
  try
  {
      DescriptionElement descEl = factory.newDescription();
      InterfaceElement interfac = descEl.addInterfaceElement();
      interfac.setName(name1);
      BindingElement binding = descEl.addBindingElement();
      binding.setName(name2);
      ServiceElement service = descEl.addServiceElement();
View Full Code Here

Examples of org.apache.woden.WSDLFactory.newDescription()

 
  // Test that the assertion returns true for an endpoint that specifies a binding with the same interface
  // as the parent service specified.
  try
  {
      DescriptionElement descEl = factory.newDescription();
      InterfaceElement interfac = descEl.addInterfaceElement();
      interfac.setName(name1);
      BindingElement binding = descEl.addBindingElement();
      binding.setName(name2);
      binding.setInterfaceName(name1QN);
View Full Code Here

Examples of org.apache.woden.WSDLFactory.newDescription()

 
  // Test that the assertion returns false for an endpoint that specifies a binding with a different interface
  // than the parent service specified.
  try
  {
      DescriptionElement descEl = factory.newDescription();
      descEl.setTargetNamespace(namespace1);
    InterfaceElement interfac = descEl.addInterfaceElement();
      interfac.setName(name1);
      InterfaceElement interfac2 = descEl.addInterfaceElement();
      interfac2.setName(name2);
View Full Code Here

Examples of org.apache.woden.WSDLFactory.newDescription()

        } catch (WSDLException e) {
            fail("Can't instantiate the WSDLFactory object.");
        }
       
    // Create the DescriptionElement->InterfaceElement->InterfaceOperationElement->InterfaceFaultReference hierarchy
    DescriptionElement desc = factory.newDescription();
        InterfaceElement interfaceElement = desc.addInterfaceElement();
    InterfaceOperationElement interfaceOperationElement = interfaceElement.addInterfaceOperationElement();

    // Add an InterfaceFault to the InterfaceElement
    InterfaceFaultElement faultElement = interfaceElement.addInterfaceFaultElement();
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.