public static void applyWsdlExtensions ( Bus bus ) { ExtensionRegistry registry = bus . getExtension ( WSDLManager . class ) . getExtensionRegistry ( ) ; try { JAXBExtensionHelper . addExtensions ( registry , javax . wsdl . Definition . class , org . talend . esb . mep . requestcallback . impl . wsdl . PLType . class ) ; JAXBExtensionHelper . addExtensions ( registry , javax . wsdl . Binding . class , org . talend . esb . mep . requestcallback . impl . wsdl . CallbackExtension . class ) ; } catch ( JAXBException e ) { throw new RuntimeException ( "Failed to add WSDL JAXB extensions" , e ) ; } }
Adds JAXB WSDL extensions to allow work with custom WSDL elements such as \ partner - link \