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


Java EditableWSDLBoundPortType.put方法代码示例

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


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

示例1: parseBindingOperation

import com.sun.xml.internal.ws.api.model.wsdl.editable.EditableWSDLBoundPortType; //导入方法依赖的package包/类
private void parseBindingOperation(XMLStreamReader reader, EditableWSDLBoundPortType binding) {
    String bindingOpName = ParserUtil.getMandatoryNonEmptyAttribute(reader, "name");
    if (bindingOpName == null) {
        //TODO: throw exception?
        //skip wsdl:binding element for now
        XMLStreamReaderUtil.skipElement(reader);
        return;
    }

    QName opName = new QName(binding.getPortTypeName().getNamespaceURI(), bindingOpName);
    EditableWSDLBoundOperation bindingOp = new WSDLBoundOperationImpl(reader,binding, opName);
    binding.put(opName, bindingOp);
    extensionFacade.bindingOperationAttributes(bindingOp, reader);

    while (XMLStreamReaderUtil.nextElementContent(reader) != XMLStreamConstants.END_ELEMENT) {
        QName name = reader.getName();
        String style = null;
        if (WSDLConstants.QNAME_INPUT.equals(name)) {
            parseInputBinding(reader, bindingOp);
        } else if (WSDLConstants.QNAME_OUTPUT.equals(name)) {
            parseOutputBinding(reader, bindingOp);
        } else if (WSDLConstants.QNAME_FAULT.equals(name)) {
            parseFaultBinding(reader, bindingOp);
        } else if (SOAPConstants.QNAME_OPERATION.equals(name) ||
                SOAPConstants.QNAME_SOAP12OPERATION.equals(name)) {
            style = reader.getAttributeValue(null, "style");
            String soapAction = reader.getAttributeValue(null, "soapAction");

            if (soapAction != null)
                bindingOp.setSoapAction(soapAction);

            goToEnd(reader);
        } else {
            extensionFacade.bindingOperationElements(bindingOp, reader);
        }
        /**
         *  If style attribute is present set it otherwise set the style as defined
         *  on the <soap:binding> element
         */
        if (style != null) {
            if (style.equals("rpc"))
                bindingOp.setStyle(Style.RPC);
            else
                bindingOp.setStyle(Style.DOCUMENT);
        } else {
            bindingOp.setStyle(binding.getStyle());
        }
    }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:50,代码来源:RuntimeWSDLParser.java


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