if (this.jaxwsModule != null) { HashMap<String, WebFault> allFaults = new HashMap<String, WebFault>(); for (WsdlInfo wsdlInfo : this.jaxwsModule.getJaxwsContext().getWsdls().values()) { for (EndpointInterface ei : wsdlInfo.getEndpointInterfaces()) { String pckg = ei.getPackage().getQualifiedName().toString();
@Override public void call(EnunciateContext context) { jaxwsContext = new EnunciateJaxwsContext(this.jaxbModule.getJaxbContext(), isUseSourceParameterNames()); boolean aggressiveWebMethodExcludePolicy = isAggressiveWebMethodExcludePolicy(); File sunJaxwsXmlFile = getSunJaxwsXmlFile(); if (sunJaxwsXmlFile != null) { XMLConfiguration config; DataTypeDetectionStrategy detectionStrategy = getDataTypeDetectionStrategy(); if (detectionStrategy != DataTypeDetectionStrategy.passive) { Set<? extends Element> elements = detectionStrategy == DataTypeDetectionStrategy.local ? context.getLocalApiElements() : context.getApiElements(); if (isEndpointInterface(element)) { EndpointInterface ei = new EndpointInterface(element, elements, aggressiveWebMethodExcludePolicy, jaxwsContext); for (EndpointImplementation implementation : ei.getEndpointImplementations()) { addReferencedDataTypeDefinitions(ei);
protected void addReferencedDataTypeDefinitions(EndpointInterface ei) { LinkedList<Element> contextStack = new LinkedList<>(); contextStack.push(ei); try { for (WebMethod webMethod : ei.getWebMethods()) { addReferencedTypeDefinitions(webMethod, contextStack); } } finally { contextStack.pop(); } }
public File getSunJaxwsXmlFile() { File sunJaxwsXmlFile = null; String configuredSunJaxwsXmlFile = this.config.getString("[@sun-jaxws-xml-file]", null); if (configuredSunJaxwsXmlFile != null) { sunJaxwsXmlFile = resolveFile(configuredSunJaxwsXmlFile); } else if (this.webInfDir != null) { sunJaxwsXmlFile = new File(this.webInfDir, "sun-jaxws.xml"); } if (sunJaxwsXmlFile != null && sunJaxwsXmlFile.exists()) { return sunJaxwsXmlFile; } return null; }
if (this.jaxwsModule != null) { HashMap<String, WebFault> allFaults = new HashMap<String, WebFault>(); for (WsdlInfo wsdlInfo : this.jaxwsModule.getJaxwsContext().getWsdls().values()) { for (EndpointInterface ei : wsdlInfo.getEndpointInterfaces()) { String pckg = ei.getPackage().getQualifiedName().toString();
protected void addReferencedTypeDefinitions(WebMethod webMethod, LinkedList<Element> contextStack) { contextStack.push(webMethod); try { WebResult result = webMethod.getWebResult(); this.jaxbModule.getJaxbContext().addReferencedTypeDefinitions(result.isAdapted() ? result.getAdapterType() : result.getType(), contextStack); for (WebParam webParam : webMethod.getWebParameters()) { this.jaxbModule.getJaxbContext().addReferencedTypeDefinitions(webParam.isAdapted() ? webParam.getAdapterType() : webParam.getType(), contextStack); } for (WebFault webFault : webMethod.getWebFaults()) { addReferencedTypeDefinitions(webFault, contextStack); } } finally { contextStack.pop(); } }
protected File copyResources() { File resourcesDir = getResourcesDir(); resourcesDir.mkdirs(); try { if (this.jaxwsModule != null) { for (WsdlInfo wsdlInfo : this.jaxwsModule.getJaxwsContext().getWsdls().values()) { if (wsdlInfo.getWsdlFile() != null) { wsdlInfo.getWsdlFile().writeTo(resourcesDir); } } } for (SchemaInfo schemaInfo : this.jaxbModule.getJaxbContext().getSchemas().values()) { if (schemaInfo.getSchemaFile() != null) { schemaInfo.getSchemaFile().writeTo(resourcesDir); } } } catch (IOException e) { throw new EnunciateException(e); } return resourcesDir; }
protected File copyResources() { File resourcesDir = getResourcesDir(); resourcesDir.mkdirs(); try { if (this.jaxwsModule != null) { for (WsdlInfo wsdlInfo : this.jaxwsModule.getJaxwsContext().getWsdls().values()) { if (wsdlInfo.getWsdlFile() != null) { wsdlInfo.getWsdlFile().writeTo(resourcesDir); } } } for (SchemaInfo schemaInfo : this.jaxbModule.getJaxbContext().getSchemas().values()) { if (schemaInfo.getSchemaFile() != null) { schemaInfo.getSchemaFile().writeTo(resourcesDir); } } } catch (IOException e) { throw new EnunciateException(e); } return resourcesDir; }
Collection<WsdlInfo> wsdls = new ArrayList<WsdlInfo>(); if (this.jaxwsModule != null) { wsdls = this.jaxwsModule.getJaxwsContext().getWsdls().values();
Collection<WsdlInfo> wsdls = new ArrayList<WsdlInfo>(); if (this.jaxwsModule != null) { wsdls = this.jaxwsModule.getJaxwsContext().getWsdls().values();
if (this.jaxwsModule != null && this.jaxwsModule.getJaxwsContext() != null) { for (EndpointInterface ei : this.jaxwsModule.getJaxwsContext().getEndpointInterfaces()) { for (WebMethod method : ei.getWebMethods()) { if (method.getAnnotation(DocumentationExample.class) != null && !method.getAnnotation(DocumentationExample.class).exclude()) {
for (WsdlInfo wsdlInfo : this.jaxwsModule.getJaxwsContext().getWsdls().values()) { for (EndpointInterface ei : wsdlInfo.getEndpointInterfaces()) { if (facetFilter.accept(ei)) { for (WsdlInfo wsdlInfo : this.jaxwsModule.getJaxwsContext().getWsdls().values()) { if (wsdlInfo.getWsdlFile() == null) { throw new EnunciateException("WSDL " + wsdlInfo.getId() + " doesn't have a filename.");
if (this.jaxwsModule != null && this.jaxwsModule.getJaxwsContext() != null) { for (EndpointInterface ei : this.jaxwsModule.getJaxwsContext().getEndpointInterfaces()) { for (WebMethod method : ei.getWebMethods()) { if (method.getAnnotation(DocumentationExample.class) != null && !method.getAnnotation(DocumentationExample.class).exclude()) {
for (WsdlInfo wsdlInfo : this.jaxwsModule.getJaxwsContext().getWsdls().values()) { for (EndpointInterface ei : wsdlInfo.getEndpointInterfaces()) { if (facetFilter.accept(ei)) { for (WsdlInfo wsdlInfo : this.jaxwsModule.getJaxwsContext().getWsdls().values()) { if (wsdlInfo.getWsdlFile() == null) { throw new EnunciateException("WSDL " + wsdlInfo.getId() + " doesn't have a filename.");
ns2wsdl = this.jaxwsModule.getJaxwsContext().getWsdls();
ns2wsdl = this.jaxwsModule.getJaxwsContext().getWsdls();
WebMethod example = null; if (this.jaxwsModule != null) { for (EndpointInterface ei : this.jaxwsModule.getJaxwsContext().getEndpointInterfaces()) { for (WebMethod method : ei.getWebMethods()) { if (method.getAnnotation(DocumentationExample.class) != null && !method.getAnnotation(DocumentationExample.class).exclude()) {
protected boolean usesUnmappableElements() { boolean usesUnmappableElements = false; if (this.jaxwsModule != null && this.jaxwsModule.getJaxwsContext() != null) { for (EndpointInterface ei : this.jaxwsModule.getJaxwsContext().getEndpointInterfaces()) { Map<String, javax.lang.model.element.Element> paramsByName = new HashMap<String, javax.lang.model.element.Element>(); for (WebMethod webMethod : ei.getWebMethods()) {
WebMethod example = null; if (this.jaxwsModule != null) { for (EndpointInterface ei : this.jaxwsModule.getJaxwsContext().getEndpointInterfaces()) { for (WebMethod method : ei.getWebMethods()) { if (method.getAnnotation(DocumentationExample.class) != null && !method.getAnnotation(DocumentationExample.class).exclude()) {
protected boolean usesUnmappableElements() { boolean usesUnmappableElements = false; if (this.jaxwsModule != null && this.jaxwsModule.getJaxwsContext() != null) { for (EndpointInterface ei : this.jaxwsModule.getJaxwsContext().getEndpointInterfaces()) { Map<String, javax.lang.model.element.Element> paramsByName = new HashMap<String, javax.lang.model.element.Element>(); for (WebMethod webMethod : ei.getWebMethods()) {