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


Java SOAPFactory.createName方法代码示例

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


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

示例1: parseBody

import javax.xml.soap.SOAPFactory; //导入方法依赖的package包/类
@Override
protected void parseBody(SOAPBodyElement body, SOAPFactory spf) throws SOAPException {
    Iterator pi = getRequestChildElement(spf, body, "ExecResponseList").getChildElements(spf.createName("ExecResponseStruct"));
    Name nameKey = spf.createName("Command");
    Name nameValue = spf.createName("Response");
    while (pi.hasNext()) {
        SOAPElement param = (SOAPElement) pi.next();
        String key = getRequestElement(param, nameKey);
        String value = getRequestElement(param, nameValue);
        if (value == null) {
            value = "";
        }
        System.out.append(key + "->" + value);
        response.put(key, value);
    }
}
 
开发者ID:navisidhu,项目名称:libreacs,代码行数:17,代码来源:X_00000C_ShowStatusResponse.java

示例2: parseBody

import javax.xml.soap.SOAPFactory; //导入方法依赖的package包/类
@Override
protected void parseBody(SOAPBodyElement body, SOAPFactory spf) throws SOAPException {
    Iterator pi = getRequestChildElement(spf, body, "TransferList").getChildElements(spf.createName("QueuedTransferStruct"));
    Name nameCommandKey = spf.createName(COMMAND_KEY);
    Name nameState = spf.createName("State");
    TransferList = new Hashtable<String, String>();
    while (pi.hasNext()) {
        SOAPElement param = (SOAPElement) pi.next();
        String key = getRequestElement(param, nameCommandKey);
        String state = getRequestElement(param, nameState);
        TransferList.put(key, state);
    }

}
 
开发者ID:navisidhu,项目名称:libreacs,代码行数:15,代码来源:GetQueuedTransfersResponse.java

示例3: parseBody

import javax.xml.soap.SOAPFactory; //导入方法依赖的package包/类
protected void parseBody(SOAPBodyElement body, SOAPFactory spf) throws SOAPException {
    SOAPElement ml = getRequestChildElement(spf, body, "ParameterList");
    int i = getArrayCount(spf, ml);
    Iterator mlist = ml.getChildElements(spf.createName("ParameterAttributeStruct"));
    attributes = new ParameterAttributeStruct[i];
    Name nameKey = spf.createName("Name");
    Name nameNotification = spf.createName("Notification");
    Name nameAccessList = spf.createName("AccessList");
    Name nameString = spf.createName("string");
    //System.out.println ("start "+i);
    i = 0;
    while (mlist.hasNext()) {
        SOAPElement param = (SOAPElement) mlist.next();
        attributes[i] = new ParameterAttributeStruct();
        attributes[i].Name = getRequestElement(param, nameKey);
        attributes[i].Notification = Integer.parseInt(getRequestElement(param, nameNotification));
        //System.out.println ("Attrbiute: name="+attributes[i].Name+", notification="+attributes[i].Notification);
        // get acl array        
        SOAPElement elementAccessList = getRequestChildElement(spf, param, "AccessList");
        int ii = getArrayCount(spf, elementAccessList);
        attributes[i].AccessList = new String[ii];

        System.out.println("Access list length: " + ii);
        ii = 0;
        Iterator iteratorAccessList = elementAccessList.getChildElements(nameString);
        while (iteratorAccessList.hasNext()) {
            attributes[i].AccessList[ii++] = ((SOAPElement) iteratorAccessList.next()).getValue();
            //System.out.println ("acl= "+attributes[i].AccessList[ii-1]);
        }
        i++;
    }

}
 
开发者ID:navisidhu,项目名称:libreacs,代码行数:34,代码来源:GetParameterAttributesResponse.java

示例4: getOperation

import javax.xml.soap.SOAPFactory; //导入方法依赖的package包/类
protected Name getOperation() throws SOAPException {
    SOAPFactory soapFactory = getSoapFactory();
    return soapFactory.createName(getOperationName(), "mdw", PAYLOAD_NAMESPACE);
}
 
开发者ID:CenturyLinkCloud,项目名称:mdw,代码行数:5,代码来源:MdwRpcWebServiceAdapter.java


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