public AbstractWSDLReaderImpl() throws WSDLException { try { this.schemaReader = new SchemaReaderImpl(); this.features.put(FeatureConstants.VERBOSE, false); this.features.put(FeatureConstants.IMPORT_DOCUMENTS, true); } catch (SchemaException e) { throw new WSDLException(e); } }
public WSDLWriterImpl(List<Class> addedObjectFactories) throws WSDLException { try { this.jaxbContext = new WSDLJAXBContext(addedObjectFactories); // marshaller.setSchema(schema); } catch (final WSDLException e) { throw new WSDLException(e); } }
public WSDLWriterImpl(List<Class> addedObjectFactories) throws WSDLException { try { this.jaxbcontext = new WSDLJAXBContext(addedObjectFactories); } catch (final WSDLException e) { throw new WSDLException(e); } }
public WSDLWriterImpl() throws WSDLException { try { this.jaxbContext = new WSDLJAXBContext(); // marshaller.setSchema(schema); } catch (final WSDLException e) { throw new WSDLException(e); } }
public WSDLReaderImpl() throws WSDLException { super(); try { this.jaxbcontext = new WSDLJAXBContext(); } catch (final SchemaException e) { throw new WSDLException(e); } }
public WSDLReaderImpl(List<Class> addedObjectFactories) throws WSDLException { super(); try { this.jaxbcontext = new WSDLJAXBContext(addedObjectFactories); } catch (final WSDLException e) { throw new WSDLException(e); } }
public WSDLReaderImpl(List<Class> addedObjectFactories) throws WSDLException { super(); try { this.jaxbcontext = new WSDLJAXBContext(addedObjectFactories); } catch (final WSDLException e) { throw new WSDLException(e); } }
public WSDLReaderImpl() throws WSDLException { super(); try { this.jaxbcontext = new WSDLJAXBContext(); } catch (final SchemaException e) { throw new WSDLException(e); } }
public WSDLWriterImpl() throws WSDLException { try { this.jaxbcontext = new WSDLJAXBContext(); } catch (final WSDLException e) { throw new WSDLException(e); } }
public Description readWSDL(final URI wsdlURI) throws WSDLException { Description d = null; try { InputSource source1 = new InputSource(StreamHelper.getInputStream(wsdlURI)); final WSDLVersionConstants version = WSDLVersionDetector.getVersion(source1); d = readWSDL(wsdlURI, version, new InputSource(StreamHelper.getInputStream(wsdlURI)), null, null); } catch (SchemaException e) { throw new WSDLException(e); } return d; }
public DescriptionImpl() throws WSDLException { try { this.model = new DescriptionType(); this.documentURI = new URI("."); // get the documentation this.documentation = new org.ow2.easywsdl.wsdl.impl.wsdl20.DocumentationImpl(this.model.getDocumentation(), this); } catch (URISyntaxException e) { throw new WSDLException(e); } }
public void setTransportProtocol(String transportProtocol) throws WSDLException { if (transportProtocol.contains("soap")) { this.model.setType(org.ow2.easywsdl.wsdl.api.Binding.BindingConstants.SOAP_BINDING4WSDL20.value().toString()); this.model.getOtherAttributes().put(new QName(this.model.getType(), Constants.SOAP_PROTOCOL), transportProtocol); } else if (transportProtocol.contains("http")) { this.model.setType(org.ow2.easywsdl.wsdl.api.Binding.BindingConstants.HTTP_BINDING4WSDL20.value().toString()); this.model.getOtherAttributes().put(new QName(this.model.getType(), Constants.HTTP_METHOD_DEFAULT), transportProtocol); } else { throw new WSDLException("unrecognized transport protocol"); } }
public Description readWSDL(final URI wsdlURI, Map<URI, AbsItfDescription> descriptionImports, Map<URI, AbsItfSchema> schemaImports, boolean deleteImports) throws WSDLException { Description d = null; try { InputSource source1 = new InputSource(StreamHelper.getInputStream(wsdlURI)); final WSDLVersionConstants version = WSDLVersionDetector.getVersion(source1); //d = readWSDL(wsdlURI, version, source1, descriptionImports, schemaImports); d = readWSDL(wsdlURI, new InputSource(StreamHelper.getInputStream(wsdlURI)), descriptionImports, schemaImports, deleteImports); } catch (SchemaException e) { throw new WSDLException(e); } return d; }
public Description readWSDL(final URI wsdlURI) throws WSDLException { Description d = null; try { InputSource source1 = new InputSource(StreamHelper.getInputStream(wsdlURI)); final WSDLVersionConstants version = WSDLVersionDetector.getVersion(source1); d = readWSDL(wsdlURI, version, new InputSource(StreamHelper.getInputStream(wsdlURI)), null, null); } catch (SchemaException e) { throw new WSDLException(e); } return d; }
public Description readWSDL(final URI wsdlURI, Map<URI, AbsItfDescription> descriptionImports, Map<URI, AbsItfSchema> schemaImports) throws WSDLException { Description d = null; try { InputSource source1 = new InputSource(StreamHelper.getInputStream(wsdlURI)); final WSDLVersionConstants version = WSDLVersionDetector .getVersion(source1); d = readWSDL(wsdlURI, version, new InputSource(StreamHelper.getInputStream(wsdlURI)), descriptionImports, schemaImports); } catch (SchemaException e) { throw new WSDLException(e); } return d; }
public Description readWSDL(final URI wsdlURI) throws WSDLException { Description d = null; try { InputSource source1 = new InputSource(StreamHelper.getInputStream(wsdlURI)); final WSDLVersionConstants version = WSDLVersionDetector .getVersion(source1); d = readWSDL(wsdlURI, version, new InputSource(StreamHelper.getInputStream(wsdlURI)), null, null); } catch (SchemaException e) { throw new WSDLException(e); } return d; }
public Description readWSDL(final URI wsdlURI, Map<URI, AbsItfDescription> descriptionImports, Map<URI, AbsItfSchema> schemaImports, boolean deleteImports) throws WSDLException { Description d = null; try { InputSource source1 = new InputSource(StreamHelper.getInputStream(wsdlURI)); final WSDLVersionConstants version = WSDLVersionDetector.getVersion(source1); d = readWSDL(wsdlURI, version, new InputSource(StreamHelper.getInputStream(wsdlURI)), descriptionImports, schemaImports, deleteImports, this); //d = readWSDL(wsdlURI, version, new InputSource(StreamHelper.getInputStream(wsdlURI)), descriptionImports, schemaImports); } catch (SchemaException e) { throw new WSDLException(e); } return d; }
public String writeWSDL(final Description wsdlDef) throws WSDLException { String res = null; if ((wsdlDef != null) && (wsdlDef instanceof org.ow2.easywsdl.wsdl.impl.wsdl11.DescriptionImpl)) { try { String schemaLocation = Util.convertSchemaLocationIntoString(wsdlDef); res = this.convertWSDL11Definition2String(((org.ow2.easywsdl.wsdl.impl.wsdl11.DescriptionImpl) wsdlDef).getModel(), schemaLocation); } catch (final WSDLException e) { throw new WSDLException("Can not write wsdl description", e); } } return res; }
private void convertInternalElmtsInInterface(final AbsItfInterfaceType itf, final Class<OImpl> oimpl, final Class<InImpl> inimpl, final Class<OutImpl> outimpl, final Class<FImpl> fimpl) throws WSDLException { // operations this.convertOperations(itf.getOperations(), oimpl); for (final Object o : itf.getOperations()) { if (o instanceof AbsItfOperation) { this.convertInternalElmtsInOperation((AbsItfOperation) o, inimpl, outimpl, fimpl); } else { throw new WSDLException("Incorrect operation in the operations list: " + o); } } }
public String writeWSDL(final Description wsdlDef) throws WSDLException { String res = null; if ((wsdlDef != null) && (wsdlDef instanceof org.ow2.easywsdl.wsdl.impl.wsdl20.DescriptionImpl)) { try { String schemaLocation = Util.convertSchemaLocationIntoString(wsdlDef); res = this.convertWSDL20Description2String(((org.ow2.easywsdl.wsdl.impl.wsdl20.DescriptionImpl) wsdlDef).getModel(), wsdlDef.getNamespaces(), schemaLocation); } catch (final WSDLException e) { throw new WSDLException("Can not write wsdl description", e); } } return res; }