private void mergeWebServicesBndInfo(WebServiceRefInfo wsrInfo, JaxWsClientMetaData jaxwsClientMetaData) {

        WebservicesBnd webServicesBnd = null;
        try {
            webServicesBnd = jaxwsClientMetaData.getModuleMetaData().getModuleContainer().adapt(WebservicesBnd.class);
        } catch (UnableToAdaptException e) {
            if (tc.isDebugEnabled()) {
                Tr.debug(tc, "Can not get the custom binding file due to {0}", e);
            }
            return;
        }

        if (webServicesBnd != null) {
//            J2EEName j2eeName = jaxwsClientMetaData.getModuleMetaData().getJ2EEName();
//            J2EEName j2eeName = ivNameSpaceConfig.getJ2EEName();
            String componenetName = wsrInfo.getComponenetName();
            com.ibm.ws.javaee.ddmodel.wsbnd.ServiceRef serviceRef = webServicesBnd.getServiceRef(wsrInfo.getJndiName(), componenetName);

            if (serviceRef != null) {
                List<Port> portList = serviceRef.getPorts();
                //store the port list in the map in WebServiceRefInfo object.
                if (portList != null && portList.size() > 0) {
                    for (Port port : portList) {
                        QName portQName = port.getPortQName();
                        PortComponentRefInfo portInfo = new PortComponentRefInfo(portQName);
                        portInfo.setAddress(port.getAddress());

                        portInfo.setUserName(port.getUserName());
                        portInfo.setPassword(port.getPassword());
                        portInfo.setSSLRef(port.getSSLRef());
                        portInfo.setKeyAlias(port.getKeyAlias());

                        //store the binding properties in the PortComponentRefInfo object.
                        portInfo.setProperties(port.getProperties());
                        wsrInfo.addPortComponentRefInfo(portInfo);
                    }
                }
                wsrInfo.setDefaultPortAddress(serviceRef.getPortAddress());

                //store the binding properties in the WebServiceRefInfo object.
                wsrInfo.setProperties(serviceRef.getProperties());

                String wsdlOverride = serviceRef.getWsdlLocation();
                if (wsdlOverride != null && !wsdlOverride.isEmpty()) {
                    wsrInfo.setWsdlLocation(wsdlOverride);
                }
            }
        }
    }
private void mergeWebServicesBndInfo ( WebServiceRefInfo wsrInfo , JaxWsClientMetaData jaxwsClientMetaData ) { WebservicesBnd webServicesBnd = null ; try { webServicesBnd = jaxwsClientMetaData . getModuleMetaData ( ) . getModuleContainer ( ) . adapt ( WebservicesBnd . class ) ; } catch ( UnableToAdaptException e ) { if ( tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "Can not get the custom binding file due to {0}" , e ) ; } return ; } if ( webServicesBnd != null ) { String componenetName = wsrInfo . getComponenetName ( ) ; com . ibm . ws . javaee . ddmodel . wsbnd . ServiceRef serviceRef = webServicesBnd . getServiceRef ( wsrInfo . getJndiName ( ) , componenetName ) ; if ( serviceRef != null ) { List < Port > portList = serviceRef . getPorts ( ) ; if ( portList != null && portList . size ( ) > 0 ) { for ( Port port : portList ) { QName portQName = port . getPortQName ( ) ; PortComponentRefInfo portInfo = new PortComponentRefInfo ( portQName ) ; portInfo . setAddress ( port . getAddress ( ) ) ; portInfo . setUserName ( port . getUserName ( ) ) ; portInfo . setPassword ( port . getPassword ( ) ) ; portInfo . setSSLRef ( port . getSSLRef ( ) ) ; portInfo . setKeyAlias ( port . getKeyAlias ( ) ) ; portInfo . setProperties ( port . getProperties ( ) ) ; wsrInfo . addPortComponentRefInfo ( portInfo ) ; } } wsrInfo . setDefaultPortAddress ( serviceRef . getPortAddress ( ) ) ; wsrInfo . setProperties ( serviceRef . getProperties ( ) ) ; String wsdlOverride = serviceRef . getWsdlLocation ( ) ; if ( wsdlOverride != null && ! wsdlOverride . isEmpty ( ) ) { wsrInfo . setWsdlLocation ( wsdlOverride ) ; } } } }
merge the configurations from the ibm-ws-bnd.xml

@param wsrInfo