public void createExtensor(WSDLManager manager, Class<?> parentType, Class<?> elementType) { try { JAXBExtensionHelper.addExtensions(manager.getExtensionRegistry(), parentType, elementType, null, this.getClass().getClassLoader()); } catch (JAXBException e) { //ignore, won't support XML } }
if (addressing != null) { ExtensionRegistry extensionRegistry = getBus().getExtension(WSDLManager.class).getExtensionRegistry(); try { ExtensibilityElement el = extensionRegistry.createExtension(javax.wsdl.Binding.class,
public void createExtensor(WSDLManager manager, Class<?> parentType, Class<?> elementType) { try { JAXBExtensionHelper.addExtensions(manager.getExtensionRegistry(), parentType, elementType, null, this.getClass().getClassLoader()); } catch (JAXBException e) { //ignore, won't support XML } }
public void addExtensions(WSDLManager manager, Class<?> parentType, Class<?> elementType) { try { JAXBExtensionHelper.addExtensions(manager.getExtensionRegistry(), parentType, elementType, null, this.getClass().getClassLoader()); } catch (JAXBException e) { // ignore, won't support XML } }
private void createCompatExtensor(WSDLManager manager, Class<?> parentType, Class<?> elementType) { try { JAXBExtensionHelper.addExtensions(manager.getExtensionRegistry(), parentType, elementType, YOKO_NAMESPACE); } catch (JAXBException e) { //ignore, just won't support the yoko extensors } }
public void createExtensor(WSDLManager manager, Class<?> parentType, Class<?> elementType) { try { JAXBExtensionHelper.addExtensions(manager.getExtensionRegistry(), parentType, elementType, null, this.getClass().getClassLoader()); } catch (JAXBException e) { //ignore, won't support XML } }
public void createExtensor(WSDLManager manager, Class<?> parentType, Class<?> elementType) { try { JAXBExtensionHelper.addExtensions(manager.getExtensionRegistry(), parentType, elementType, null, this.getClass().getClassLoader()); } catch (JAXBException e) { //ignore, won't support XML } }
public static void createExtensor(WSDLManager manager, Class<?> parentType, Class<? extends TExtensibilityElementImpl> elementType) { try { JAXBExtensionHelper.addExtensions(manager.getExtensionRegistry(), parentType, elementType); } catch (JAXBException e) { //ignore, won't support XML } }
public void createExtensor(WSDLManager manager, Class<?> parentType, Class<? extends ExtensibilityElement> elementType) { try { JAXBExtensionHelper.addExtensions(manager.getExtensionRegistry(), parentType, elementType); } catch (JAXBException e) { //ignore, won't support XML } }
public void createExtensor(WSDLManager manager, Class<?> parentType, Class<? extends ExtensibilityElement> elementType) { try { JAXBExtensionHelper.addExtensions(manager.getExtensionRegistry(), parentType, elementType); } catch (JAXBException e) { //ignore, won't support XML } }
private void createExtensor(WSDLManager manager, Class<?> parentType, Class<?> elementType) { try { JAXBExtensionHelper.addExtensions(manager.getExtensionRegistry(), parentType, elementType, null, this.getClass().getClassLoader()); } catch (JAXBException e) { //ignore, won't support CORBA } }
public static void createExtensor(WSDLManager manager, Class<?> parentType, Class<?> elementType) { try { JAXBExtensionHelper.addExtensions(manager.getExtensionRegistry(), parentType, elementType, null, XMLWSDLExtensionLoader.class.getClassLoader()); } catch (JAXBException e) { //ignore, won't support XML } }
public void addExtensions(WSDLManager manager, Class<?> parentType, Class<?> elementType) { try { JAXBExtensionHelper.addExtensions( manager.getExtensionRegistry(), parentType, elementType, null, getClass().getClassLoader()); } catch (JAXBException e) { // ignore, won't support XML } } }
private static Document getWsdlDocument(Bus bus, Definition def) throws WSDLException { WSDLWriter wsdlWriter = bus.getExtension(WSDLManager.class).getWSDLFactory().newWSDLWriter(); def.setExtensionRegistry(bus.getExtension(WSDLManager.class).getExtensionRegistry()); return wsdlWriter.getDocument(def); }
private void createSoapExtensors(Bus bus, EndpointInfo ei, SoapBindingInfo bi, boolean isSoap12) { try { String address = ei.getAddress(); if (address == null) { address = "http://localhost:9090"; } ExtensionRegistry registry = bus.getExtension(WSDLManager.class).getExtensionRegistry(); SoapAddress soapAddress = SOAPBindingUtil.createSoapAddress(registry, isSoap12); soapAddress.setLocationURI(address); ei.addExtensor(soapAddress); } catch (WSDLException e) { e.printStackTrace(); } }
private Definition newDefinition(final QName name, String targetNamespace) { Definition d = bus.getExtension(WSDLManager.class).getWSDLFactory().newDefinition(); d.setExtensionRegistry(bus.getExtension(WSDLManager.class).getExtensionRegistry()); d.setQName(name); d.setTargetNamespace(targetNamespace); addNamespace(WSDLConstants.NP_SCHEMA_XSD, WSDLConstants.NS_SCHEMA_XSD, d); return d; }
private Definition newDefinition(final QName name, String targetNamespace) { Definition d = bus.getExtension(WSDLManager.class).getWSDLFactory().newDefinition(); d.setExtensionRegistry(bus.getExtension(WSDLManager.class).getExtensionRegistry()); d.setQName(name); d.setTargetNamespace(targetNamespace); addNamespace(WSDLConstants.NP_SCHEMA_XSD, WSDLConstants.NS_SCHEMA_XSD, d); return d; }
public Definition build(String wsdlURL) { WSDLManager mgr = bus.getExtension(WSDLManager.class); registerJaxwsExtension(mgr.getExtensionRegistry()); WSDLDefinitionBuilder builder = new WSDLDefinitionBuilder(this.bus); wsdlDefinition = builder.build(wsdlURL); context.put(Bus.class, bus); context.put(ToolConstants.IMPORTED_DEFINITION, builder.getImportedDefinitions()); checkSupported(wsdlDefinition); return wsdlDefinition; }
public Definition createWSDLDefinition(String tns) throws WSDLException, JAXBException { WSDLManager wm = BusFactory.getThreadDefaultBus().getExtension(WSDLManager.class); WSDLFactory wsdlFactory = wm.getWSDLFactory(); Definition wsdlDefinition = wsdlFactory.newDefinition(); wsdlDefinition.setExtensionRegistry(wm.getExtensionRegistry()); wsdlDefinition.setTargetNamespace(tns); wsdlDefinition.addNamespace("wsdl", "http://schemas.xmlsoap.org/wsdl/"); wsdlDefinition.addNamespace(WSDLConstants.NP_SCHEMA_XSD, WSDLConstants.NS_SCHEMA_XSD); wsdlDefinition.addNamespace(WSDLConstants.SOAP11_PREFIX, WSDLConstants.NS_SOAP11); wsdlDefinition.addNamespace("tns", tns); wsdlDefinition.addNamespace(CorbaConstants.NP_WSDL_CORBA, CorbaConstants.NU_WSDL_CORBA); defns.put(tns, wsdlDefinition); return wsdlDefinition; }
private Definition newDefinition(final QName name, String targetNamespace) { Definition d = bus.getExtension(WSDLManager.class).getWSDLFactory().newDefinition(); d.setExtensionRegistry(bus.getExtension(WSDLManager.class).getExtensionRegistry()); d.setQName(name); d.setTargetNamespace(targetNamespace); addNamespace(WSDLConstants.NP_SCHEMA_XSD, WSDLConstants.NS_SCHEMA_XSD, d); return d; }