private WSDLDocument buildWSDLDocument(){ /** * Currently we are working off first WSDL document * TODO: add support of creating WSDLDocument from fromjava.collection of WSDL documents */ String location = forest.getRootWSDL(); //It means that WSDL is not found, an error might have been reported, lets try to recover if(location == null) return null; Document root = forest.get(location); if(root == null) return null; WSDLDocument document = new WSDLDocument(forest, errReceiver); document.setSystemId(location); TWSDLParserContextImpl context = new TWSDLParserContextImpl(forest, document, listeners, errReceiver); Definitions definitions = parseDefinitions(context, root); document.setDefinitions(definitions); return document; }
protected static com.sun.tools.ws.wsdl.document.Message findMessage( QName messageName, WSDLDocument document) { com.sun.tools.ws.wsdl.document.Message message = null; try { message = (com.sun.tools.ws.wsdl.document.Message)document.find( Kinds.MESSAGE, messageName); } catch (NoSuchEntityException e) { } return message; }
private void build() { for(Iterator<Service> itr=wsdlDocument.getDefinitions().services(); itr.hasNext(); ) { build(itr.next()); } }
if (document == null || document.getDefinitions() == null) { return null; document.validateLocally(); Model model = internalBuildModel(document); if (model == null || errReceiver.hadError()) { error(document.getDefinitions(), ModelerMessages.WSDLMODELER_UNSOLVABLE_NAMING_CONFLICTS(conflictList.toString())); } catch (ModelException e) { reportError(document.getDefinitions(), e.getMessage(), e); } catch (ParseException e) { errReceiver.error(e);
@Override public void validate(EntityReferenceValidator validator) { GloballyValidatingAction action = new GloballyValidatingAction(this, validator); withAllSubEntitiesDo(action); if (action.getException() != null) { throw action.getException(); } }
if (document == null || document.getDefinitions() == null) { return null; document.validateLocally(); Model model = internalBuildModel(document); if (model == null || errReceiver.hadError()) { error(document.getDefinitions(), ModelerMessages.WSDLMODELER_UNSOLVABLE_NAMING_CONFLICTS(conflictList.toString())); } catch (ModelException e) { reportError(document.getDefinitions(), e.getMessage(), e); } catch (ParseException e) { errReceiver.error(e);
@Override public void validate(EntityReferenceValidator validator) { GloballyValidatingAction action = new GloballyValidatingAction(this, validator); withAllSubEntitiesDo(action); if (action.getException() != null) { throw action.getException(); } }
private void build() { for(Iterator<Service> itr=wsdlDocument.getDefinitions().services(); itr.hasNext(); ) { build(itr.next()); } }
private WSDLDocument buildWSDLDocument(){ /** * Currently we are working off first WSDL document * TODO: add support of creating WSDLDocument from fromjava.collection of WSDL documents */ String location = forest.getRootWSDL(); //It means that WSDL is not found, an error might have been reported, lets try to recover if(location == null) return null; Document root = forest.get(location); if(root == null) return null; WSDLDocument document = new WSDLDocument(forest, errReceiver); document.setSystemId(location); TWSDLParserContextImpl context = new TWSDLParserContextImpl(forest, document, listeners, errReceiver); Definitions definitions = parseDefinitions(context, root); document.setDefinitions(definitions); return document; }
if (document == null || document.getDefinitions() == null) { return null; document.validateLocally(); Model model = internalBuildModel(document); if (model == null || errReceiver.hadError()) { error(document.getDefinitions(), ModelerMessages.WSDLMODELER_UNSOLVABLE_NAMING_CONFLICTS(conflictList.toString())); } catch (ModelException e) { reportError(document.getDefinitions(), e.getMessage(), e); } catch (ParseException e) { errReceiver.error(e);
protected static com.sun.tools.ws.wsdl.document.Message findMessage( QName messageName, WSDLDocument document) { com.sun.tools.ws.wsdl.document.Message message = null; try { message = (com.sun.tools.ws.wsdl.document.Message)document.find( Kinds.MESSAGE, messageName); } catch (NoSuchEntityException e) { } return message; }
@Override public void validate(EntityReferenceValidator validator) { GloballyValidatingAction action = new GloballyValidatingAction(this, validator); withAllSubEntitiesDo(action); if (action.getException() != null) { throw action.getException(); } }
private void build() { for(Iterator<Service> itr=wsdlDocument.getDefinitions().services(); itr.hasNext(); ) { build(itr.next()); } }
private WSDLDocument buildWSDLDocument(){ /** * Currently we are working off first WSDL document * TODO: add support of creating WSDLDocument from fromjava.collection of WSDL documents */ String location = forest.getRootWSDL(); //It means that WSDL is not found, an error might have been reported, lets try to recover if(location == null) return null; Document root = forest.get(location); if(root == null) return null; WSDLDocument document = new WSDLDocument(forest, errReceiver); document.setSystemId(location); TWSDLParserContextImpl context = new TWSDLParserContextImpl(forest, document, listeners, errReceiver); Definitions definitions = parseDefinitions(context, root); document.setDefinitions(definitions); return document; }
if (document == null || document.getDefinitions() == null) { return null; document.validateLocally(); Model model = internalBuildModel(document); if (model == null || errReceiver.hadError()) { error(document.getDefinitions(), ModelerMessages.WSDLMODELER_UNSOLVABLE_NAMING_CONFLICTS(conflictList.toString())); } catch (ModelException e) { reportError(document.getDefinitions(), e.getMessage(), e); } catch (ParseException e) { errReceiver.error(e);
protected static com.sun.tools.ws.wsdl.document.Message findMessage( QName messageName, WSDLDocument document) { com.sun.tools.ws.wsdl.document.Message message = null; try { message = (com.sun.tools.ws.wsdl.document.Message)document.find( Kinds.MESSAGE, messageName); } catch (NoSuchEntityException e) { } return message; }
@Override public void validate(EntityReferenceValidator validator) { GloballyValidatingAction action = new GloballyValidatingAction(this, validator); withAllSubEntitiesDo(action); if (action.getException() != null) { throw action.getException(); } }
private void build() { for(Iterator<Service> itr=wsdlDocument.getDefinitions().services(); itr.hasNext(); ) { build(itr.next()); } }
private WSDLDocument buildWSDLDocument(){ /** * Currently we are working off first WSDL document * TODO: add support of creating WSDLDocument from fromjava.collection of WSDL documents */ String location = forest.getRootWSDL(); //It means that WSDL is not found, an error might have been reported, lets try to recover if(location == null) return null; Document root = forest.get(location); if(root == null) return null; WSDLDocument document = new WSDLDocument(forest, errReceiver); document.setSystemId(location); TWSDLParserContextImpl context = new TWSDLParserContextImpl(forest, document, listeners, errReceiver); Definitions definitions = parseDefinitions(context, root); document.setDefinitions(definitions); return document; }
protected static com.sun.tools.ws.wsdl.document.Message findMessage( QName messageName, WSDLDocument document) { com.sun.tools.ws.wsdl.document.Message message = null; try { message = (com.sun.tools.ws.wsdl.document.Message)document.find( Kinds.MESSAGE, messageName); } catch (NoSuchEntityException e) { } return message; }