Package wycs.solver

Examples of wycs.solver.Solver$native$Binding


     * Test that the value for the {http method default} property returned by the <code>getHttpMethodDefault</code>
     * method matches the expected value parsed from the WSDL.
     */
    public void testGetHttpMethodDefault()
    {
        Binding binding1 = fBindings[0];
        HTTPBindingExtensions httpBindExts = (HTTPBindingExtensions)binding1
            .getComponentExtensionContext(HTTPConstants.NS_URI_HTTP);
        assertNotNull("The Binding '" + binding1.getName() + "' does not contain an HTTPBindingExtensions object.",
                httpBindExts);
       
        String actual = httpBindExts.getHttpMethodDefault();
        assertNotNull("The value for http method default was null", actual);
        assertEquals("Unexpected value for http method default.",
View Full Code Here


  /**
  * Test that the included binding matches the expected value parsed from the WSDL.
  */
public void testCheckWSDLInclude()
{
     Binding binding1 = fBindings[0];
   
     assertEquals("Unexpected binding name.", "{http://example.com/bank}BankSOAPBinding", binding1.getName().toString());
}
View Full Code Here

     * @see org.apache.woden.wsdl20.WSDLComponent#getFragmentIdentifier()
     */
    public FragmentIdentifier getFragmentIdentifier() {
        //Find parent components.
        BindingOperation bindingOperationComp = (BindingOperation)getParent();
        Binding bindingComp = (Binding)bindingOperationComp.getParent();
        InterfaceOperation interfaceOperationComp = bindingOperationComp.getInterfaceOperation();
       
        //Get needed properties.
        NCName binding = new NCName(bindingComp.getName().getLocalPart());
        QName interfaceOperation = interfaceOperationComp.getName();
      
        //Return a new Fragment Identifier.
        return new FragmentIdentifier(new BindingFaultReferencePart(binding, interfaceOperation, fMessageLabel, fRef));
    }
View Full Code Here

            System.out.println("Interface[" + j + "] : name = "
                    + interfaces[j].getName());
        }

        Binding bindings[] = descComp.getBindings();
        System.out.println("There are " + bindings.length
                + " Binding components.");

        for (int j = 0; j < bindings.length; j++) {
View Full Code Here

        List allBindings = new Vector();
       
        //declared bindings
        for(Iterator i=fBindingElements.iterator(); i.hasNext(); )
        {
            Binding binding = (Binding)i.next();
            if(!containsComponent(binding, allBindings)) {
                ((BindingImpl)binding).setDescriptionComponent(this);
                allBindings.add(binding);
            }
        }
       
        //nested bindings
        List nestedDescs = new Vector(getNestedDescriptions());
        for(Iterator i=nestedDescs.iterator(); i.hasNext(); )
        {
            DescriptionElement desc = (DescriptionElement)i.next();
            BindingElement[] bindings = desc.getBindingElements();
            for(int j=0; j<bindings.length; j++)
            {
                Binding binding = (Binding)bindings[j];
                if(!containsComponent(binding, allBindings)) {
                    ((BindingImpl)binding).setDescriptionComponent(this);
                    allBindings.add(binding);
                }
            }
View Full Code Here

    /* (non-Javadoc)
     * @see org.apache.woden.wsdl20.Description#getBinding(javax.xml.namespace.QName)
     */
    public Binding getBinding(QName name)
    {
        Binding binding = null;
       
        if(name != null)
        {
            Binding[] bindings = getBindings();
           
View Full Code Here

     * @see org.apache.woden.wsdl20.BindingFault#getInterfaceFault()
     */
    public InterfaceFault getInterfaceFault()
    {
        InterfaceFault fault = null;
        Binding binding = (Binding)getParent();
        Interface interfac = binding.getInterface();
        if(interfac != null) {
            fault = interfac.getFromAllInterfaceFaults(fRef);
        }
        return fault;
    }
View Full Code Here

     * (non-Javadoc)
     * @see org.apache.woden.wsdl20.WSDLComponent#getFragmentIdentifier()
     */
    public FragmentIdentifier getFragmentIdentifier() {
        //Find properties needed.
        Binding bindingComp = (Binding)getParent();
        NCName binding = new NCName(bindingComp.getName().getLocalPart());
       
        //Return a new FragmentIdentifier.
        return new FragmentIdentifier(new BindingFaultPart(binding,  fRef));
    }
View Full Code Here

     *
     * @see org.apache.woden.wsdl20.extensions.soap.SOAPBindingOperationExtensions#getHttpLocation()
     */
    public HTTPLocation getHttpLocation() {
       
        Binding binding = (Binding) ((NestedComponent)getParent()).getParent();
        SOAPBindingExtensions soapBindExt = (SOAPBindingExtensions)binding
           .getComponentExtensionContext(SOAPConstants.NS_URI_SOAP);
        String version = soapBindExt.getSoapVersion();
        URI protocol = soapBindExt.getSoapUnderlyingProtocol();
        if(protocol == null) {
            return null;
View Full Code Here

     *
     * @see org.apache.woden.wsdl20.extensions.soap.SOAPBindingOperationExtensions#getHttpQueryParameterSeparator()
     */
    public String getHttpQueryParameterSeparator() {
       
        Binding binding = (Binding) ((NestedComponent)getParent()).getParent();
        SOAPBindingExtensions soapBindExt = (SOAPBindingExtensions)binding
           .getComponentExtensionContext(SOAPConstants.NS_URI_SOAP);
        String version = soapBindExt.getSoapVersion();
        URI protocol = soapBindExt.getSoapUnderlyingProtocol();
        if(protocol == null) {
            return null;
View Full Code Here

TOP

Related Classes of wycs.solver.Solver$native$Binding

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.