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


Java SDDocumentSource.getSystemId方法代码示例

本文整理汇总了Java中com.sun.xml.internal.ws.api.server.SDDocumentSource.getSystemId方法的典型用法代码示例。如果您正苦于以下问题:Java SDDocumentSource.getSystemId方法的具体用法?Java SDDocumentSource.getSystemId怎么用?Java SDDocumentSource.getSystemId使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.sun.xml.internal.ws.api.server.SDDocumentSource的用法示例。


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

示例1: verifyPrimaryWSDL

import com.sun.xml.internal.ws.api.server.SDDocumentSource; //导入方法依赖的package包/类
/**
 * Verifies whether the given primaryWsdl contains the given serviceName.
 * If the WSDL doesn't have the service, it throws an WebServiceException.
 */
private static void verifyPrimaryWSDL(@NotNull SDDocumentSource primaryWsdl, @NotNull QName serviceName) {
    SDDocumentImpl primaryDoc = SDDocumentImpl.create(primaryWsdl,serviceName,null);
    if (!(primaryDoc instanceof SDDocument.WSDL)) {
        throw new WebServiceException(primaryWsdl.getSystemId()+
                " is not a WSDL. But it is passed as a primary WSDL");
    }
    SDDocument.WSDL wsdlDoc = (SDDocument.WSDL)primaryDoc;
    if (!wsdlDoc.hasService()) {
        if(wsdlDoc.getAllServices().isEmpty())
            throw new WebServiceException("Not a primary WSDL="+primaryWsdl.getSystemId()+
                    " since it doesn't have Service "+serviceName);
        else
            throw new WebServiceException("WSDL "+primaryDoc.getSystemId()
                    +" has the following services "+wsdlDoc.getAllServices()
                    +" but not "+serviceName+". Maybe you forgot to specify a serviceName and/or targetNamespace in @WebService/@WebServiceProvider?");
    }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:22,代码来源:EndpointFactory.java

示例2: Parser

import com.sun.xml.internal.ws.api.server.SDDocumentSource; //导入方法依赖的package包/类
/**
 * Creates a {@link Parser} that reads from {@link SDDocumentSource}.
 */
public Parser(SDDocumentSource doc) throws IOException, XMLStreamException {
    this.systemId = doc.getSystemId();
    this.parser = doc.read();
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:8,代码来源:XMLEntityResolver.java


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