public static HandlerInfo buildHandlerInfoFromXML ( com . ibm . ws . javaee . dd . common . wsclient . Handler handler ) { HandlerInfo hInfo = new HandlerInfo ( ) ; hInfo . setHandlerClass ( handler . getHandlerClassName ( ) ) ; hInfo . setHandlerName ( handler . getHandlerName ( ) ) ; for ( ParamValue pv : handler . getInitParams ( ) ) { hInfo . addInitParam ( new ParamValueInfo ( pv . getName ( ) , pv . getValue ( ) ) ) ; } for ( String soapRole : handler . getSoapRoles ( ) ) { hInfo . addSoapRole ( soapRole ) ; } for ( com . ibm . ws . javaee . dd . common . QName header : handler . getSoapHeaders ( ) ) { hInfo . addSoapHeader ( new XsdQNameInfo ( new QName ( header . getNamespaceURI ( ) , header . getLocalPart ( ) ) , "" ) ) ; } return hInfo ; }
Build the handler info from web . xml