Package org.apache.woden.internal.wsdl20

Examples of org.apache.woden.internal.wsdl20.BindingFaultImpl


     * Test that the QName specified on the setInterfaceName method is returned by
     * the getInterfaceName method.
     */
    public void testSetAndGetInterfaceName()
    {
        ServiceElement service = new ServiceImpl();
        service.setInterfaceName(fQName);
        QName returnedQN = service.getInterfaceName();
        assertTrue("QName returned by ServiceElement.getInterfaceName() was not the one set by setInterfaceName().",
                   returnedQN.equals(fQName));
    }
View Full Code Here


    /**
     * Test that the QName specified on the setInterfaceName method is returned by
     * the getInterfaceName method.
     */
    public void testSetAndGetInterfaceNameFromOM(){
        ServiceElement service = new ServiceImpl();
        service.setInterfaceName(fQName);
        QName returnedQN = service.getInterfaceName();
        assertTrue("QName returned by ServiceElement.getInterfaceName() was not the one set by setInterfaceName().",
                   returnedQN.equals(fQName));
    }
View Full Code Here

     */
    protected void setUp() throws Exception
    {
        super.setUp();
        fTypeDefinition = new TypeDefinitionImpl();
    fTypeSystem = new URI("http://www.w3.org/2001/XMLSchema");
    }
View Full Code Here

     */
    public XmlSchemaType getType()
    {
        XmlSchemaType xst = null;
        DescriptionElement desc = getDescriptionElement(getParentElement());
        TypesImpl types = (TypesImpl)desc.getTypesElement();
        if(types != null) {
            xst = types.getTypeDefinition(fTypeName);
        }
        return xst;
    }
View Full Code Here

        //Populate the Map of targetClass->List of WSDL 2.0 Assertions
       
        fWsdlAsserts = new HashMap();
       
        List descElem = new Vector();
        descElem.add(new Description1001());
        descElem.add(new Description1002());
        descElem.add(new Description1002());
        fWsdlAsserts.put(DescriptionElement.class, descElem);
       
        List desc = new Vector();
View Full Code Here

       
        fWsdlAsserts = new HashMap();
       
        List descElem = new Vector();
        descElem.add(new Description1001());
        descElem.add(new Description1002());
        descElem.add(new Description1002());
        fWsdlAsserts.put(DescriptionElement.class, descElem);
       
        List desc = new Vector();
        desc.add(new Interface1010());
        fWsdlAsserts.put(Description.class, desc);
View Full Code Here

        List desc = new Vector();
        desc.add(new Interface1010());
        fWsdlAsserts.put(Description.class, desc);
       
        List intf = new Vector();
        intf.add(new Interface1009());
        fWsdlAsserts.put(Interface.class, intf);
       
    }
View Full Code Here

        descElem.add(new Description1002());
        descElem.add(new Description1002());
        fWsdlAsserts.put(DescriptionElement.class, descElem);
       
        List desc = new Vector();
        desc.add(new Interface1010());
        fWsdlAsserts.put(Description.class, desc);
       
        List intf = new Vector();
        intf.add(new Interface1009());
        fWsdlAsserts.put(Interface.class, intf);
View Full Code Here

        addDocumentation(axisOperation, operation.toElement());

        // assuming the style of the operations of WSDL 2.0 is always document, for the time being :)
        // The following can be used to capture the wsdlx:safe attribute

        InterfaceOperationExtensionsImpl interfaceOperationExtensions;
        try {
            interfaceOperationExtensions = (InterfaceOperationExtensionsImpl) operation
                    .getComponentExtensionContext(
                            new URI(WSDL2Constants.URI_WSDL2_EXTENSIONS));
        } catch (URISyntaxException e) {
            throw new AxisFault("WSDL2 extensions not defined for this operation");
        }

        if (interfaceOperationExtensions != null) {
            Parameter parameter = new Parameter(WSDL2Constants.ATTR_WSDLX_SAFE, Boolean.valueOf(
                    interfaceOperationExtensions.isSafe()));
            axisOperation.addParameter(parameter);
        }

        RPCInterfaceOperationExtensions rpcInterfaceOperationExtensions;
        try {
View Full Code Here

        addDocumentation(axisOperation, operation.toElement());

        // assuming the style of the operations of WSDL 2.0 is always document, for the time being :)
        // The following can be used to capture the wsdlx:safe attribute

        InterfaceOperationExtensionsImpl interfaceOperationExtensions;
        try {
            interfaceOperationExtensions = (InterfaceOperationExtensionsImpl) operation
                    .getComponentExtensionsForNamespace(
                            new URI(WSDL2Constants.URI_WSDL2_EXTENSIONS));
        } catch (URISyntaxException e) {
            throw new AxisFault("WSDL2 extensions not defined for this operation");
        }

        if (interfaceOperationExtensions != null) {
            Parameter parameter = new Parameter(WSDL2Constants.ATTR_WSDLX_SAFE, new Boolean(
                    interfaceOperationExtensions.isSafety()));
            axisOperation.addParameter(parameter);
        }

        InterfaceMessageReference[] interfaceMessageReferences = operation
                .getInterfaceMessageReferences();
View Full Code Here

TOP

Related Classes of org.apache.woden.internal.wsdl20.BindingFaultImpl

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.