private java.util.ArrayList<Binding> getBindings(String PortBinding){
        
        NodeList Definitions, ChildNodes;
        NamedNodeMap attr;
        
        String BindingName, BindingType, BindingStyle, BindingTransport;
        
        Binding Binding = null;
        java.util.ArrayList<Binding> arrBindings = null;
        int BindingCount = -1;
        
        //Loop through definitions
        Definitions = getDefinitions();
        //Definitions = Definitions.item(0).getChildNodes();
        for (int i=0; i<Definitions.getLength(); i++ ) {
            if (contains(Definitions.item(i).getNodeName(), "binding")) {
                
                //Get Binding Name
                attr = Definitions.item(i).getAttributes();
                BindingName = DOM.getAttributeValue(attr, "name");
                BindingType = DOM.getAttributeValue(attr, "type");
                if (BindingName.equals(PortBinding)){
                    
                    
                    arrBindings = new java.util.ArrayList<Binding>();

                    //Get Binding Transport/Style      
                    BindingStyle = BindingTransport = "";
                    ChildNodes = Definitions.item(i).getChildNodes();
                    for (int j=0; j<ChildNodes.getLength(); j++ ) {
                        if (contains(ChildNodes.item(j).getNodeName(), "binding")) {
                            attr = ChildNodes.item(j).getAttributes();
                            BindingStyle = DOM.getAttributeValue(attr, "style");
                            BindingTransport = DOM.getAttributeValue(attr, "transport");
                        }
                    }

                    
                    //Get Operation Names/Soap Action
                    for (int j=0; j<ChildNodes.getLength(); j++ ) {
                        if (contains(ChildNodes.item(j).getNodeName(), "operation")) {
                            
                            Binding = new Binding();
                            BindingCount +=1;
                            
                            attr = ChildNodes.item(j).getAttributes();
                            Binding.Operation = DOM.getAttributeValue(attr, "name");
                            
                            NodeList Operations = ChildNodes.item(j).getChildNodes();
                            for (int k=0; k<Operations.getLength(); k++ ) {
                                 if (contains(Operations.item(k).getNodeName(), "operation")) {
                                     attr = Operations.item(k).getAttributes();
                                     Binding.SoapAction = DOM.getAttributeValue(attr, "soapaction");
                                     Binding.Style = BindingStyle; //DOM.getAttributeValue(attr, "style");
                                     
                                     Binding.Name = BindingName;
                                     Binding.Type = stripNameSpace(BindingType);
                                 }
                            }
                            

                            arrBindings.add(Binding);
                        }
                    }  
                    
                    
                    return arrBindings;
                    
                }

             
                
            }
        }        
        
        return null;
    }