本文整理了Java中org.oasis_open.docs.s_ramp.ns.s_ramp_v1.WsdlDocument.setTargetNamespace()
方法的一些代码示例,展示了WsdlDocument.setTargetNamespace()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WsdlDocument.setTargetNamespace()
方法的具体详情如下:
包路径:org.oasis_open.docs.s_ramp.ns.s_ramp_v1.WsdlDocument
类名称:WsdlDocument
方法名:setTargetNamespace
[英]Sets the value of the targetNamespace property.
[中]设置targetNamespace属性的值。
代码示例来源:origin: org.overlord.sramp/s-ramp-repository-jcr
/**
* @see org.overlord.sramp.common.visitors.HierarchicalArtifactVisitorAdapter#visit(org.oasis_open.docs.s_ramp.ns.s_ramp_v1.WsdlDocument)
*/
@Override
public void visit(WsdlDocument artifact) {
super.visit(artifact);
artifact.setTargetNamespace(getProperty(jcrNode, "sramp:targetNamespace")); //$NON-NLS-1$
}
代码示例来源:origin: org.overlord.sramp/s-ramp-common
/**
* @see org.overlord.sramp.common.derived.XsdDeriver#derive(java.util.Collection, org.oasis_open.docs.s_ramp.ns.s_ramp_v1.BaseArtifactType, org.overlord.sramp.common.derived.AbstractXmlDeriver.XmlDeriverContext)
*/
@Override
protected void derive(Collection<BaseArtifactType> derivedArtifacts, BaseArtifactType artifact,
XmlDeriverContext xmlDeriverContext) throws IOException {
String targetNS = xmlDeriverContext.getRootElement().getAttribute("targetNamespace"); //$NON-NLS-1$
((WsdlDocument) artifact).setTargetNamespace(targetNS);
try {
processDefinitions((IndexedArtifactCollection) derivedArtifacts, artifact,
xmlDeriverContext.getRootElement(), xmlDeriverContext.getXpath());
} catch (Exception e) {
throw new IOException(e);
}
}
代码示例来源:origin: org.artificer/artificer-repository-hibernate
/**
* @see org.artificer.common.visitors.HierarchicalArtifactVisitor#visit(org.oasis_open.docs.s_ramp.ns.s_ramp_v1.WsdlDocument)
*/
@Override
public void visit(WsdlDocument artifact) {
super.visit(artifact);
artifact.setTargetNamespace(getProperty("targetNamespace"));
try {
artifact.getImportedXsds().addAll(getRelationships(
"importedXsds", artificerArtifact, XsdDocumentTarget.class));
artifact.getIncludedXsds().addAll(getRelationships(
"includedXsds", artificerArtifact, XsdDocumentTarget.class));
artifact.getRedefinedXsds().addAll(getRelationships(
"redefinedXsds", artificerArtifact, XsdDocumentTarget.class));
artifact.getImportedWsdls().addAll(getRelationships(
"importedWsdls", artificerArtifact, WsdlDocumentTarget.class));
} catch (Exception e) {
throw new RuntimeException(e);
}
}
代码示例来源:origin: org.artificer/artificer-integration
@Override
protected void derive() throws IOException {
targetNS = rootElement.getAttribute("targetNamespace");
if (getPrimaryArtifact() instanceof WsdlDocument) {
((WsdlDocument) getPrimaryArtifact()).setTargetNamespace(targetNS);
}
try {
// Get derived content from all of the schemas embedded in this WSDL
NodeList schemas = (NodeList) this.query(rootElement, "./wsdl:types/xsd:schema", XPathConstants.NODESET);
for (int idx = 0; idx < schemas.getLength(); idx++) {
Element schema = (Element) schemas.item(idx);
deriveXsd(schema);
String xsdTargetNS = schema.getAttribute("targetNamespace");
processImportedXsds(((WsdlDocument) getPrimaryArtifact()).getImportedXsds(), schema, xsdTargetNS);
processIncludedXsds(((WsdlDocument) getPrimaryArtifact()).getIncludedXsds(), schema, xsdTargetNS);
processRedefinedXsds(((WsdlDocument) getPrimaryArtifact()).getRedefinedXsds(), schema, xsdTargetNS);
}
processWsdlImports();
processMessages();
processPortTypes();
processBindings();
processServices();
} catch (Exception e) {
throw new IOException(e);
}
}
内容来源于网络,如有侵权,请联系作者删除!