当前位置: 首页>>代码示例>>Java>>正文


Java WSDLFactory.newDefinition方法代码示例

本文整理汇总了Java中javax.wsdl.factory.WSDLFactory.newDefinition方法的典型用法代码示例。如果您正苦于以下问题:Java WSDLFactory.newDefinition方法的具体用法?Java WSDLFactory.newDefinition怎么用?Java WSDLFactory.newDefinition使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在javax.wsdl.factory.WSDLFactory的用法示例。


在下文中一共展示了WSDLFactory.newDefinition方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: toWSDL

import javax.wsdl.factory.WSDLFactory; //导入方法依赖的package包/类
/**
 * Generates WSDL-document from this web service model
 * @param dispatchContext dispatch context where nested service models
 *        can be found
 * @param locationURI SOAP location URI
 * @return WSDL-document object model
 * @throws GenericServiceException if exception encountered when
 *         getting nested service model
 * @throws SAXException if XML-schema could not be parsed
 * @throws WSDLException if XML-schema type could not be found
 */
public Document toWSDL(DispatchContext dispatchContext, String locationURI)  throws GenericServiceException, ParserConfigurationException,
           SAXException, TransformerException, WSDLException {
    if (this.wsdl != null) {
        return this.wsdl;
    }
    WSDLFactory factory = WSDLFactory.newInstance();
    Definition definition = factory.newDefinition();
    definition.setTargetNamespace(namespace);
    definition.addNamespace("tns", namespace);
    definition.addNamespace("xsd", ModelService.XSD);
    definition.addNamespace("soap", SOAP);
    definition.addNamespace("wsse", WSSE);
    
    this.wsdl = modelService.generateWSDL(dispatchContext.getDelegator(), locationURI);
    SchemaImpl schemaImpl = makeSchemaImpl(wsdl, namespace);
    
    Element schema = schemaImpl.getElement();
    wsdlSchema = makeValidationSchema(schema);
    return this.wsdl;
}
 
开发者ID:gildaslemoal,项目名称:elpi,代码行数:32,代码来源:SoapService.java

示例2: toWSDL

import javax.wsdl.factory.WSDLFactory; //导入方法依赖的package包/类
public Document toWSDL(String locationURI) throws WSDLException {
    WSDLFactory factory = WSDLFactory.newInstance();
    Definition def = factory.newDefinition();
    def.setTargetNamespace(TNS);
    def.addNamespace("xsd", XSD);
    def.addNamespace("tns", TNS);
    def.addNamespace("soap", "http://schemas.xmlsoap.org/wsdl/soap/");
    this.getWSDL(def, locationURI);
    return factory.newWSDLWriter().getDocument(def);
}
 
开发者ID:ilscipio,项目名称:scipio-erp,代码行数:11,代码来源:ModelService.java

示例3: generateWSDL

import javax.wsdl.factory.WSDLFactory; //导入方法依赖的package包/类
public Document generateWSDL(Delegator delegator, String locationURI) throws WSDLException {
    WSDLFactory factory = WSDLFactory.newInstance();
    Definition def = factory.newDefinition();
    def.setTargetNamespace(TNS);
    def.addNamespace("xsd", XSD);
    def.addNamespace("tns", TNS);
    def.addNamespace("soap", "http://schemas.xmlsoap.org/wsdl/soap/");
    this.buildWSDL(delegator, def, locationURI);
    return factory.newWSDLWriter().getDocument(def);
}
 
开发者ID:gildaslemoal,项目名称:elpi,代码行数:11,代码来源:ModelService.java

示例4: getWSDLDefinition

import javax.wsdl.factory.WSDLFactory; //导入方法依赖的package包/类
public static Definition getWSDLDefinition() throws WSDLException {
    WSDLFactory factory = WSDLFactory.newInstance();
    return factory.newDefinition();
}
 
开发者ID:wso2,项目名称:carbon-governance,代码行数:5,代码来源:WSDLComparisonUtils.java

示例5: getNewnDefinition

import javax.wsdl.factory.WSDLFactory; //导入方法依赖的package包/类
private Definition getNewnDefinition() throws WSDLException {
    WSDLFactory factory = WSDLFactory.newInstance();
    return factory.newDefinition();
}
 
开发者ID:wso2,项目名称:carbon-governance,代码行数:5,代码来源:WSDLComparisonUtilsTest.java


注:本文中的javax.wsdl.factory.WSDLFactory.newDefinition方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。